masanorihirano
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -42,6 +42,9 @@ Install the required libraries as follows:
|
|
42 |
|
43 |
Execute the following python code:
|
44 |
```python
|
|
|
|
|
|
|
45 |
tokenizer = AutoTokenizer.from_pretrained("pfnet/nekomata-14b-pfn-qfin", trust_remote_code=True)
|
46 |
model = AutoModelForCausalLM.from_pretrained("pfnet/nekomata-14b-pfn-qfin", device_map="auto", trust_remote_code=True)
|
47 |
text = "日本銀行は"
|
|
|
42 |
|
43 |
Execute the following python code:
|
44 |
```python
|
45 |
+
import torch
|
46 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
47 |
+
|
48 |
tokenizer = AutoTokenizer.from_pretrained("pfnet/nekomata-14b-pfn-qfin", trust_remote_code=True)
|
49 |
model = AutoModelForCausalLM.from_pretrained("pfnet/nekomata-14b-pfn-qfin", device_map="auto", trust_remote_code=True)
|
50 |
text = "日本銀行は"
|