Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,6 @@ if not torch.cuda.is_available():
|
|
46 |
|
47 |
# if torch.cuda.is_available():
|
48 |
model_id = "DAMO-NLP-SG/CLEX-7b-Chat-16K"
|
49 |
-
# from CLEX import LlamaForCausalLM
|
50 |
from transformers import AutoModelForCausalLM
|
51 |
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto", trust_remote_code=True)
|
52 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
|
|
46 |
|
47 |
# if torch.cuda.is_available():
|
48 |
model_id = "DAMO-NLP-SG/CLEX-7b-Chat-16K"
|
|
|
49 |
from transformers import AutoModelForCausalLM
|
50 |
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto", trust_remote_code=True)
|
51 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|