Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,42 @@
|
|
1 |
---
|
2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
+
datasets:
|
4 |
+
- uonlp/CulturaX
|
5 |
+
language:
|
6 |
+
- tr
|
7 |
+
pipeline_tag: text-generation
|
8 |
+
|
9 |
+
tags:
|
10 |
+
- Turkish
|
11 |
+
- turkish
|
12 |
+
- gpt2
|
13 |
---
|
14 |
+
|
15 |
+
# turkish-gpt2-medium
|
16 |
+
|
17 |
+
This is a Turkish GPT-2 model. GPT-2 is designed for text generation tasks, providing the ability to continue a given text snippet in a coherent and contextually relevant manner.
|
18 |
+
Due to the diverse nature of the training data, which includes websites, books, and other text sources, this model can exhibit biases. Users should be aware of these biases and use the model responsibly.
|
19 |
+
|
20 |
+
## Example Usage
|
21 |
+
```python
|
22 |
+
from transformers import AutoTokenizer, GPT2LMHeadModel
|
23 |
+
from transformers import pipeline
|
24 |
+
|
25 |
+
model = GPT2LMHeadModel.from_pretrained("ytu-ce-cosmos/turkish-gpt2-medium")
|
26 |
+
tokenizer = AutoTokenizer.from_pretrained("ytu-ce-cosmos/turkish-gpt2-medium")
|
27 |
+
|
28 |
+
text_generator = pipeline('text-generation', model=model, tokenizer=tokenizer)
|
29 |
+
r = text_generator("Teknolojinin gelişimi hayatımızı önemli ölçüde etkiledi. ", max_length=100)
|
30 |
+
[{'generated_text': 'Teknolojinin gelişimi hayatımızı önemli ölçüde etkiledi. "Teknoloji hayatın merkezindeyse, insan hayatında da önemli bir yere sahip demektir!" diyerek devam edelim.}]
|
31 |
+
|
32 |
+
```
|
33 |
+
|
34 |
+
# Acknowledgments
|
35 |
+
- Research supported with Cloud TPUs from [Google's TensorFlow Research Cloud](https://sites.research.google/trc/about/) (TFRC). Thanks for providing access to the TFRC ❤️
|
36 |
+
- Thanks to the generous support from the Hugging Face team, it is possible to download models from their S3 storage 🤗
|
37 |
+
|
38 |
+
# Citation
|
39 |
+
Paper coming soon 😊
|
40 |
+
|
41 |
+
|
42 |
+
|