Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,11 +8,9 @@ MODEL_ID = "NoesisLab/Spartacus-1B-Instruct"
|
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, trust_remote_code=True
|
| 9 |
force_download=True # This forces a fresh copy of the code)
|
| 10 |
model = AutoModelForCausalLM.from_pretrained(
|
| 11 |
-
|
| 12 |
-
torch_dtype=torch.float16,
|
| 13 |
-
device_map="auto",
|
| 14 |
trust_remote_code=True,
|
| 15 |
-
|
| 16 |
)
|
| 17 |
|
| 18 |
import spaces
|
|
|
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, trust_remote_code=True
|
| 9 |
force_download=True # This forces a fresh copy of the code)
|
| 10 |
model = AutoModelForCausalLM.from_pretrained(
|
| 11 |
+
"NoesisLab/Spartacus-1B-Instruct",
|
|
|
|
|
|
|
| 12 |
trust_remote_code=True,
|
| 13 |
+
tie_word_embeddings=False # 尝试强制关闭权重绑定检查
|
| 14 |
)
|
| 15 |
|
| 16 |
import spaces
|