Instructions to use BeitTigreAI/gemma-4-E2B-sft-tran-tigre with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use BeitTigreAI/gemma-4-E2B-sft-tran-tigre with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="BeitTigreAI/gemma-4-E2B-sft-tran-tigre", filename="gemma-4-E2B-sft-tran-tigre-BF16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use BeitTigreAI/gemma-4-E2B-sft-tran-tigre with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf BeitTigreAI/gemma-4-E2B-sft-tran-tigre:Q4_K_M # Run inference directly in the terminal: llama-cli -hf BeitTigreAI/gemma-4-E2B-sft-tran-tigre:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf BeitTigreAI/gemma-4-E2B-sft-tran-tigre:Q4_K_M # Run inference directly in the terminal: llama-cli -hf BeitTigreAI/gemma-4-E2B-sft-tran-tigre:Q4_K_M
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 BeitTigreAI/gemma-4-E2B-sft-tran-tigre:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf BeitTigreAI/gemma-4-E2B-sft-tran-tigre:Q4_K_M
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 BeitTigreAI/gemma-4-E2B-sft-tran-tigre:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf BeitTigreAI/gemma-4-E2B-sft-tran-tigre:Q4_K_M
Use Docker
docker model run hf.co/BeitTigreAI/gemma-4-E2B-sft-tran-tigre:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use BeitTigreAI/gemma-4-E2B-sft-tran-tigre with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BeitTigreAI/gemma-4-E2B-sft-tran-tigre" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BeitTigreAI/gemma-4-E2B-sft-tran-tigre", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BeitTigreAI/gemma-4-E2B-sft-tran-tigre:Q4_K_M
- Ollama
How to use BeitTigreAI/gemma-4-E2B-sft-tran-tigre with Ollama:
ollama run hf.co/BeitTigreAI/gemma-4-E2B-sft-tran-tigre:Q4_K_M
- Unsloth Studio
How to use BeitTigreAI/gemma-4-E2B-sft-tran-tigre 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 BeitTigreAI/gemma-4-E2B-sft-tran-tigre 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 BeitTigreAI/gemma-4-E2B-sft-tran-tigre to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for BeitTigreAI/gemma-4-E2B-sft-tran-tigre to start chatting
- Docker Model Runner
How to use BeitTigreAI/gemma-4-E2B-sft-tran-tigre with Docker Model Runner:
docker model run hf.co/BeitTigreAI/gemma-4-E2B-sft-tran-tigre:Q4_K_M
- Lemonade
How to use BeitTigreAI/gemma-4-E2B-sft-tran-tigre with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull BeitTigreAI/gemma-4-E2B-sft-tran-tigre:Q4_K_M
Run and chat with the model
lemonade run user.gemma-4-E2B-sft-tran-tigre-Q4_K_M
List all available models
lemonade list
How to use from
vLLMUse Docker
docker model run hf.co/BeitTigreAI/gemma-4-E2B-sft-tran-tigre:Quick Links
gemma-4-E2B-sft-tran-tigre
GGUF builds of a Tigre translation fine-tune of google/gemma-4-E2B.
Pipeline
- Base โ
google/gemma-4-E2B(Gemma 4 E2B) - CPT โ Continued pre-training adapter for Tigre fluency, merged into base weights
- SFT โ Translation LoRA on bidirectional translation pairs (XโTigre), merged into the CPT-merged base
- GGUF โ Converted with
llama.cpp(convert_hf_to_gguf.py) and quantized withllama-quantize
Files
| File | Quantization | Notes |
|---|---|---|
gemma-4-E2B-sft-tran-tigre-BF16.gguf |
BF16 | Full precision base โ use to derive other quants |
gemma-4-E2B-sft-tran-tigre-Q8_0.gguf |
Q8_0 | Near-lossless, recommended if size allows |
gemma-4-E2B-sft-tran-tigre-Q5_K_M.gguf |
Q5_K_M | Good quality, smaller than Q8 |
gemma-4-E2B-sft-tran-tigre-Q4_K_M.gguf |
Q4_K_M | Best size/quality tradeoff for most users |
Usage with llama.cpp
./llama-cli -hf google/gemma-4-E2B-sft-tran-tigre:Q4_K_M \
--temp 0.3 --top-p 0.9 \
-p "Translate the following English text to Tigre.\n\nHello, how are you?"
Chat template
Standard Gemma turn template:
<bos><start_of_turn>user
{instruction}
{input}<end_of_turn>
<start_of_turn>model
{output}<end_of_turn>
License
Inherits the Gemma Terms of Use from the base model.
- Downloads last month
- 36
Hardware compatibility
Log In to add your hardware
4-bit
5-bit
8-bit
16-bit
Model tree for BeitTigreAI/gemma-4-E2B-sft-tran-tigre
Base model
google/gemma-4-E2B
Install from pip and serve model
# Install vLLM from pip: pip install vllm# Start the vLLM server: vllm serve "BeitTigreAI/gemma-4-E2B-sft-tran-tigre"# Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BeitTigreAI/gemma-4-E2B-sft-tran-tigre", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'