Spaces:
Running
Running
Update models.py
Browse files
models.py
CHANGED
@@ -93,7 +93,7 @@ import torch
|
|
93 |
def evaluate_with_qwen(resume_text, job_description):
|
94 |
# بارگذاری مدل و توکنایزر
|
95 |
model = AutoModelForCausalLM.from_pretrained(
|
96 |
-
"Qwen/Qwen2-
|
97 |
torch_dtype="auto",
|
98 |
device_map="auto"
|
99 |
).to("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
93 |
def evaluate_with_qwen(resume_text, job_description):
|
94 |
# بارگذاری مدل و توکنایزر
|
95 |
model = AutoModelForCausalLM.from_pretrained(
|
96 |
+
"Qwen/Qwen2-1.5B-Instruct",
|
97 |
torch_dtype="auto",
|
98 |
device_map="auto"
|
99 |
).to("cuda" if torch.cuda.is_available() else "cpu")
|