minhdang commited on
Commit
22973d4
·
verified ·
1 Parent(s): 92debe5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,9 +13,9 @@ nf4_config = BitsAndBytesConfig(
13
  bnb_4bit_compute_dtype=torch.bfloat16
14
  )
15
 
16
- model_id = "yunconglong/MoE_13B_DPO"
17
  tokenizer = AutoTokenizer.from_pretrained(model_id)
18
- model = AutoModelForCausalLM.from_pretrained(model_id, load_in_8bit=True)
19
 
20
  @spaces.GPU
21
  def generate_response(user_input, max_new_tokens, temperature):
 
13
  bnb_4bit_compute_dtype=torch.bfloat16
14
  )
15
 
16
+ model_id = "CohereForAI/c4ai-command-r-v01-4bit"
17
  tokenizer = AutoTokenizer.from_pretrained(model_id)
18
+ model = AutoModelForCausalLM.from_pretrained(model_id)
19
 
20
  @spaces.GPU
21
  def generate_response(user_input, max_new_tokens, temperature):