Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,11 @@ from peft import PeftModel
|
|
5 |
from datetime import date
|
6 |
|
7 |
|
|
|
|
|
8 |
base_model = AutoModelForCausalLM.from_pretrained(
|
9 |
'meta-llama/Llama-2-7b-chat-hf',
|
|
|
10 |
trust_remote_code=True,
|
11 |
device_map="auto",
|
12 |
)
|
|
|
5 |
from datetime import date
|
6 |
|
7 |
|
8 |
+
access_token = "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
|
9 |
+
|
10 |
base_model = AutoModelForCausalLM.from_pretrained(
|
11 |
'meta-llama/Llama-2-7b-chat-hf',
|
12 |
+
token=access_token,
|
13 |
trust_remote_code=True,
|
14 |
device_map="auto",
|
15 |
)
|