Instructions to use pltobing/translategemma-4b-it-Q4_K_M-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pltobing/translategemma-4b-it-Q4_K_M-GGUF with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="pltobing/translategemma-4b-it-Q4_K_M-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("pltobing/translategemma-4b-it-Q4_K_M-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use pltobing/translategemma-4b-it-Q4_K_M-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 pltobing/translategemma-4b-it-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf pltobing/translategemma-4b-it-Q4_K_M-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 pltobing/translategemma-4b-it-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf pltobing/translategemma-4b-it-Q4_K_M-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 pltobing/translategemma-4b-it-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf pltobing/translategemma-4b-it-Q4_K_M-GGUF:Q4_K_M
Use Docker
docker model run hf.co/pltobing/translategemma-4b-it-Q4_K_M-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use pltobing/translategemma-4b-it-Q4_K_M-GGUF with Ollama:
ollama run hf.co/pltobing/translategemma-4b-it-Q4_K_M-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use pltobing/translategemma-4b-it-Q4_K_M-GGUF with Docker Model Runner:
docker model run hf.co/pltobing/translategemma-4b-it-Q4_K_M-GGUF:Q4_K_M
- Lemonade
How to use pltobing/translategemma-4b-it-Q4_K_M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull pltobing/translategemma-4b-it-Q4_K_M-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.translategemma-4b-it-Q4_K_M-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Access Gemma on Hugging Face
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
To access Gemma on Hugging Face, you’re required to review and agree to Google’s usage license. To do this, please ensure you’re logged in to Hugging Face and click below. Requests are processed immediately.
Log in or Sign Up to review the conditions and access this model content.
TranslateGemma GGUF Q4_K_M
Device: CPU/GPU
Language: 55 languages (see model origin details)
Speed: ~18 token/s on m8a.xlarge (5th Gen AMD EPYC 9R45 CPU)
Model origin (see for model details): https://huggingface.co/google/translategemma-4b-it
By: Patrick Lumbantobing
Copyright@VertoX-AI
- Downloads last month
- 17
4-bit
Model tree for pltobing/translategemma-4b-it-Q4_K_M-GGUF
Base model
google/translategemma-4b-it