File size: 1,062 Bytes
0b08ee4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
license: other
license_name: deepseek-license
base_model: deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct
tags:
- code
- math
- quantized
- nf4
- moe
library_name: transformers
pipeline_tag: text-generation
---

# DeepSeek-Coder-V2-Lite-NF4

NF4 quantized DeepSeek-Coder-V2-Lite-Instruct for AIMO3 tool-integrated reasoning.

## Key Specs

| Spec | Value |
|------|-------|
| Total Params | 16B |
| Active Params | 2.4B (MoE) |
| Context Length | 128K |
| VRAM (NF4) | ~10GB |

## Usage

```python
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
import torch

bnb_config = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.bfloat16,
)

model = AutoModelForCausalLM.from_pretrained(
    "aphoticshaman/deepseek-coder-v2-lite-nf4",
    quantization_config=bnb_config,
    device_map="auto",
    trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained("aphoticshaman/deepseek-coder-v2-lite-nf4")
```

## Author
Ryan J Cardwell (Archer Phoenix) - AIMO3 Competitor