File size: 728 Bytes
c9431d8 508b164 c9431d8 5f786c4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
---
language:
- fi
tags:
- text generation
license: mit
datasets:
- answerable tydiqa
---
# ReadMe
This is a pretrained model based on [Finnish-NLP/gpt2-finnish](https://huggingface.co/Finnish-NLP/gpt2-finnish) that has been trained on [copenlu/answerable_tydiqa](https://huggingface.co/datasets/copenlu/answerable_tydiqa), specifically the text field of the Finnish samples for 2 epochs.
To use the pretrained head, use: `AutoModelForCausalLM.from_pretrained`.
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
model_path = "PartiallyTyped/answerable_tydiqa_lm_pretrained_finnish"
model = AutoModelForCausalLM.from_pretrained(model_path)
tokenizer = AutoTokenizer.from_pretrained(model_path)
``` |