Downloads · 30 days
22
8% of all-time downloads
ytu-ce-cosmos/previous-token-prediction-turkish-gpt2-large
previous-token-prediction-turkish-gpt2-large is a machine learning model from ytu-ce-cosmos. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
- Research supported with Cloud TPUs from Google's TensorFlow Research Cloud (TFRC). Thanks for providing access to the TFRC ❤️ - Thanks to the generous support from the Hugging Face team, it is possible to download m…
Downloads · 30 days
22
8% of all-time downloads
All-time downloads
283
Public
Parameters
774M
3.1 GB on disk
Likes
9
Public
Click a slice to open those files.
.safetensors3.1 GB · 100%
From the Hugging Face model README
from transformers import AutoTokenizer, GPT2LMHeadModel
from transformers import pipeline
model = GPT2LMHeadModel.from_pretrained("ytu-ce-cosmos/previous-token-prediction-turkish-gpt2-large")
tokenizer = AutoTokenizer.from_pretrained("ytu-ce-cosmos/previous-token-prediction-turkish-gpt2-large")
text = """3. bol bol su için 4. cep telefonunuzu yatakta kullanmayın 5. yatma saatlerinize dikkat edin. """
d = tokenizer.decode(tokenizer.encode(text)[::-1], skip_special_tokens = True)
text_generator = pipeline('text-generation', model=model, tokenizer=tokenizer)
r = text_generator(d, max_length=100)[0]['generated_text']
print(tokenizer.decode(tokenizer.encode(r)[::-1]))
"""
ve bihekim tarafından yapılacak takipeler v yapılan tetkikler sonrası şikayetleriniz aydınlanacaktır. eğer şikayeteleriniz d sürekli ve ani artış varsa mutlaka hekiminize başvurmalısınız.
1. yatma saatlerinize dikkat edin. bazı hormonlarınız sağlığınız için kötü olabilir. bunu aklınızın bir köşesinde bulundurmaya çalışın.
2. düzenli egzersiz yapın. bunların sizin sağlığınız için önemli olduğunu kendinize hatırlatın.
3. bol bol su için 4. cep telefonunuzu yatakta kullanmayın 5. yatma saatlerinize dikkat edin.
"""
@article{kesgin2024introducing,
title={Introducing cosmosGPT: Monolingual Training for Turkish Language Models},
author={Kesgin, H Toprak and Yuce, M Kaan and Dogan, Eren and Uzun, M Egemen and Uz, Atahan and Seyrek, H Emre and Zeer, Ahmed and Amasyali, M Fatih},
journal={arXiv preprint arXiv:2404.17336},
year={2024}
}
COSMOS AI Research Group, Yildiz Technical University Computer Engineering Department <br> https://cosmos.yildiz.edu.tr/ <br> [email protected] <br>