OzTianlu commited on
Commit
503a809
·
verified ·
1 Parent(s): 992fe76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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
- MODEL_ID,
12
- torch_dtype=torch.float16,
13
- device_map="auto",
14
  trust_remote_code=True,
15
- force_download=True # This forces a fresh copy of the code
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