Views
No views yet
Int8DynamicActivationInt8WeightConfiglm_head and embed_tokens1python dynamic_sym.py \
2 --model_name Qwen/Qwen2.5-VL-7B-Instruct \
3 --output_dir ./Qwen2.5-VL-7B-Instruct-da8w8-torchao-v0.17.01from vllm import LLM, SamplingParams
2
3model = LLM(
4 model="amd/Qwen2.5-VL-7B-Instruct-da8w8-torchao-v0.17.0",
5 dtype="bfloat16",
6)
7
8sampling_params = SamplingParams(temperature=0.7, max_tokens=256)
9outputs = model.generate(["Hello, how are you?"], sampling_params)
10print(outputs[0].outputs[0].text)torch==2.11.0
torchao==0.17.0
zentorch==2.11.0.1
vllm==0.20.2LD_PRELOAD with libomp.so (LLVM OpenMP) or libiomp5.so (Intel OpenMP):1# Using LLVM OpenMP (llvmopenmp)
2export LD_PRELOAD=$(find /path/to/env -name "libomp.so" | head -1)
3
4# Or using Intel OpenMP (libiomp)
5export LD_PRELOAD=$(find /path/to/env -name "libiomp5.so" | head -1)Note: SetLD_PRELOADbefore launching vLLM or any inference script.
| Benchmark | BF16 Baseline | DA8W8 (this model) | Recovery |
|---|---|---|---|
| MMLU (5-shot) | - | - | - |
| GSM8K_COT (8-shot) | - | - | - |
| Perplexity (wikitext2) | - | - | - |
Evaluation results will be updated after benchmarking.
1lm_eval \
2 --model vllm \
3 --model_args pretrained="amd/Qwen2.5-VL-7B-Instruct-da8w8-torchao-v0.17.0" \
4 --tasks mmlu \
5 --num_fewshot 5 \
6 --batch_size auto