Instructions to use tencent/Youtu-VL-4B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tencent/Youtu-VL-4B-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tencent/Youtu-VL-4B-Instruct-GGUF", filename="Youtu-VL-4B-Instruct-F16.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 tencent/Youtu-VL-4B-Instruct-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tencent/Youtu-VL-4B-Instruct-GGUF:F16 # Run inference directly in the terminal: llama-cli -hf tencent/Youtu-VL-4B-Instruct-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tencent/Youtu-VL-4B-Instruct-GGUF:F16 # Run inference directly in the terminal: llama-cli -hf tencent/Youtu-VL-4B-Instruct-GGUF:F16
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 tencent/Youtu-VL-4B-Instruct-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf tencent/Youtu-VL-4B-Instruct-GGUF:F16
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 tencent/Youtu-VL-4B-Instruct-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf tencent/Youtu-VL-4B-Instruct-GGUF:F16
Use Docker
docker model run hf.co/tencent/Youtu-VL-4B-Instruct-GGUF:F16
- LM Studio
- Jan
- vLLM
How to use tencent/Youtu-VL-4B-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tencent/Youtu-VL-4B-Instruct-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": "tencent/Youtu-VL-4B-Instruct-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/tencent/Youtu-VL-4B-Instruct-GGUF:F16
- Ollama
How to use tencent/Youtu-VL-4B-Instruct-GGUF with Ollama:
ollama run hf.co/tencent/Youtu-VL-4B-Instruct-GGUF:F16
- Unsloth Studio
How to use tencent/Youtu-VL-4B-Instruct-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 tencent/Youtu-VL-4B-Instruct-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 tencent/Youtu-VL-4B-Instruct-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tencent/Youtu-VL-4B-Instruct-GGUF to start chatting
- Docker Model Runner
How to use tencent/Youtu-VL-4B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/tencent/Youtu-VL-4B-Instruct-GGUF:F16
- Lemonade
How to use tencent/Youtu-VL-4B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tencent/Youtu-VL-4B-Instruct-GGUF:F16
Run and chat with the model
lemonade run user.Youtu-VL-4B-Instruct-GGUF-F16
List all available models
lemonade list
Ollama error "key not found in model: deepseek2.expert_weights_scale"
Tried to run on Ollama - hf.co/tencent/Youtu-VL-4B-Instruct-GGUF:Q8_0
and got:
Ollama error 500: {"error":"llama runner process has terminated: error loading model: error loading model hyperparameters: key not found in model: deepseek2.expert_weights_scale"}
@fenixionsoul The current released version of Ollama does not support direct inference with the Youtu-VL-4B model. You can use llama.cpp instead. For details, please refer to https://huggingface.co/tencent/Youtu-VL-4B-Instruct-GGUF#%F0%9F%9A%80-quickstart
Full support for this model is available starting from Ollama 0.30.4.
Please upgrade your Ollama to this version, after that run:ollama run youtu/youtu-vl to start the model.