nllg/DaTikZ-V4
Viewer • Updated • 428k • 511 • 5
How to use michelinolinolino/gemma4-4b-tikz with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf michelinolinolino/gemma4-4b-tikz # Run inference directly in the terminal: llama cli -hf michelinolinolino/gemma4-4b-tikz
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf michelinolinolino/gemma4-4b-tikz # Run inference directly in the terminal: llama cli -hf michelinolinolino/gemma4-4b-tikz
# 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 michelinolinolino/gemma4-4b-tikz # Run inference directly in the terminal: ./llama-cli -hf michelinolinolino/gemma4-4b-tikz
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 michelinolinolino/gemma4-4b-tikz # Run inference directly in the terminal: ./build/bin/llama-cli -hf michelinolinolino/gemma4-4b-tikz
docker model run hf.co/michelinolinolino/gemma4-4b-tikz
How to use michelinolinolino/gemma4-4b-tikz with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "michelinolinolino/gemma4-4b-tikz"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "michelinolinolino/gemma4-4b-tikz",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/michelinolinolino/gemma4-4b-tikz
How to use michelinolinolino/gemma4-4b-tikz with Ollama:
ollama run hf.co/michelinolinolino/gemma4-4b-tikz
How to use michelinolinolino/gemma4-4b-tikz with Unsloth Studio:
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 michelinolinolino/gemma4-4b-tikz to start chatting
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 michelinolinolino/gemma4-4b-tikz to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for michelinolinolino/gemma4-4b-tikz to start chatting
How to use michelinolinolino/gemma4-4b-tikz with Docker Model Runner:
docker model run hf.co/michelinolinolino/gemma4-4b-tikz
How to use michelinolinolino/gemma4-4b-tikz with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull michelinolinolino/gemma4-4b-tikz
lemonade run user.gemma4-4b-tikz-{{QUANT_TAG}}lemonade list
gemma4-4b-tikz is a TikZ-focused fine-tune of Gemma 4, trained to improve generation of compilable TikZ/LaTeX figures from scientific captions and multimodal inputs.
unsloth/gemma-4-E4B-itnllg/DaTikZ-V4tikz/config.yaml)Primary metric is compilation success rate on nllg/datikz-v3 test split, with optional visual similarity metrics (SSIM/LPIPS) for successful compilations.
tikz/@misc{banfi2026gemma4tikz,
title={Gemma-4 TikZ Fine-tuning},
author={Banfi, Michele},
year={2026},
howpublished={\url{https://github.com/michelebanfi/finetune-gemma-4}}
}
We're not able to determine the quantization variants.