--- language: - en pipeline_tag: text-generation library_name: ExLlamaV2 tags: - facebook - meta - pytorch - llama - llama-3 license: other license_name: llama3 license_link: https://huggingface.co/meta-llama/Meta-Llama-3-8B/blob/main/LICENSE --- # Exl2 quants for [Meta-Llama-Guard-2-8B](https://huggingface.co/meta-llama/Meta-Llama-Guard-2-8B) ## Automatically quantized using the auto quant script from [hf-scripts](https://huggingface.co/anthonyg5005/hf-scripts) Llama Guard 2 8B is the moderation tuned llama3-8B model by Meta.\ Use this moderation model to protect your platform from unwanted generations.\ [BF16 weights](https://huggingface.co/meta-llama/Meta-Llama-Guard-2-8B/tree/main) are recommended for optimal accuracy in production environments.\ This model has the following harm categories:
Harm categories
S1: Violent Crimes S2: Non-Violent Crimes
S3: Sex-Related Crimes S4: Child Sexual Exploitation
S5: Specialized Advice S6: Privacy
S7: Intellectual Property S8: Indiscriminate Weapons
S9: Hate S10: Suicide & Self-Harm
S11: Sexual Content
### BPW: [3.0](https://huggingface.co/Anthonyg5005/Meta-Llama-Guard-2-8B-exl2/tree/3.0bpw)\ [4.0](https://huggingface.co/Anthonyg5005/Meta-Llama-Guard-2-8B-exl2/tree/4.0bpw)\ [5.0](https://huggingface.co/Anthonyg5005/Meta-Llama-Guard-2-8B-exl2/tree/5.0bpw)\ [6.0](https://huggingface.co/Anthonyg5005/Meta-Llama-Guard-2-8B-exl2/tree/6.0bpw)\ [6.5](https://huggingface.co/Anthonyg5005/Meta-Llama-Guard-2-8B-exl2/tree/6.5bpw)\ [8.0](https://huggingface.co/Anthonyg5005/Meta-Llama-Guard-2-8B-exl2/tree/8.0bpw)\ [measurement.json](https://huggingface.co/Anthonyg5005/Meta-Llama-Guard-2-8B-exl2/blob/main/measurement.json) # How to download: ### oobabooga's downloader use something like [download-model.py](https://github.com/oobabooga/text-generation-webui/blob/main/download-model.py) to download with python requests.\ Install requirements: ```shell pip install requests tqdm ``` Example for downloading 8bpw: ```shell python download-model.py Anthonyg5005/Meta-Llama-Guard-2-8B-exl2:8.0bpw ``` ### huggingface-cli You may also use huggingface-cli\ To install it, install python hf-hub ```shell pip install huggingface-hub ``` Example for 8bpw: ```shell huggingface-cli download Anthonyg5005/Meta-Llama-Guard-2-8B-exl2 --local-dir Llama-Guard-2-8B-exl2-8bpw --revision 8.0bpw ``` ### Git LFS (not recommended) I would recommend the http downloaders over using git, they can resume downloads if failed and are much easier to work with.\ Make sure to have git and git LFS installed.\ Example for 8bpw download with git: Have LFS file skip disabled ```shell # windows set GIT_LFS_SKIP_SMUDGE=0 # linux export GIT_LFS_SKIP_SMUDGE=0 ``` Clone repo branch ```shell git clone https://huggingface.co/Anthonyg5005/Meta-Llama-Guard-2-8B-exl2 -b 8.0bpw ```