Spaces:
Sleeping
Sleeping
BenBranyon
commited on
Commit
•
ccbb46e
1
Parent(s):
ebd4d12
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
|
17 |
|
18 |
#Transformers Code
|
19 |
if torch.cuda.is_available():
|
20 |
-
model_id = "
|
21 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
22 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
23 |
tokenizer.use_default_system_prompt = False
|
|
|
17 |
|
18 |
#Transformers Code
|
19 |
if torch.cuda.is_available():
|
20 |
+
model_id = "Qwen/Qwen2.5-7B-Instruct"
|
21 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
22 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
23 |
tokenizer.use_default_system_prompt = False
|