Image-Text-to-Text
Transformers
Safetensors
English
qwen2_5_vl
multimodal
conversational
text-generation-inference
4-bit precision
awq
Instructions to use PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ") model = AutoModelForMultimodalLM.from_pretrained("PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ
- SGLang
How to use PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ with Docker Model Runner:
docker model run hf.co/PointerHQ/Qwen2.5-VL-72B-Instruct-Pointer-AWQ
Update quantized model to support tensor parallel
Browse files- config.json +2 -2
- model-00001-of-00009.safetensors +2 -2
- model-00002-of-00009.safetensors +2 -2
- model-00003-of-00009.safetensors +2 -2
- model-00004-of-00009.safetensors +2 -2
- model-00005-of-00009.safetensors +2 -2
- model-00006-of-00009.safetensors +2 -2
- model-00007-of-00009.safetensors +2 -2
- model-00008-of-00009.safetensors +2 -2
- model-00009-of-00009.safetensors +2 -2
- model.safetensors.index.json +1 -1
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "/pointer/Qwen/Qwen2.5-VL-72B-Instruct",
|
| 3 |
"architectures": [
|
| 4 |
"Qwen2_5_VLForConditionalGeneration"
|
| 5 |
],
|
|
@@ -10,7 +10,7 @@
|
|
| 10 |
"hidden_size": 8192,
|
| 11 |
"image_token_id": 151655,
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
-
"intermediate_size":
|
| 14 |
"max_position_embeddings": 128000,
|
| 15 |
"max_window_layers": 80,
|
| 16 |
"model_type": "qwen2_5_vl",
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "/pointer/padded/Qwen/Qwen2.5-VL-72B-Instruct",
|
| 3 |
"architectures": [
|
| 4 |
"Qwen2_5_VLForConditionalGeneration"
|
| 5 |
],
|
|
|
|
| 10 |
"hidden_size": 8192,
|
| 11 |
"image_token_id": 151655,
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 29696,
|
| 14 |
"max_position_embeddings": 128000,
|
| 15 |
"max_window_layers": 80,
|
| 16 |
"model_type": "qwen2_5_vl",
|
model-00001-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:609b34ebd8382c86aa87c149925c8f5dfccb22d369bdd339b8669418e9104f95
|
| 3 |
+
size 4894397816
|
model-00002-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0f53c2686f55e7dfe8613234c8d28c2892227b32a67ecd785fb897d2d8af4ae
|
| 3 |
+
size 4999408968
|
model-00003-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e57fa613a8a02764e411bee1b6bf5694190c0014d44e4e9e671496700690179
|
| 3 |
+
size 4990671384
|
model-00004-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca08c5551f39224e2e248e6ced5b761d6832315e37e5b5f19f80b49afe7410db
|
| 3 |
+
size 4907855144
|
model-00005-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15618fd4b86b3fc61d2d47ad7791e1b6493fc5d550efa3a02166bef5eb49055c
|
| 3 |
+
size 4907888160
|
model-00006-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ecda8dfc6b7b3c982160e8732680de50c922c81e7abcb2949e5e297e148882a2
|
| 3 |
+
size 4907888160
|
model-00007-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:29778ba0df868991ea5a9296ec35d714da218ecb526f5469140f90217da32404
|
| 3 |
+
size 4999409176
|
model-00008-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8492220b737aa7980ec80bf7cb1c8e837ce3ab225a5926e1bb53e2b8f11d3221
|
| 3 |
+
size 4990671384
|
model-00009-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6d19059e024889e390f327d9e8e7b595091cae8d51fae6497f89fd71d7c37ad
|
| 3 |
+
size 3406755792
|
model.safetensors.index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"metadata": {
|
| 3 |
-
"total_size":
|
| 4 |
},
|
| 5 |
"weight_map": {
|
| 6 |
"visual.patch_embed.proj.weight": "model-00001-of-00009.safetensors",
|
|
|
|
| 1 |
{
|
| 2 |
"metadata": {
|
| 3 |
+
"total_size": 43004666368
|
| 4 |
},
|
| 5 |
"weight_map": {
|
| 6 |
"visual.patch_embed.proj.weight": "model-00001-of-00009.safetensors",
|