Spaces:
Sleeping
Sleeping
test2023h5
commited on
Commit
•
adb9efe
1
Parent(s):
69ee59a
Update main.py
Browse files
main.py
CHANGED
@@ -11,8 +11,7 @@ device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
11 |
|
12 |
|
13 |
# 加载预训练模型
|
14 |
-
|
15 |
-
model_name = "Qwen/Qwen2-0.5B-Instruct-AWQ"
|
16 |
#model_name = "../models/qwen/Qwen2-0.5B"
|
17 |
base_model = AutoModelForCausalLM.from_pretrained(model_name)
|
18 |
|
|
|
11 |
|
12 |
|
13 |
# 加载预训练模型
|
14 |
+
model_name = "Qwen/Qwen2-0.5B"
|
|
|
15 |
#model_name = "../models/qwen/Qwen2-0.5B"
|
16 |
base_model = AutoModelForCausalLM.from_pretrained(model_name)
|
17 |
|