ucsbcit commited on
Commit
113a2ee
·
verified ·
1 Parent(s): cc3c3ee

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +52 -0
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: OpenGVLab/InternVL3_5-38B-Flash
4
+ tags:
5
+ - fp8
6
+ - quantization
7
+ - llm-compressor
8
+ - vllm
9
+ - vision
10
+ - multimodal
11
+ pipeline_tag: image-text-to-text
12
+ library_name: transformers
13
+ ---
14
+
15
+ # InternVL3_5-38B-Flash-FP8
16
+
17
+ This repository contains an **FP8 quantized version** of the multi-modal model [OpenGVLab/InternVL3_5-38B-Flash](https://huggingface.co/OpenGVLab/InternVL3_5-38B-Flash).
18
+
19
+ ## Model Details
20
+ * **Base Model:** `OpenGVLab/InternVL3_5-38B-Flash`
21
+ * **Quantization Format:** FP8 (E4M3) targeting `Linear` layers
22
+ * **Quantization Engine:** `llmcompressor` (Post-Training Quantization / PTQ)
23
+ * **Calibration Dataset:** 512 samples from `ultrachat-200k` (`train_sft`)
24
+ * **License:** MIT
25
+
26
+ ## Method & Creation Process
27
+
28
+ The model was quantized using Neural Magic's [`llm-compressor`](https://github.com/vllm-project/llm-compressor) framework.
29
+
30
+ Post-training quantization (PTQ) was applied directly to the language backbone (`model.language_model`). This strategy ensures that all heavy `Linear` projections in the main LLM layers are converted to FP8 for maximum speedup and reduced VRAM footprint, while preserving the vision architecture intact.
31
+
32
+ ### Quantization Recipe
33
+
34
+ ```python
35
+ from llmcompressor import oneshot
36
+ from llmcompressor.modifiers.quantization import QuantizationModifier
37
+
38
+ recipe = QuantizationModifier(
39
+ targets="Linear",
40
+ scheme="FP8",
41
+ ignore=["lm_head"]
42
+ )
43
+
44
+ oneshot(
45
+ model=model.language_model,
46
+ tokenizer=tokenizer,
47
+ dataset="ultrachat-200k",
48
+ splits="train_sft[:512]",
49
+ recipe=recipe,
50
+ max_seq_length=2048,
51
+ num_calibration_samples=512,
52
+ )