Downloads · 30 days
10
22% of all-time downloads
bonur/smollm-turkish-base
smollm-turkish-base is a text generation model from bonur. Use it when you need the model to write or continue text.
Turkish base model with early stopped training
Downloads · 30 days
10
22% of all-time downloads
All-time downloads
45
Public
Repo size
545 MB
Likes
0
Public
Click a slice to open those files.
.json5 MB · 89%
From the Hugging Face model README
Turkish base model with early stopped training
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("bonur/smollm-turkish-base")
tokenizer = AutoTokenizer.from_pretrained("bonur/smollm-turkish-base")
text = "Your prompt here"
inputs = tokenizer(text, return_tensors="pt", padding=True)
outputs = model.generate(
inputs.input_ids,
attention_mask=inputs.attention_mask,
max_new_tokens=100,
do_sample=True,
temperature=0.7,
top_p=0.9
)
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)