File size: 439 Bytes
7bb7865
 
 
 
53e4511
 
 
7bb7865
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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:
- pt
widget:
  - text: A religião
  - text: O Brasil conquistou
  - text: França e Inglaterra
---

``` python


from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("josu/gpt-neo-pt-1.3B")
tokenizer = AutoTokenizer.from_pretrained("josu/gpt-neo-pt-1.3B")

from transformers import pipeline

generator = pipeline('text-generation', model='josu/gpt-neo-pt-1.3B')

  ```