Downloads · 30 days
23
2% of all-time downloads
oguzatas/mamba-tr-project-transformer
mamba-tr-project-transformer is a text generation model from oguzatas. Use it when you need the model to write or continue text. The card lists the license as mit.
Downloads · 30 days
23
2% of all-time downloads
All-time downloads
969
Public
Parameters
110M
442 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors442 MB · 99%
From the Hugging Face model README
This model serves as the baseline for a comparative study between Transformer and Mamba architectures on agglutinative languages (specifically Turkish). It is a decoder-only Transformer model (~111M parameters) trained on the Turkish Wikipedia dataset.
from transformers import GPT2LMHeadModel, PreTrainedTokenizerFast
model_id = "oguzatas/mamba-tr-project-transformer"
tokenizer_id = "oguzatas/mamba-tr-project-tokenizer"
tokenizer = PreTrainedTokenizerFast.from_pretrained(tokenizer_id)
model = GPT2LMHeadModel.from_pretrained(model_id)
text = "Türkiye'nin başkenti"
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=20)
print(tokenizer.decode(outputs[0]))