Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ You can also use 🧑🏻🚀YI-200K🚀 by cloning this space. 🧬🔬🔍
|
|
18 |
Join us : 🌟TeamTonic🌟 is always making cool demos! Join our active builder's🛠️community on 👻Discord: [Discord](https://discord.gg/nXx5wbX9) On 🤗Huggingface: [TeamTonic](https://huggingface.co/TeamTonic) & [MultiTransformer](https://huggingface.co/MultiTransformer) On 🌐Github: [Polytonic](https://github.com/tonic-ai) & contribute to 🌟 [PolyGPT](https://github.com/tonic-ai/polygpt-alpha)
|
19 |
"""
|
20 |
|
21 |
-
tokenizer = AutoModelForCausalLM.from_pretrained(
|
22 |
tokenizer = YiTokenizer.from_pretrained(tokenizer_path)
|
23 |
model = AutoModelForCausalLM.from_pretrained(model_id=tokenizer_path, device_map="auto", torch_dtype="auto", trust_remote_code=True)
|
24 |
|
|
|
18 |
Join us : 🌟TeamTonic🌟 is always making cool demos! Join our active builder's🛠️community on 👻Discord: [Discord](https://discord.gg/nXx5wbX9) On 🤗Huggingface: [TeamTonic](https://huggingface.co/TeamTonic) & [MultiTransformer](https://huggingface.co/MultiTransformer) On 🌐Github: [Polytonic](https://github.com/tonic-ai) & contribute to 🌟 [PolyGPT](https://github.com/tonic-ai/polygpt-alpha)
|
19 |
"""
|
20 |
|
21 |
+
tokenizer = AutoModelForCausalLM.from_pretrained(model_id)
|
22 |
tokenizer = YiTokenizer.from_pretrained(tokenizer_path)
|
23 |
model = AutoModelForCausalLM.from_pretrained(model_id=tokenizer_path, device_map="auto", torch_dtype="auto", trust_remote_code=True)
|
24 |
|