Downloads · 30 days
21
2% of all-time downloads
Metin/gemma-2b-tr
gemma-2b-tr is a text generation model from Metin. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
gemma-2b fine-tuned for the task of Turkish text generation.
Downloads · 30 days
21
2% of all-time downloads
All-time downloads
855
Public
Parameters
2.5B
10 GB on disk
Likes
6
Public
Click a slice to open those files.
.bin5 GB · 50%
From the Hugging Face model README
gemma-2b fine-tuned for the task of Turkish text generation.
The model is specifically designed for Turkish text generation. It is not suitable for instruction-following or question-answering tasks.
Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms Please refer to the gemma use restrictions before start using the model. https://ai.google.dev/gemma/terms#3.2-use
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Metin/gemma-2b-tr")
model = AutoModelForCausalLM.from_pretrained("Metin/gemma-2b-tr")
prompt = "Bugün sinemaya gidemedim çünkü"
input_ids = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**input_ids)
print(tokenizer.decode(outputs[0]))