Views
No views yet
FP8_DYNAMIC (W8A8 — FP8 per-channel weights, dynamic per-token activation quantisation)Linear modules except those listed belowlm_head — output projection to vocabularyre:.*visual.* — entire vision encoder (patch embed, attention, MLP, merger)re:.*linear_attn.* — GatedDeltaNet hybrid linear attention layers (Qwen3.5-specific architecture)1from vllm import LLM
2
3model = LLM("depop-ml/Qwen3.5-9B-FP8-Dynamic")1from transformers import AutoModelForImageTextToText, AutoProcessor
2
3model = AutoModelForImageTextToText.from_pretrained("depop-ml/Qwen3.5-9B-FP8-Dynamic")
4processor = AutoProcessor.from_pretrained("depop-ml/Qwen3.5-9B-FP8-Dynamic")1from transformers import AutoModelForImageTextToText, AutoProcessor
2from llmcompressor import oneshot
3from llmcompressor.modifiers.quantization import QuantizationModifier
4
5model = AutoModelForImageTextToText.from_pretrained(
6 "Qwen/Qwen3.5-9B", dtype="auto", trust_remote_code=True
7)
8processor = AutoProcessor.from_pretrained("Qwen/Qwen3.5-9B", trust_remote_code=True)
9
10recipe = QuantizationModifier(
11 targets="Linear",
12 scheme="FP8_DYNAMIC",
13 ignore=[
14 "lm_head",
15 "re:.*visual.*",
16 "re:.*linear_attn.*",
17 ],
18)
19
20oneshot(model=model, recipe=recipe)
21
22model.save_pretrained("Qwen3.5-9B-FP8-Dynamic")
23processor.save_pretrained("Qwen3.5-9B-FP8-Dynamic")llm-compressor.