Views
No views yet
1python3 -m venv ~/.venv-quark
2source ~/.venv-quark/bin/activate1python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/rocm7.1
2python -m pip install amd-quark --extra-index-url https://pypi.amd.com/quark/rocm72/simple
3python -m pip install safetensors transformers accelerate tqdm1python quantize_quark.py \
2 --model_dir /path/to/model \
3 --output_dir /path/to/output \
4 --quant_scheme mxfp4 \
5 --file2file_quantization1tokenspeed serve \
2 --model lightseekorg/Inkling-MXFP4 \
3 --attn-tp-size 4 \
4 --moe-tp-size 4 \
5 --max-model-len 81920 \
6 --max-num-seqs 16 \
7 --max-prefill-tokens 8192 \
8 --chunked-prefill-size 8192 \
9 --gpu-memory-utilization 0.95 \
10 --disable-cuda-graph-padding \
11 --trust-remote-code \
12 --dtype bfloat16 \
13 --disable-kvstore \
14 --kvstore-ratio 0 \
15 --block-size 128 \
16 --host 127.0.0.1 \
17 --port 22015| Benchmark | BF16 Reference | MXFP4 |
|---|---|---|
| BFCL exact calls | 78.3% | 79.1% |
| BFCL all-live macro | 75.4% | 75.3% |
| MMAU | 77.2% | 76.0% |
| GPQA Diamond | 88.1% | 85.4% |
| AIME26 | 96.4% | 96.7% |