This model was quantized with
llm-compressor using FP8 dynamic activation quantization for the text backbone. The custom vision tower was intentionally excluded from quantization and kept in BF16.
1from llmcompressor import oneshot
2from llmcompressor.modifiers.quantization import QuantizationModifier
3
4recipe = QuantizationModifier(
5 targets="Linear",
6 scheme="FP8_DYNAMIC",
7 ignore=[
8 "lm_head",
9 "re:.*vision_tower.*",
10 ],
11)
12
13oneshot(model=model, recipe=recipe)
14
15model.save_pretrained("binedge/dots.mocr-FP8", save_compressed=True)
16processor.save_pretrained("binedge/dots.mocr-FP8")