Spaces:
Paused
Paused
model update
Browse files
app.py
CHANGED
|
@@ -3,7 +3,8 @@ from transformers import pipeline, AutoTokenizer
|
|
| 3 |
|
| 4 |
#model_id = "HuggingFaceTB/SmolLM2-135M-Instruct"
|
| 5 |
#we will be using Qwen2.5-0.5B-Instruct model is a lightweight powerhouse
|
| 6 |
-
model_id = "Qwen/Qwen2.5-0.5B-Instruct"
|
|
|
|
| 7 |
pipe = pipeline("text-generation", model=model_id, device_map="auto") #adding a auto detect gpu
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 9 |
|
|
|
|
| 3 |
|
| 4 |
#model_id = "HuggingFaceTB/SmolLM2-135M-Instruct"
|
| 5 |
#we will be using Qwen2.5-0.5B-Instruct model is a lightweight powerhouse
|
| 6 |
+
#model_id = "Qwen/Qwen2.5-0.5B-Instruct"
|
| 7 |
+
model_id = "Qwen/Qwen2.5-0.5B-Instruct-GPTQ-Int4"
|
| 8 |
pipe = pipeline("text-generation", model=model_id, device_map="auto") #adding a auto detect gpu
|
| 9 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 10 |
|