Downloads · 30 days
6
29% of all-time downloads
Ba2han/checkpoint-muon-12665
checkpoint-muon-12665 is a machine learning model from Ba2han. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is an experimental pretrained model.
Downloads · 30 days
6
29% of all-time downloads
All-time downloads
21
Public
Parameters
556M
3.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt2.3 GB · 67%
From the Hugging Face model README
This is an experimental pretrained model.
Training progress: 0.28/1.5 epochs, ~2.5B / 13.5B tokens
Languages: English and Turkish
import torch
from transformers import pipeline, set_seed
set_seed(1881)
# Load the model pipeline
generator = pipeline("text-generation", model="Ba2han/checkpoint-muon-12665", device="cuda" if torch.cuda.is_available() else "cpu")
# Your prompts
prompts = ["Osmanlı Devleti'nin kurucusu", "Türkiye Cumhuriyeti'nin kurucusu", "Leyla ile", "Türkiye'nin başkenti", "Fransa'nın başkenti", "İran'ın başkenti", "Twitter is a"]
print("Generated outputs for all prompts:\n")
# Generate text for each prompt individually
for i, prompt in enumerate(prompts, 1):
try:
output = generator(
prompt,
temperature=0.7,
repetition_penalty=1,
top_p=0.95,
max_new_tokens=5,
return_full_text=False
)
# Extract the generated text
generated_text = output[0]['generated_text']
print(f"{i}. Prompt: '{prompt}'")
print(f" Generated: {generated_text}")
print()
except Exception as e:
print(f"{i}. Prompt: '{prompt}'")
print(f" Error: {e}")
print()
Generated outputs for all prompts:
Generated: Osman Bey'in oğ
Generated: Mustafa Kemal Atatürk
Generated: Mecnun izle
Generated: Ankara'da gece
Generated: Paris'te bir terör
Generated: Tahran'da bugün
Generated: site and a service.