jhonparra18 commited on
Commit
b6a1e5d
1 Parent(s): 55455ff

Update common.py

Browse files
Files changed (1) hide show
  1. common.py +8 -6
common.py CHANGED
@@ -42,12 +42,14 @@ def format_prompt(
42
 
43
 
44
  # Quantization Config
45
- bnb_config = BitsAndBytesConfig(
46
- load_in_4bit=True,
47
- bnb_4bit_use_double_quant=True,
48
- bnb_4bit_quant_type="nf4",
49
- bnb_4bit_compute_dtype=torch.bfloat16,
50
- )
 
 
51
 
52
  # Tokenizer & Model
53
  # You must request access to the checkpoints
 
42
 
43
 
44
  # Quantization Config
45
+ #bnb_config = BitsAndBytesConfig(
46
+ # load_in_4bit=True,
47
+ # bnb_4bit_use_double_quant=True,
48
+ # bnb_4bit_quant_type="nf4",
49
+ # bnb_4bit_compute_dtype=torch.bfloat16,
50
+ #)
51
+
52
+ bnb_config=BitsAndBytesConfig(load_in_8bit=True, bnb_4bit_compute_dtype=torch.bfloat16)
53
 
54
  # Tokenizer & Model
55
  # You must request access to the checkpoints