Guanzheng commited on
Commit
94416a7
·
1 Parent(s): 19d21a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
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)