Instructions to use prithivMLmods/CodeV-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/CodeV-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="prithivMLmods/CodeV-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("prithivMLmods/CodeV-GGUF", dtype="auto") - llama-cpp-python
How to use prithivMLmods/CodeV-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="prithivMLmods/CodeV-GGUF", filename="CodeV-RL.BF16.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 prithivMLmods/CodeV-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prithivMLmods/CodeV-GGUF:BF16 # Run inference directly in the terminal: llama-cli -hf prithivMLmods/CodeV-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prithivMLmods/CodeV-GGUF:BF16 # Run inference directly in the terminal: llama-cli -hf prithivMLmods/CodeV-GGUF:BF16
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 prithivMLmods/CodeV-GGUF:BF16 # Run inference directly in the terminal: ./llama-cli -hf prithivMLmods/CodeV-GGUF:BF16
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 prithivMLmods/CodeV-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf prithivMLmods/CodeV-GGUF:BF16
Use Docker
docker model run hf.co/prithivMLmods/CodeV-GGUF:BF16
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/CodeV-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/CodeV-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": "prithivMLmods/CodeV-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/prithivMLmods/CodeV-GGUF:BF16
- SGLang
How to use prithivMLmods/CodeV-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 "prithivMLmods/CodeV-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": "prithivMLmods/CodeV-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 "prithivMLmods/CodeV-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": "prithivMLmods/CodeV-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 prithivMLmods/CodeV-GGUF with Ollama:
ollama run hf.co/prithivMLmods/CodeV-GGUF:BF16
- Unsloth Studio
How to use prithivMLmods/CodeV-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 prithivMLmods/CodeV-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 prithivMLmods/CodeV-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for prithivMLmods/CodeV-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use prithivMLmods/CodeV-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/CodeV-GGUF:BF16
- Lemonade
How to use prithivMLmods/CodeV-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/CodeV-GGUF:BF16
Run and chat with the model
lemonade run user.CodeV-GGUF-BF16
List all available models
lemonade list
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"
}
}
]
}
]
)CodeV-GGUF
The CodeV models (CodeV-SFT and CodeV-RL from RenlyH) are 7B vision-language models fine-tuned from Qwen/Qwen2.5-VL-7B-Instruct, designed for faithful visual reasoning through a two-stage pipeline of supervised fine-tuning (SFT) followed by reinforcement learning (RL) using Tool-Aware Policy Optimization (TAPO), which represents visual tools as executable Python code and provides step-wise rewards based on question-tool output alignment to ensure evidence-consistent tool use without reward hacking. CodeV-SFT serves as the cold-start initialization with high-quality trajectories rich in tool invocation patterns, while CodeV-RL applies TAPO to boost performance, achieving 1-3 points over zero-shot RL and 6-8 points over SFT baselines on visual search benchmarks with substantial gains in faithful tool-use rates, alongside strong results in multimodal reasoning and math tasks. This approach addresses unfaithful reasoning in agentic VLMs—where high accuracy masks irrelevant tool calls—by explicitly supervising intermediate behaviors for trustworthy image-based problem-solving.
CodeV-RL [GGUF]
| File Name | Quant Type | File Size | File Link |
|---|---|---|---|
| CodeV-RL.BF16.gguf | BF16 | 15.2 GB | Download |
| CodeV-RL.F16.gguf | F16 | 15.2 GB | Download |
| CodeV-RL.Q8_0.gguf | Q8_0 | 8.1 GB | Download |
| CodeV-RL.mmproj-bf16.gguf | mmproj-bf16 | 1.36 GB | Download |
| CodeV-RL.mmproj-f16.gguf | mmproj-f16 | 1.35 GB | Download |
| CodeV-RL.mmproj-q8_0.gguf | mmproj-q8_0 | 856 MB | Download |
CodeV-SFT [GGUF]
| File Name | Quant Type | File Size | File Link |
|---|---|---|---|
| CodeV-SFT.BF16.gguf | BF16 | 15.2 GB | Download |
| CodeV-SFT.F16.gguf | F16 | 15.2 GB | Download |
| CodeV-SFT.Q8_0.gguf | Q8_0 | 8.1 GB | Download |
| CodeV-SFT.mmproj-bf16.gguf | mmproj-bf16 | 1.36 GB | Download |
| CodeV-SFT.mmproj-f16.gguf | mmproj-f16 | 1.35 GB | Download |
| CodeV-SFT.mmproj-q8_0.gguf | mmproj-q8_0 | 856 MB | Download |
Quants Usage
(sorted by size, not necessarily quality. IQ-quants are often preferable over similar sized non-IQ quants)
Here is a handy graph by ikawrakow comparing some lower-quality quant types (lower is better):
- Downloads last month
- 395
8-bit
16-bit

# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="prithivMLmods/CodeV-GGUF", filename="", )