varad-simpli commited on
Commit
3c92457
·
verified ·
1 Parent(s): c7da82b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -82
README.md CHANGED
@@ -2,8 +2,6 @@
2
  tags:
3
  - fp8
4
  - fp8-dynamic
5
- - vllm
6
- - llm-compressor
7
  - internvl3.5
8
  - internvl
9
  language:
@@ -13,111 +11,32 @@ inference: false
13
  license: mit
14
  base_model: OpenGVLab/InternVL3_5-38B
15
  base_model_relation: quantized
16
- library_name: vllm
17
  ---
18
 
19
  # InternVL3.5 38B FP8
20
 
21
- This is an FP8 dynamically quantized (W8A8) version of `OpenGVLab/InternVL3_5-38B`optimized for high-performance inference with *vLLM*.
22
 
23
  The quantization process uses a specialized recipe that preserves the model's core visual understanding capabilities while reducing the memory footprint by nearly 40%.
24
 
25
- ## Just Run It (vLLM serve)
26
 
27
- You can serve the model using vLLM's OpenAI-compatible API server.
28
-
29
- ```bash
30
- vllm serve brandonbeiler/InternVL3_5-38B-FP8-Dynamic \
31
- --quantization compressed-tensors \
32
- --served-model-name internvl3_5-38b \
33
- --reasoning-parser qwen3 \
34
- --trust-remote-code \
35
- --max-model-len 32768 \
36
- --tensor-parallel-size 1 # Adjust based on your GPU setup
37
- ```
38
  **Notes**
39
  - 32k max context length
40
  - reasoning parser ready to go, requires system prompt to run in thinking mode
41
  - still investigating tool calling
42
 
43
-
44
- ## Key Features
45
-
46
- * **Calibration-Free FP8:** Dynamic W8A8 quantization. Weights are pre-quantized, and activations are quantized on the fly.
47
- * **Vision-Language Optimized:** The vision tower, embeddings, and the first MLP layer are preserved in full precision to maintain high performance on vision-language tasks.
48
- * **vLLM Ready:** Designed for seamless integration with vLLM for high-throughput serving.
49
- * **Memory Efficient:** ~40% memory reduction compared to the original FP16 model.
50
- * **Performance Boost:** Accelerated inference on FP8-compatible hardware (e.g., NVIDIA H100, L40S).
51
-
52
  ## Model Details
53
 
54
  | Attribute | Value |
55
  | :--- | :--- |
56
  | **Original Model** | [OpenGVLab/InternVL3_5-38B](https://huggingface.co/OpenGVLab/InternVL3_5-38B) |
57
- | **Quantized Model** | `brandonbeiler/InternVL3_5-38B-FP8-Dynamic` |
58
  | **Quantization Method** | FP8 Dynamic (W8A8) |
59
- | **Quantization Library** | [LLM Compressor](https://github.com/vllm-project/llm-compressor) v0.7.1 |
60
- | **Quantized By** | [brandonbeiler](https://huggingface.co/brandonbeiler) |
61
-
62
-
63
- ## Usage with vLLM in Python
64
-
65
- The following snippet demonstrates inference using the vLLM library.
66
-
67
- ```python
68
- from vllm import LLM, SamplingParams
69
-
70
- # Load the quantized model
71
- # trust_remote_code is required to load the custom model architecture. [32, 44, 45, 48]
72
- model = LLM(
73
- model="brandonbeiler/InternVL3_5-38B-FP8-Dynamic",
74
- trust_remote_code=True,
75
- max_model_len=32768, # InternVL 3.5 supports a 32k context length. [19, 41]
76
- tensor_parallel_size=1, # Adjust for your hardware setup. [11, 15, 38, 40]
77
- )
78
-
79
- # Set sampling parameters
80
- # A temperature of 0.6 is recommended for this model. [39]
81
- sampling_params = SamplingParams(temperature=0.6, max_tokens=512)
82
-
83
- # Generate a response
84
- # Note: Replace "<image>" with your image input
85
- prompt = "Describe this image: <image>"
86
- response = model.generate(prompt, sampling_params)
87
-
88
- print(response[0].outputs[0].text)
89
- ```
90
-
91
-
92
 
93
  ## Technical Specifications
94
 
95
- ### Hardware Requirements
96
-
97
- * **Base VRAM:** ~47GB (for model weights)
98
- * **Context VRAM:**
99
- * \+ ~1.3GB for 10k token context
100
- * \+ ~2GB for 32k token context with FP8 KV cache
101
- * **Recommended GPUs:** NVIDIA H100, L40S
102
- * **Supported GPUs:** NVIDIA A100 (80GB), 2x RTX 4090 (with tensor parallelism), latest AMD GPUs.
103
- * **Optimal Performance:** NVIDIA GPUs with Compute Capability >= 9.0 (Hopper, Blackwell).
104
-
105
  ### Quantization Details
106
 
107
  * **Weights:** FP8 E4M3 with per-tensor scales.
108
  * **Activations:** Dynamically quantized to FP8 E4M3 with per-tensor scales.
109
  * **Preserved Modules (Full Precision):** Vision tower, embeddings, and the first MLP layer (mlp1).
110
 
111
- ## Package Versions
112
-
113
- This model was quantized using the following environment:
114
-
115
- ```
116
- llmcompressor==0.7.1
117
- compressed-tensors==0.10.2
118
- transformers==4.55.0
119
- torch==2.7.1
120
- vllm==0.10.1.1
121
- ```
122
-
123
- *Quantized with ❤️ using [LLM Compressor](https://github.com/vllm-project/llm-compressor) for the open-source community.*
 
2
  tags:
3
  - fp8
4
  - fp8-dynamic
 
 
5
  - internvl3.5
6
  - internvl
7
  language:
 
11
  license: mit
12
  base_model: OpenGVLab/InternVL3_5-38B
13
  base_model_relation: quantized
 
14
  ---
15
 
16
  # InternVL3.5 38B FP8
17
 
18
+ This is an FP8 dynamically quantized (W8A8) version of `OpenGVLab/InternVL3_5-38B`optimized for high-performance inference.
19
 
20
  The quantization process uses a specialized recipe that preserves the model's core visual understanding capabilities while reducing the memory footprint by nearly 40%.
21
 
 
22
 
 
 
 
 
 
 
 
 
 
 
 
23
  **Notes**
24
  - 32k max context length
25
  - reasoning parser ready to go, requires system prompt to run in thinking mode
26
  - still investigating tool calling
27
 
 
 
 
 
 
 
 
 
 
28
  ## Model Details
29
 
30
  | Attribute | Value |
31
  | :--- | :--- |
32
  | **Original Model** | [OpenGVLab/InternVL3_5-38B](https://huggingface.co/OpenGVLab/InternVL3_5-38B) |
 
33
  | **Quantization Method** | FP8 Dynamic (W8A8) |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  ## Technical Specifications
36
 
 
 
 
 
 
 
 
 
 
 
37
  ### Quantization Details
38
 
39
  * **Weights:** FP8 E4M3 with per-tensor scales.
40
  * **Activations:** Dynamically quantized to FP8 E4M3 with per-tensor scales.
41
  * **Preserved Modules (Full Precision):** Vision tower, embeddings, and the first MLP layer (mlp1).
42