Instructions to use Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF") 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)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF", dtype="auto") - llama-cpp-python
How to use Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF", filename="qwen2.5-vl-7b-instruct-q8_0.gguf", )
llm.create_chat_completion( 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" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama-cli -hf Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama-cli -hf Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF:Q8_0
Use Docker
docker model run hf.co/Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF:Q8_0
- LM Studio
- Jan
- vLLM
How to use Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF", "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/Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF:Q8_0
- SGLang
How to use Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF 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 "Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF" \ --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": "Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF", "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 "Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF" \ --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": "Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF", "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" } } ] } ] }' - Ollama
How to use Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF with Ollama:
ollama run hf.co/Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF:Q8_0
- Unsloth Studio
How to use Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF to start chatting
- Docker Model Runner
How to use Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF with Docker Model Runner:
docker model run hf.co/Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF:Q8_0
- Lemonade
How to use Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF:Q8_0
Run and chat with the model
lemonade run user.Qwen2.5-VL-7B-Instruct-Q8_0-GGUF-Q8_0
List all available models
lemonade list
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pipeline_tag: image-text-to-text
|
| 6 |
+
tags:
|
| 7 |
+
- multimodal
|
| 8 |
+
- llama-cpp
|
| 9 |
+
- gguf-my-repo
|
| 10 |
+
library_name: transformers
|
| 11 |
+
base_model: Qwen/Qwen2.5-VL-7B-Instruct
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF
|
| 15 |
+
This model was converted to GGUF format from [`Qwen/Qwen2.5-VL-7B-Instruct`](https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
| 16 |
+
Refer to the [original model card](https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct) for more details on the model.
|
| 17 |
+
|
| 18 |
+
## Use with llama.cpp
|
| 19 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
| 20 |
+
|
| 21 |
+
```bash
|
| 22 |
+
brew install llama.cpp
|
| 23 |
+
|
| 24 |
+
```
|
| 25 |
+
Invoke the llama.cpp server or the CLI.
|
| 26 |
+
|
| 27 |
+
### CLI:
|
| 28 |
+
```bash
|
| 29 |
+
llama-cli --hf-repo Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF --hf-file qwen2.5-vl-7b-instruct-q8_0.gguf -p "The meaning to life and the universe is"
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
### Server:
|
| 33 |
+
```bash
|
| 34 |
+
llama-server --hf-repo Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF --hf-file qwen2.5-vl-7b-instruct-q8_0.gguf -c 2048
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
|
| 38 |
+
|
| 39 |
+
Step 1: Clone llama.cpp from GitHub.
|
| 40 |
+
```
|
| 41 |
+
git clone https://github.com/ggerganov/llama.cpp
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
|
| 45 |
+
```
|
| 46 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
Step 3: Run inference through the main binary.
|
| 50 |
+
```
|
| 51 |
+
./llama-cli --hf-repo Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF --hf-file qwen2.5-vl-7b-instruct-q8_0.gguf -p "The meaning to life and the universe is"
|
| 52 |
+
```
|
| 53 |
+
or
|
| 54 |
+
```
|
| 55 |
+
./llama-server --hf-repo Yuhao22/Qwen2.5-VL-7B-Instruct-Q8_0-GGUF --hf-file qwen2.5-vl-7b-instruct-q8_0.gguf -c 2048
|
| 56 |
+
```
|