Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,8 +14,8 @@ MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
|
| 14 |
|
| 15 |
#Transformers Code
|
| 16 |
if torch.cuda.is_available():
|
| 17 |
-
|
| 18 |
-
model_id = "BenBranyon/sumbot7b-augmented"
|
| 19 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
| 20 |
tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=True, model_max_length=MAX_INPUT_TOKEN_LENGTH, padding="longest", language="en")
|
| 21 |
|
|
|
|
| 14 |
|
| 15 |
#Transformers Code
|
| 16 |
if torch.cuda.is_available():
|
| 17 |
+
model_id = "Qwen/Qwen2.5-7B-Instruct"
|
| 18 |
+
#model_id = "BenBranyon/sumbot7b-augmented"
|
| 19 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
| 20 |
tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=True, model_max_length=MAX_INPUT_TOKEN_LENGTH, padding="longest", language="en")
|
| 21 |
|