Gemma-2 Mitra (2024)
Collection
The first-generation Dharmamitra model family (trained August 2024) on gemma-2: base, instruct, embedder — plus the 2026 chat SFT. • 7 items • Updated
How to use buddhist-nlp/gemma-2-mitra-it-int8 with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("buddhist-nlp/gemma-2-mitra-it-int8", device_map="auto")This is an 8int quantized version of gemma-2-mitra-it: https://huggingface.co/buddhist-nlp/gemma-2-mitra-it
The quantization was done with llm compressor: https://github.com/vllm-project/llm-compressor
The template for prompting the model is this:
Please translate into <target_language>: <input_sentence> 🔽 Translation::
Line breaks in this model should be replaced with the '🔽' character before running the generation. '#' is used as a stop token.
For details on how to run this please see the gemma2-9b repository: https://huggingface.co/google/gemma-2-9b