How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf mashriram/Sarvam-1-VL-4B-Instruct-GGUF:BF16
# Run inference directly in the terminal:
llama cli -hf mashriram/Sarvam-1-VL-4B-Instruct-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf mashriram/Sarvam-1-VL-4B-Instruct-GGUF:BF16
# Run inference directly in the terminal:
llama cli -hf mashriram/Sarvam-1-VL-4B-Instruct-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 mashriram/Sarvam-1-VL-4B-Instruct-GGUF:BF16
# Run inference directly in the terminal:
./llama-cli -hf mashriram/Sarvam-1-VL-4B-Instruct-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 mashriram/Sarvam-1-VL-4B-Instruct-GGUF:BF16
# Run inference directly in the terminal:
./build/bin/llama-cli -hf mashriram/Sarvam-1-VL-4B-Instruct-GGUF:BF16
Use Docker
docker model run hf.co/mashriram/Sarvam-1-VL-4B-Instruct-GGUF:BF16
Quick Links

Sarvam-1-VL-4B-Instruct - GGUF (Quantized)

Model Description

GGUF quantized version for CPU/edge deployment using llama.cpp. Includes Q4_K_M quantization for optimal size/quality balance.

Files

  • qwen3-vl-4b-instruct.Q4_K_M.gguf - Quantized model (4-bit)
  • qwen3-vl-4b-instruct.BF16-mmproj.gguf - Quantized model (4-bit)

Training Details

  • Base Model: Qwen/Qwen3-VL-4B-Instruct
  • Quantization: Q4_K_M
  • Original Training: 2,000 steps, loss 6.25

Datasets

Trained on 4 datasets covering:

  • Translation (40%): BPCC - 22 Indic languages ↔ English
  • Instruction Following (20%): Pralekha - 11 language pairs
  • Document Layout (30%): IndicDLP - Document understanding
  • Visual QA (10%): DocVQA - Question answering

Supported Languages

Assamese, Bengali, Bodo, Dogri, Gujarati, Hindi, Kannada, Kashmiri, Konkani, Maithili, Malayalam, Marathi, Manipuri, Nepali, Odia, Punjabi, Sanskrit, Santali, Sindhi, Tamil, Telugu, Urdu, English

Usage with llama.cpp

# Run inference
llama-mtmd-cli \
  -m qwen3-vl-4b-instruct.Q4_K_M.gguf \
  --mmproj qwen3-vl-4b-instruct.BF16-mmproj.gguf \
  -p "Translate this to Hindi:" \
  --image document.jpg

Memory Requirements

  • Q4_K_M: ~2.5GB RAM
  • With mmproj: ~3GB RAM total

Performance

  • Speed: Fast CPU inference
  • Quality: Minimal degradation vs fp16
  • Deployment: Ideal for edge devices

License

Apache 2.0

Downloads last month
31
Safetensors
Model size
4B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 1 Ask for provider support

Model tree for mashriram/Sarvam-1-VL-4B-Instruct-GGUF

Quantized
(95)
this model

Datasets used to train mashriram/Sarvam-1-VL-4B-Instruct-GGUF