Views
No views yet
1# obtain the official LLaMA model weights and place them in ./models
2ls ./models
3llama-2-7b tokenizer_checklist.chk tokenizer.model
4# [Optional] for models using BPE tokenizers
5ls ./models
6<folder containing weights and tokenizer json> vocab.json
7# [Optional] for PyTorch .bin models like Mistral-7B
8ls ./models
9<folder containing weights and tokenizer json>
10
11# install Python dependencies
12python3 -m pip install -r requirements.txt
13
14# convert the model to ggml FP16 format
15python3 convert_hf_to_gguf.py models/mymodel/
16
17# quantize the model to 4-bits (using Q4_K_M method)
18./llama-quantize ./models/mymodel/ggml-model-f16.gguf ./models/mymodel/ggml-model-Q4_K_M.gguf Q4_K_M
19
20# update the gguf filetype to current version if older version is now unsupported
21./llama-quantize ./models/mymodel/ggml-model-Q4_K_M.gguf ./models/mymodel/ggml-model-Q4_K_M-v2.gguf COPY| Filename | Quant type | Description |
|---|---|---|
| DeepSeek-R1-Distill-Qwen-1.5B-F16.gguf | F16 | Half precision, no quantization applied |
| DeepSeek-R1-Distill-Qwen-1.5B-Q8_0.gguf | Q8_0 | 8-bit quantization, highest quality, largest size |
| DeepSeek-R1-Distill-Qwen-1.5B-Q6_K.gguf | Q6_K | 6-bit quantization, very high quality |
| DeepSeek-R1-Distill-Qwen-1.5B-Q5_1.gguf | Q5_1 | 5-bit quantization, good balance of quality and size |
| DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_M.gguf | Q5_K_M | 5-bit quantization, good balance of quality and size |
| DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_S.gguf | Q5_K_S | 5-bit quantization, good balance of quality and size |
| DeepSeek-R1-Distill-Qwen-1.5B-Q5_0.gguf | Q5_0 | 5-bit quantization, good balance of quality and size |
| DeepSeek-R1-Distill-Qwen-1.5B-Q4_1.gguf | Q4_1 | 4-bit quantization, balanced quality and size |
| DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf | Q4_K_M | 4-bit quantization, balanced quality and size |
| DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_S.gguf | Q4_K_S | 4-bit quantization, balanced quality and size |
| DeepSeek-R1-Distill-Qwen-1.5B-Q4_0.gguf | Q4_0 | 4-bit quantization, balanced quality and size |
| DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_L.gguf | Q3_K_L | 3-bit quantization, smaller size, lower quality |
| DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_M.gguf | Q3_K_M | 3-bit quantization, smaller size, lower quality |
| DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_S.gguf | Q3_K_S | 3-bit quantization, smaller size, lower quality |
| DeepSeek-R1-Distill-Qwen-1.5B-Q2_K.gguf | Q2_K | 2-bit quantization, smallest size, lowest quality |
ollama run hdnh2006/DeepSeek-R1-Distill-Qwen-1.5Bhuggingface_hub[cli]pip install -U "huggingface_hub[cli]"huggingface-cli download hdnh2006/DeepSeek-R1-Distill-Qwen-1.5B --include "DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf" --local-dir ./