Views
No views yet
1export MODEL_DIR = [local model checkpoint folder] or meta-llama/Llama-3.3-70B-Instruct
2python3 quantize_quark.py \
3 --model_dir $MODEL_DIR \
4 --output_dir $QUANT_MODEL_DIR \
5 --quant_scheme w_fp8_a_fp8 \
6 --kv_cache_dtype fp8 \
7 --num_calib_data 128 \
8 --model_export quark_safetensors \
9 --no_weight_matrix_merge \
10 --multi_gpu \
11 --custom_mode fp8| Benchmark | Llama-3.3-70B-Instruct | Llama-3.3-70B-Instruct-FP8-KV(this model) |
| Perplexity-wikitext2 | 3.862387180328369 | 3.9621500968933105 |