File size: 433 Bytes
3809617
 
 
41367bf
3809617
 
 
 
 
 
 
 
 
 
 
 
 
41367bf
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
This is a 4-bit quantized version of Phi-3 4k Instruct. 

Quantization done with:

```
bnb_config = BitsAndBytesConfig(
    load_in_4bit = True,
    bnb_4bit_use_double_quant = True,
    bnb_4bit_quant_type = 'nf4',
    bnb_4bit_compute_dtype = torch.bfloat16
)

model = AutoModelForCausalLM.from_pretrained(
    foundation_model_name,
    device_map = 'auto',
    quantization_config = bnb_config,
    trust_remote_code = True
)
```