alfonsovelp commited on
Commit
5c4a967
1 Parent(s): cbdf23f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -10,13 +10,13 @@ hf_token = os.environ.get("HF_TOKEN")
10
  model_id = "mistralai/Mistral-7B-Instruct-v0.2"
11
 
12
 
13
- quantization_config = BitsAndBytesConfig(
14
- load_in_4bit=True,
15
- bnb_4bit_quant_type="nf4",
16
- bnb_4bit_compute_dtype=torch.float16
17
- )
18
 
19
- model = AutoModelForCausalLM.from_pretrained(model_id, quantization_config=True, device_map="auto", token=hf_token)
20
  tokenizer = AutoTokenizer.from_pretrained(model_id, token=hf_token)
21
 
22
  def format_prompt(message, history):
 
10
  model_id = "mistralai/Mistral-7B-Instruct-v0.2"
11
 
12
 
13
+ # quantization_config = BitsAndBytesConfig(
14
+ # load_in_4bit=True,
15
+ # bnb_4bit_quant_type="nf4",
16
+ # bnb_4bit_compute_dtype=torch.float16
17
+ # )
18
 
19
+ model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", token=hf_token)
20
  tokenizer = AutoTokenizer.from_pretrained(model_id, token=hf_token)
21
 
22
  def format_prompt(message, history):