File size: 451 Bytes
846b34e |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
# DeepSeek V3.1
First convert huggingface model weight files to the format of this project.
```bash
export EXPERTS=256
python convert.py --hf-ckpt-path ${HF_CKPT_PATH} --save-path ${SAVE_PATH} --n-experts ${EXPERTS} --model-parallel ${MP}
```
Then chat with DeepSeek model at will!
```bash
export CONFIG=config_671B_v3.1.json
torchrun --nproc-per-node ${MP} generate.py --ckpt-path ${SAVE_PATH} --config ${CONFIG} --interactive --temperature {T}
``` |