minhdang commited on
Commit
9b3882c
1 Parent(s): 3f46449

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,8 +19,8 @@ nf4_config = BitsAndBytesConfig(
19
  model_id = "CohereForAI/c4ai-command-r-v01"
20
  tokenizer = AutoTokenizer.from_pretrained(model_id)
21
  model = AutoModelForCausalLM.from_pretrained(model_id,
22
- load_in_8bit=True,
23
- # quantization_config=nf4_config
24
  )
25
 
26
  @spaces.GPU
 
19
  model_id = "CohereForAI/c4ai-command-r-v01"
20
  tokenizer = AutoTokenizer.from_pretrained(model_id)
21
  model = AutoModelForCausalLM.from_pretrained(model_id,
22
+ # load_in_8bit=True,
23
+ quantization_config=nf4_config
24
  )
25
 
26
  @spaces.GPU