charlieoneill
commited on
Commit
•
1a3ba52
1
Parent(s):
245cb1c
Update README.md
Browse files
README.md
CHANGED
@@ -12,7 +12,8 @@ It was fine-tuned on several thousand astronomy abstracts collected on Arxiv.
|
|
12 |
## Model Details
|
13 |
|
14 |
```python
|
15 |
-
from transformers import AutoModelForCausalLM
|
|
|
16 |
|
17 |
online_model = AutoModelForCausalLM.from_pretrained("charlieoneill/falcon-7b-abstracts-2190", torch_dtype=torch.bfloat16,
|
18 |
device_map="auto", trust_remote_code=True)
|
|
|
12 |
## Model Details
|
13 |
|
14 |
```python
|
15 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
16 |
+
import torch
|
17 |
|
18 |
online_model = AutoModelForCausalLM.from_pretrained("charlieoneill/falcon-7b-abstracts-2190", torch_dtype=torch.bfloat16,
|
19 |
device_map="auto", trust_remote_code=True)
|