Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ LICENSE = """
|
|
25 |
<p/>
|
26 |
|
27 |
---
|
28 |
-
As a derivate work of [ZhongJing-
|
29 |
this demo is governed by the original [license](https://huggingface.co/CMLM/ZhongJing-2-1_8b/blob/main/LICENSE.txt) and [acceptable use policy](https://huggingface.co/CMLM/ZhongJing-2-1_8b/blob/main/USE_POLICY.md).
|
30 |
"""
|
31 |
|
@@ -33,7 +33,7 @@ if not torch.cuda.is_available():
|
|
33 |
DESCRIPTION += "\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>"
|
34 |
|
35 |
if torch.cuda.is_available():
|
36 |
-
model_id = "CMLL/ZhongJing-
|
37 |
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
|
38 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
39 |
tokenizer.use_default_system_prompt = False
|
|
|
25 |
<p/>
|
26 |
|
27 |
---
|
28 |
+
As a derivate work of [ZhongJing-3-1_5b](https://huggingface.co/CMLM/ZhongJing-2-1_8b) by FulPhil,
|
29 |
this demo is governed by the original [license](https://huggingface.co/CMLM/ZhongJing-2-1_8b/blob/main/LICENSE.txt) and [acceptable use policy](https://huggingface.co/CMLM/ZhongJing-2-1_8b/blob/main/USE_POLICY.md).
|
30 |
"""
|
31 |
|
|
|
33 |
DESCRIPTION += "\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>"
|
34 |
|
35 |
if torch.cuda.is_available():
|
36 |
+
model_id = "CMLL/ZhongJing-3-1_5b_V2"
|
37 |
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
|
38 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
39 |
tokenizer.use_default_system_prompt = False
|