Downloads · 30 days
19
2% of all-time downloads
astronomer/Llama-3-8B-GPTQ-8-Bit
Llama-3-8B-GPTQ-8-Bit is a text generation model from astronomer. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
<div style="width: auto; margin-left: auto; margin-right: auto" <img src="https://www.astronomer.io/logo/astronomer-logo-RGB-standard-1200px.png" alt="Astronomer" style="width: 60%; min-width: 400px; display: block; m…
Downloads · 30 days
19
2% of all-time downloads
All-time downloads
1.2K
Public
Parameters
8B
19.5 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors9.7 GB · 100%
How the weights are stored.
I327B · 87%
From the Hugging Face model README
untrained-special-tokens-fixed branch/revision.
"stop_token_ids":[128001, 128009] to temporarily address the non-stop generation issue.
generation_config.json.no_inject_fused_attention enabled. This is a bug with AutoGPTQ library.Parameters -> Generation -> Skip special tokens: turn this off (deselect)Parameters -> Generation -> Custom stopping strings: add "<|end_of_text|>","<|eot_id|>" to the fieldThis repo contains 8 Bit quantized GPTQ model files for meta-llama/Meta-Llama-3-8B.
This model can be loaded with just over 10GB of VRAM (compared to the original 16.07GB model) and can be served lightning fast with the cheapest Nvidia GPUs possible (Nvidia T4, Nvidia K80, RTX 4070, etc).
The 8 bit GPTQ quant has minimum quality degradation from the original bfloat16 model due to its higher bitrate.
The untrained-special-tokens-fixed branch is the same model as the main branch but has special tokens and tokens untrained (by finding the tokens where max embedding value of each token in input_embeddings and output_embeddings is 0) and setting them to the average of all trained tokens for each feature. Using this branch is recommended if you plan to do any fine-tuning with your own tokens added or with instruction following.
| Branch | Bits | Group Size | Act Order | Damp % | GPTQ Dataset | Sequence Length | VRAM Size | ExLlama | Special Tokens Fixed | Description |
|---|---|---|---|---|---|---|---|---|---|---|
| main | 8 | 32 | Yes | 0.1 | wikitext | 8192 | 9.74 GB | No | No | 8-bit, with Act Order and group size 32g. Minimum accuracy loss with decent VRAM usage reduction. |
| untrained-special-tokens-fixed | 8 | 32 | Yes | 0.1 | wikitext | 8192 | 9.74 GB | No | Yes | Same as the main branch. The special tokens that were untrained causing exploding gradients/NaN gradients have had their embedding values set to the average of trained tokens for each feature |
| More variants to come | TBD | TBD | TBD | TBD | TBD | TBD | TBD | TBD | TBD | May upload additional variants of GPTQ 8 bit models in the future using different parameters such as 128g group size and etc. |
Tested serving this model via vLLM using an Nvidia T4 (16GB VRAM).
Tested with the below command
python -m vllm.entrypoints.openai.api_server --model astronomer-io/Llama-3-8B-GPTQ-8-Bit --max-model-len 8192 --dtype float16
For the non-stop token generation bug, make sure to send requests with stop_token_ids":[128001, 128009] to vLLM endpoint