Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ DESCRIPTION = """\
|
|
17 |
|
18 |
LICENSE = """\
|
19 |
---
|
20 |
-
This space
|
21 |
"""
|
22 |
|
23 |
if not torch.cuda.is_available():
|
@@ -25,7 +25,7 @@ if not torch.cuda.is_available():
|
|
25 |
|
26 |
|
27 |
if torch.cuda.is_available():
|
28 |
-
model_id = "Qwen/Qwen1.5-7B-Chat
|
29 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", load_in_4bit=True)
|
30 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
31 |
tokenizer.padding_side = 'right'
|
|
|
17 |
|
18 |
LICENSE = """\
|
19 |
---
|
20 |
+
This space was created by [patched](https://patched.codes).
|
21 |
"""
|
22 |
|
23 |
if not torch.cuda.is_available():
|
|
|
25 |
|
26 |
|
27 |
if torch.cuda.is_available():
|
28 |
+
model_id = "Qwen/Qwen1.5-7B-Chat"
|
29 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", load_in_4bit=True)
|
30 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
31 |
tokenizer.padding_side = 'right'
|