Spaces:
Configuration error
Configuration error
DUTwangzhijun
commited on
Commit
·
653587a
1
Parent(s):
fd3fd47
Update model.py
Browse files
model.py
CHANGED
@@ -8,8 +8,8 @@ model_name = "DUTIRbionlp/Taiyi-LLM"
|
|
8 |
model = AutoModelForCausalLM.from_pretrained(
|
9 |
model_name,
|
10 |
trust_remote_code=True,
|
11 |
-
|
12 |
-
|
13 |
)
|
14 |
|
15 |
model.eval()
|
|
|
8 |
model = AutoModelForCausalLM.from_pretrained(
|
9 |
model_name,
|
10 |
trust_remote_code=True,
|
11 |
+
torch_dtype=torch.float16,
|
12 |
+
load_in_8bit = True
|
13 |
)
|
14 |
|
15 |
model.eval()
|