Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

DhruvalLabs
/
gemma-3-4b-it-GGUF

Image-Text-to-Text
Transformers
GGUF
Safetensors
English
arxiv:2110.14168
arxiv:2311.12022
gemma3
vision
arxiv:2203.10244
arxiv:2210.03057
arxiv:1903.00161
arxiv:1907.10641
arxiv:1705.03551
arxiv:2009.03300
text-generation-inference
arxiv:1911.01547
arxiv:1905.10044
arxiv:2106.03193
arxiv:2502.12404
arxiv:2104.12756
arxiv:2502.21228
vlm
arxiv:1911.11641
arxiv:1810.12440
arxiv:2103.03874
arxiv:1908.02660
arxiv:2107.03374
multimodal
Eval Results
arxiv:1904.09728
conversational
arxiv:2404.12390
arxiv:2312.11805
arxiv:1910.11856
arxiv:1905.07830
arxiv:2311.16502
arxiv:2304.06364
arxiv:2108.07732
quantized
arxiv:2404.16816
Model card Files Files and versions
xet
Community

Instructions to use DhruvalLabs/gemma-3-4b-it-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use DhruvalLabs/gemma-3-4b-it-GGUF with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-text-to-text", model="DhruvalLabs/gemma-3-4b-it-GGUF")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("DhruvalLabs/gemma-3-4b-it-GGUF", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • llama.cpp

    How to use DhruvalLabs/gemma-3-4b-it-GGUF with 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 DhruvalLabs/gemma-3-4b-it-GGUF:Q4_K_M
    # Run inference directly in the terminal:
    llama cli -hf DhruvalLabs/gemma-3-4b-it-GGUF:Q4_K_M
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf DhruvalLabs/gemma-3-4b-it-GGUF:Q4_K_M
    # Run inference directly in the terminal:
    llama cli -hf DhruvalLabs/gemma-3-4b-it-GGUF:Q4_K_M
    Build from source code
    git clone https://github.com/ggml-org/llama.cpp.git
    cd llama.cpp
    cmake -B build
    cmake --build build -j --target llama-app
    # Start a local OpenAI-compatible server with a web UI:
    ./build/bin/llama serve -hf DhruvalLabs/gemma-3-4b-it-GGUF:Q4_K_M
    # Run inference directly in the terminal:
    ./build/bin/llama cli -hf DhruvalLabs/gemma-3-4b-it-GGUF:Q4_K_M
    Use Docker
    docker model run hf.co/DhruvalLabs/gemma-3-4b-it-GGUF:Q4_K_M
  • Llama new
  • LM Studio
  • Jan
  • vLLM

    How to use DhruvalLabs/gemma-3-4b-it-GGUF with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "DhruvalLabs/gemma-3-4b-it-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": "DhruvalLabs/gemma-3-4b-it-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/DhruvalLabs/gemma-3-4b-it-GGUF:Q4_K_M
  • SGLang

    How to use DhruvalLabs/gemma-3-4b-it-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 "DhruvalLabs/gemma-3-4b-it-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": "DhruvalLabs/gemma-3-4b-it-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 "DhruvalLabs/gemma-3-4b-it-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": "DhruvalLabs/gemma-3-4b-it-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 DhruvalLabs/gemma-3-4b-it-GGUF with Ollama:

    ollama run hf.co/DhruvalLabs/gemma-3-4b-it-GGUF:Q4_K_M
  • Unsloth Desktop
  • Docker Model Runner

    How to use DhruvalLabs/gemma-3-4b-it-GGUF with Docker Model Runner:

    docker model run hf.co/DhruvalLabs/gemma-3-4b-it-GGUF:Q4_K_M
  • Lemonade

    How to use DhruvalLabs/gemma-3-4b-it-GGUF with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull DhruvalLabs/gemma-3-4b-it-GGUF:Q4_K_M
    Run and chat with the model
    lemonade run user.gemma-3-4b-it-GGUF-Q4_K_M
    List all available models
    lemonade list
  • Atomic Chat
gemma-3-4b-it-GGUF
26.6 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
Dhruval
Upload VLM GGUF quants via quant-kit (batch 2)
ee75912 verified 5 months ago
  • .gitattributes
    2.2 kB
    Upload VLM GGUF quants via quant-kit (batch 2) 5 months ago
  • README.md
    6.78 kB
    Upload VLM GGUF quants via quant-kit (batch 1) 5 months ago
  • gemma-3-4b-it-Q2_K.gguf
    1.73 GB
    xet
    Upload VLM GGUF quants via quant-kit (batch 1) 5 months ago
  • gemma-3-4b-it-Q3_K_L.gguf
    2.24 GB
    xet
    Upload VLM GGUF quants via quant-kit (batch 1) 5 months ago
  • gemma-3-4b-it-Q3_K_M.gguf
    2.1 GB
    xet
    Upload VLM GGUF quants via quant-kit (batch 1) 5 months ago
  • gemma-3-4b-it-Q3_K_S.gguf
    1.94 GB
    xet
    Upload VLM GGUF quants via quant-kit (batch 1) 5 months ago
  • gemma-3-4b-it-Q4_K_M.gguf
    2.49 GB
    xet
    Upload VLM GGUF quants via quant-kit (batch 1) 5 months ago
  • gemma-3-4b-it-Q4_K_S.gguf
    2.38 GB
    xet
    Upload VLM GGUF quants via quant-kit (batch 2) 5 months ago
  • gemma-3-4b-it-Q5_K_M.gguf
    2.83 GB
    xet
    Upload VLM GGUF quants via quant-kit (batch 1) 5 months ago
  • gemma-3-4b-it-Q5_K_S.gguf
    2.76 GB
    xet
    Upload VLM GGUF quants via quant-kit (batch 2) 5 months ago
  • gemma-3-4b-it-Q6_K.gguf
    3.19 GB
    xet
    Upload VLM GGUF quants via quant-kit (batch 2) 5 months ago
  • gemma-3-4b-it-Q8_0.gguf
    4.13 GB
    xet
    Upload VLM GGUF quants via quant-kit (batch 1) 5 months ago
  • gemma-3-4b-it-mmproj-f16.gguf
    851 MB
    xet
    Upload VLM GGUF quants via quant-kit (batch 1) 5 months ago