ShuaiBai623 commited on
Commit
f982a07
·
verified ·
1 Parent(s): 5bcaa9c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +47 -0
README.md CHANGED
@@ -75,6 +75,53 @@ Available in Dense and MoE architectures that scale from edge to cloud, with Ins
75
  ![](https://qianwen-res.oss-accelerate.aliyuncs.com/Qwen3-VL/qwen3vl_4b_8b_text_instruct.jpg)
76
 
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  ### Generation Hyperparameters
79
  #### VL
80
  ```bash
 
75
  ![](https://qianwen-res.oss-accelerate.aliyuncs.com/Qwen3-VL/qwen3vl_4b_8b_text_instruct.jpg)
76
 
77
 
78
+ ## How to Use
79
+
80
+ To use these models with `llama.cpp`, please ensure you are using the **latest version**—either by [building from source](https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md) or downloading the most recent [release](https://github.com/ggml-org/llama.cpp/releases/tag/b6907) according to the devices.
81
+
82
+ You can run inference via the command line or through a web-based chat interface.
83
+
84
+ ### CLI Inference (`llama-mtmd-cli`)
85
+
86
+ For example, to run Qwen3-VL-8B-Instruct with an FP16 vision encoder and Q8_0 quantized LLM:
87
+
88
+ ```bash
89
+ llama-mtmd-cli \
90
+ -m path/to/Qwen3VL-8B-Instruct-Q8_0.gguf \
91
+ --mmproj path/to/mmproj-Qwen3VL-8B-Instruct-F16.gguf \
92
+ --image test.jpeg \
93
+ -p "What is the publisher name of the newspaper?" \
94
+ --temp 0.7 --top-k 20 --top-p 0.8 -n 1024
95
+ ```
96
+
97
+ ### Web Chat (using `llama-server`)
98
+
99
+ To serve Qwen3-VL-235B-A22B-Instruct via an OpenAI-compatible API with a web UI:
100
+
101
+ ```bash
102
+ llama-server \
103
+ -m path/to/Qwen3VL-235B-A22B-Instruct-Q4_K_M-split-00001-of-00003.gguf \
104
+ --mmproj path/to/mmproj-Qwen3VL-235B-A22B-Instruct-Q8_0.gguf
105
+ ```
106
+
107
+ > **Tip**: For models split into multiple GGUF files, simply specify the first shard (e.g., `...-00001-of-00003.gguf`). llama.cpp will automatically load all parts.
108
+
109
+ Once the server is running, open your browser to `http://localhost:8080` to access the built-in chat interface, or send requests to the `/v1/chat/completions` endpoint. For more details, refer to the [official documentation](https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md).
110
+
111
+ ### Quantize Your Custom Model
112
+
113
+ You can further quantize the FP16 weights to other precision levels. For example, to quantize the model to 2-bit:
114
+
115
+ ```bash
116
+ # Quantize to 2-bit (IQ2_XXS)
117
+ llama-quantize \
118
+ path/to/Qwen3VL-235B-A22B-Instruct-F16.gguf \
119
+ path/to/Qwen3VL-235B-A22B-Instruct-IQ2_XXS.gguf \
120
+ iq2_xxs 8
121
+ ```
122
+
123
+ For a full list of supported quantization types and detailed instructions, refer to the [quantization documentation](https://github.com/ggml-org/llama.cpp/blob/master/tools/quantize/README.md).
124
+
125
  ### Generation Hyperparameters
126
  #### VL
127
  ```bash