Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,13 +20,13 @@ import transformers
|
|
20 |
import transformers
|
21 |
from transformers import pipeline
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
|
31 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
32 |
tokenizer.pad_token = tokenizer.eos_token
|
|
|
20 |
import transformers
|
21 |
from transformers import pipeline
|
22 |
|
23 |
+
import transformers
|
24 |
+
model_name='mistralai/Mistral-7B-Instruct-v0.1'
|
25 |
+
from huggingface_hub import login
|
26 |
+
login(token = 'HF_TOKEN')
|
27 |
+
model_config = transformers.AutoConfig.from_pretrained(
|
28 |
+
model_name,
|
29 |
+
)
|
30 |
|
31 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
32 |
tokenizer.pad_token = tokenizer.eos_token
|