Commit
·
5f786c4
1
Parent(s):
c6dc1d4
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# ReadMe
|
2 |
+
|
3 |
+
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.
|
4 |
+
|
5 |
+
To use the pretrained head, use: `AutoModelForCausalLM.from_pretrained`.
|
6 |
+
|
7 |
+
```python
|
8 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
9 |
+
|
10 |
+
model_path = "PartiallyTyped/answerable_tydiqa_lm_pretrained_finnish"
|
11 |
+
model = AutoModelForCausalLM.from_pretrained(model_path)
|
12 |
+
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
13 |
+
|
14 |
+
```
|