From 73bc01c5536efe7a539b9c8e4f7a3e932e07ff86 Mon Sep 17 00:00:00 2001 From: ModelHub XC Date: Sun, 11 Oct 2026 06:05:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=EF=BC=8C=E7=94=B1ModelHub=20XC=E7=A4=BE=E5=8C=BA=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Model: second-state/DeepSeek-R1-Distill-Qwen-1.5B-GGUF Source: Original Platform --- .gitattributes | 48 ++++++++++++++ DeepSeek-R1-Distill-Qwen-1.5B-Q2_K.gguf | 3 + DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_L.gguf | 3 + DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_M.gguf | 3 + DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_S.gguf | 3 + DeepSeek-R1-Distill-Qwen-1.5B-Q4_0.gguf | 3 + DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf | 3 + DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_S.gguf | 3 + DeepSeek-R1-Distill-Qwen-1.5B-Q5_0.gguf | 3 + DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_M.gguf | 3 + DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_S.gguf | 3 + DeepSeek-R1-Distill-Qwen-1.5B-Q6_K.gguf | 3 + DeepSeek-R1-Distill-Qwen-1.5B-Q8_0.gguf | 3 + DeepSeek-R1-Distill-Qwen-1.5B-f16.gguf | 3 + README.md | 81 +++++++++++++++++++++++ config.json | 28 ++++++++ 16 files changed, 196 insertions(+) create mode 100644 .gitattributes create mode 100644 DeepSeek-R1-Distill-Qwen-1.5B-Q2_K.gguf create mode 100644 DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_L.gguf create mode 100644 DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_M.gguf create mode 100644 DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_S.gguf create mode 100644 DeepSeek-R1-Distill-Qwen-1.5B-Q4_0.gguf create mode 100644 DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf create mode 100644 DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_S.gguf create mode 100644 DeepSeek-R1-Distill-Qwen-1.5B-Q5_0.gguf create mode 100644 DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_M.gguf create mode 100644 DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_S.gguf create mode 100644 DeepSeek-R1-Distill-Qwen-1.5B-Q6_K.gguf create mode 100644 DeepSeek-R1-Distill-Qwen-1.5B-Q8_0.gguf create mode 100644 DeepSeek-R1-Distill-Qwen-1.5B-f16.gguf create mode 100644 README.md create mode 100644 config.json diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..abaf5ea --- /dev/null +++ b/.gitattributes @@ -0,0 +1,48 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +DeepSeek-R1-Distill-Qwen-1.5B-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text +DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text +DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text +DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text +DeepSeek-R1-Distill-Qwen-1.5B-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text +DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text +DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text +DeepSeek-R1-Distill-Qwen-1.5B-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text +DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text +DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text +DeepSeek-R1-Distill-Qwen-1.5B-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text +DeepSeek-R1-Distill-Qwen-1.5B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text +DeepSeek-R1-Distill-Qwen-1.5B-f16.gguf filter=lfs diff=lfs merge=lfs -text diff --git a/DeepSeek-R1-Distill-Qwen-1.5B-Q2_K.gguf b/DeepSeek-R1-Distill-Qwen-1.5B-Q2_K.gguf new file mode 100644 index 0000000..5b3a442 --- /dev/null +++ b/DeepSeek-R1-Distill-Qwen-1.5B-Q2_K.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef2fad904c270c919ef5b599d7a40e7301ec067c90f519739299a2a8bb3b3bf6 +size 752879968 diff --git a/DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_L.gguf b/DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_L.gguf new file mode 100644 index 0000000..b7cd2ef --- /dev/null +++ b/DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_L.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0fca5f19e0b9e757895e98f23e82d896f55372cd51dea1daf6d6806b685825fa +size 980439904 diff --git a/DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_M.gguf b/DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_M.gguf new file mode 100644 index 0000000..4635415 --- /dev/null +++ b/DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b34867f5d0df299f828f9557425b24ccae8162e60e283eac099d7f216fac56d +size 924455776 diff --git a/DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_S.gguf b/DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_S.gguf new file mode 100644 index 0000000..6634897 --- /dev/null +++ b/DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_S.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ab0765bef785747347147f36de56c1321162a65cd0d864932b950a095ae3871 +size 861221728 diff --git a/DeepSeek-R1-Distill-Qwen-1.5B-Q4_0.gguf b/DeepSeek-R1-Distill-Qwen-1.5B-Q4_0.gguf new file mode 100644 index 0000000..21d2989 --- /dev/null +++ b/DeepSeek-R1-Distill-Qwen-1.5B-Q4_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ff835372cf76ec644be7733b11a0fd9b875b7ff5249d38b24760012415bf3be +size 1066227040 diff --git a/DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf b/DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf new file mode 100644 index 0000000..7675b22 --- /dev/null +++ b/DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d6995d3b87610c40874a81f20d3c188235ea281324e9f5a9ba52274c530da61 +size 1117320544 diff --git a/DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_S.gguf b/DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_S.gguf new file mode 100644 index 0000000..0672952 --- /dev/null +++ b/DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_S.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb3cc4af5e4821d9ea8b9b9358a0fdc70b5825d4ecd8140ca046294b809906ed +size 1071584608 diff --git a/DeepSeek-R1-Distill-Qwen-1.5B-Q5_0.gguf b/DeepSeek-R1-Distill-Qwen-1.5B-Q5_0.gguf new file mode 100644 index 0000000..c5760d8 --- /dev/null +++ b/DeepSeek-R1-Distill-Qwen-1.5B-Q5_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e60648346bc87df5a2ee5b06b1caf9b3bfa50d0d20abecf8ef180d78a0db77c3 +size 1259173216 diff --git a/DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_M.gguf b/DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_M.gguf new file mode 100644 index 0000000..304c7eb --- /dev/null +++ b/DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b98429b4e04a008df33077f818d3d4469fb2902066520d3d4c10a6aa92e0c24c +size 1285494112 diff --git a/DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_S.gguf b/DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_S.gguf new file mode 100644 index 0000000..31f0812 --- /dev/null +++ b/DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_S.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9f70217a789d28bb6b31c8771d64ec56d00335fd381a762eb3bc5483218bdd6 +size 1259173216 diff --git a/DeepSeek-R1-Distill-Qwen-1.5B-Q6_K.gguf b/DeepSeek-R1-Distill-Qwen-1.5B-Q6_K.gguf new file mode 100644 index 0000000..8bd6e23 --- /dev/null +++ b/DeepSeek-R1-Distill-Qwen-1.5B-Q6_K.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c64e11ba60210d14311ce91b9fa62938b5f73fe4fb863b554077f820d54d1e4f +size 1464178528 diff --git a/DeepSeek-R1-Distill-Qwen-1.5B-Q8_0.gguf b/DeepSeek-R1-Distill-Qwen-1.5B-Q8_0.gguf new file mode 100644 index 0000000..b29172e --- /dev/null +++ b/DeepSeek-R1-Distill-Qwen-1.5B-Q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b2d8b13e948a20d836e9de919cb642bd76921ac70bb5c9f66d58e9df4f0d044 +size 1894531936 diff --git a/DeepSeek-R1-Distill-Qwen-1.5B-f16.gguf b/DeepSeek-R1-Distill-Qwen-1.5B-f16.gguf new file mode 100644 index 0000000..4ca127e --- /dev/null +++ b/DeepSeek-R1-Distill-Qwen-1.5B-f16.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:855f80dc0dbf54700d4b6928fe6e866d1bf1c0a4e92569087b66e5d6516e16a8 +size 3560416096 diff --git a/README.md b/README.md new file mode 100644 index 0000000..a5ea347 --- /dev/null +++ b/README.md @@ -0,0 +1,81 @@ +--- +base_model: deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B +license: mit +model_creator: deepseek-ai +model_name: DeepSeek-R1-Distill-Qwen-1.5B +quantized_by: Second State Inc. +library_name: transformers +--- + + + +
+ +
+
+ + +# DeepSeek-R1-Distill-Qwen-1.5B-GGUF + +## Original Model + +[deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B) + +## Run with LlamaEdge + +- LlamaEdge version: [v0.16.8](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.16.8) + +- Prompt template + + - Prompt type: `chatml` + + - Prompt string + + ```text + <|im_start|>system + {system_message}<|im_end|> + <|im_start|>user + {prompt}<|im_end|> + <|im_start|>assistant + ``` + +- Context size: `32000` + +- Run as LlamaEdge service + + ```bash + wasmedge --dir .:. --nn-preload default:GGML:AUTO:DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_M.gguf \ + llama-api-server.wasm \ + --model-name DeepSeek-R1-Distill-Qwen-1.5B \ + --prompt-template chatml \ + --ctx-size 32000 + ``` + +- Run as LlamaEdge command app + + ```bash + wasmedge --dir .:. --nn-preload default:GGML:AUTO:DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_M.gguf \ + llama-chat.wasm \ + --prompt-template chatml \ + --ctx-size 32000 + ``` + +## Quantized GGUF Models + +| Name | Quant method | Bits | Size | Use case | +| ---- | ---- | ---- | ---- | ----- | +| [DeepSeek-R1-Distill-Qwen-1.5B-Q2_K.gguf](https://huggingface.co/second-state/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/blob/main/DeepSeek-R1-Distill-Qwen-1.5B-Q2_K.gguf) | Q2_K | 2 | 753 MB| smallest, significant quality loss - not recommended for most purposes | +| [DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_L.gguf](https://huggingface.co/second-state/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/blob/main/DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_L.gguf) | Q3_K_L | 3 | 980 MB| small, substantial quality loss | +| [DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_M.gguf](https://huggingface.co/second-state/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/blob/main/DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_M.gguf) | Q3_K_M | 3 | 924 MB| very small, high quality loss | +| [DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_S.gguf](https://huggingface.co/second-state/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/blob/main/DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_S.gguf) | Q3_K_S | 3 | 861 MB| very small, high quality loss | +| [DeepSeek-R1-Distill-Qwen-1.5B-Q4_0.gguf](https://huggingface.co/second-state/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/blob/main/DeepSeek-R1-Distill-Qwen-1.5B-Q4_0.gguf) | Q4_0 | 4 | 1.07 GB| legacy; small, very high quality loss - prefer using Q3_K_M | +| [DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf](https://huggingface.co/second-state/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/blob/main/DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf) | Q4_K_M | 4 | 1.12 GB| medium, balanced quality - recommended | +| [DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_S.gguf](https://huggingface.co/second-state/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/blob/main/DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_S.gguf) | Q4_K_S | 4 | 1.07 GB| small, greater quality loss | +| [DeepSeek-R1-Distill-Qwen-1.5B-Q5_0.gguf](https://huggingface.co/second-state/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/blob/main/DeepSeek-R1-Distill-Qwen-1.5B-Q5_0.gguf) | Q5_0 | 5 | 1.26 GB| legacy; medium, balanced quality - prefer using Q4_K_M | +| [DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_M.gguf](https://huggingface.co/second-state/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/blob/main/DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_M.gguf) | Q5_K_M | 5 | 1.29 GB| large, very low quality loss - recommended | +| [DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_S.gguf](https://huggingface.co/second-state/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/blob/main/DeepSeek-R1-Distill-Qwen-1.5B-Q5_K_S.gguf) | Q5_K_S | 5 | 1.26 GB| large, low quality loss - recommended | +| [DeepSeek-R1-Distill-Qwen-1.5B-Q6_K.gguf](https://huggingface.co/second-state/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/blob/main/DeepSeek-R1-Distill-Qwen-1.5B-Q6_K.gguf) | Q6_K | 6 | 1.46 GB| very large, extremely low quality loss | +| [DeepSeek-R1-Distill-Qwen-1.5B-Q8_0.gguf](https://huggingface.co/second-state/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/blob/main/DeepSeek-R1-Distill-Qwen-1.5B-Q8_0.gguf) | Q8_0 | 8 | 1.89 GB| very large, extremely low quality loss - not recommended | +| [DeepSeek-R1-Distill-Qwen-1.5B-f16.gguf](https://huggingface.co/second-state/DeepSeek-R1-Distill-Qwen-1.5B-GGUF/blob/main/DeepSeek-R1-Distill-Qwen-1.5B-f16.gguf) | f16 | 16 | 3.56 GB| | + +*Quantized with llama.cpp b4519* \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..68c044b --- /dev/null +++ b/config.json @@ -0,0 +1,28 @@ +{ + "architectures": [ + "Qwen2ForCausalLM" + ], + "attention_dropout": 0.0, + "bos_token_id": 151643, + "eos_token_id": 151643, + "hidden_act": "silu", + "hidden_size": 1536, + "initializer_range": 0.02, + "intermediate_size": 8960, + "max_position_embeddings": 131072, + "max_window_layers": 21, + "model_type": "qwen2", + "num_attention_heads": 12, + "num_hidden_layers": 28, + "num_key_value_heads": 2, + "rms_norm_eps": 1e-06, + "rope_theta": 10000, + "sliding_window": 4096, + "tie_word_embeddings": false, + "torch_dtype": "bfloat16", + "transformers_version": "4.44.0", + "use_cache": true, + "use_mrope": false, + "use_sliding_window": false, + "vocab_size": 151936 +}