Views
No views yet
| Model | Downloads |
|---|---|
hakanbogan/gpt2-turkish-cased | config.json • merges.txt • pytorch_model.bin • special_tokens_map.json • tf_model.h5 • tokenizer_config.json • traning_args.bin • vocab.json |
1from transformers import AutoTokenizer, AutoModelWithLMHead
2tokenizer = AutoTokenizer.from_pretrained("hakanbogan/gpt2-turkish-cased")
3model = AutoModelWithLMHead.from_pretrained("hakanbogan/gpt2-turkish-cased")1from transformers import pipeline
2pipe = pipeline('text-generation', model="hakanbogan/gpt2-turkish-cased",
3 tokenizer="hakanbogan/gpt2-turkish-cased", config={'max_length':800})
4text = pipe("Akşamüstü yolda ilerlerken, ")[0]["generated_text"]
5print(text)git lfs install
git clone https://huggingface.co/hakanbogan/gpt2-turkish-cased