Downloads · 30 days
24
10% of all-time downloads
EmbeddedLLM/Llama-3.1-8B-Instruct-w_fp8_per_channel_sym
Llama-3.1-8B-Instruct-w_fp8_per_channel_sym is a text generation model from EmbeddedLLM. Use it when you need the model to write or continue text. The card lists the license as llama3.1.
- Introduction This model was created by applying Quark with calibration samples from Pile dataset. - Quantization Stragegy - Quantized Layers: All linear layers excluding "lmhead" - Weight: FP8 symmetric per-channel…
Downloads · 30 days
24
10% of all-time downloads
All-time downloads
235
Public
Parameters
8B
9.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors9.1 GB · 100%
How the weights are stored.
F8_E4M37B · 87%
From the Hugging Face model README
export MODEL_DIR = [local model checkpoint folder] or meta-llama/Meta-Llama-3.1-8B-Instruct
# single GPU
HIP_VISIBLE_DEVICES=0 python quantize_quark.py --model_dir $MODEL_DIR \
--output_dir /app/model/quark/Llama-3.1-8B-Instruct-w_fp8_per_channel_sym/ \
--quant_scheme w_fp8_per_channel_sym \
--kv_cache_dtype fp8 \
--num_calib_data 128 \
--model_export quark_safetensors
# If model size is too large for single GPU, please use multi GPU instead.
python quantize_quark.py --model_dir $MODEL_DIR \
--output_dir /app/model/quark/Llama-3.1-8B-Instruct-w_fp8_per_channel_sym/ \
--quant_scheme w_fp8_per_channel_sym \
--kv_cache_dtype fp8 \
--num_calib_data 128 \
--multi_gpu \
--model_export quark_safetensors
Quark has its own export format and allows FP8 quantized models to be efficiently deployed using the vLLM backend(vLLM-compatible).
Quark currently uses perplexity(PPL) as the evaluation metric for accuracy loss before and after quantization.The specific PPL algorithm can be referenced in the quantize_quark.py. The quantization evaluation results are conducted in pseudo-quantization mode, which may slightly differ from the actual quantized inference accuracy. These results are provided for reference only.