From 284140051ee39c901a326862704e5684f5ae5e6a Mon Sep 17 00:00:00 2001 From: ModelHub XC Date: Thu, 28 May 2026 12:48:12 +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/WizardCoder-Python-7B-v1.0-GGUF Source: Original Platform --- .gitattributes | 36 ++++++++++++ README.md | 80 ++++++++++++++++++++++++++ WizardCoder-Python-7B-V1.0-Q2_K.gguf | 3 + WizardCoder-Python-7B-V1.0-Q3_K_L.gguf | 3 + WizardCoder-Python-7B-V1.0-Q3_K_M.gguf | 3 + WizardCoder-Python-7B-V1.0-Q3_K_S.gguf | 3 + WizardCoder-Python-7B-V1.0-Q4_0.gguf | 3 + WizardCoder-Python-7B-V1.0-Q4_K_M.gguf | 3 + WizardCoder-Python-7B-V1.0-Q4_K_S.gguf | 3 + WizardCoder-Python-7B-V1.0-Q5_0.gguf | 3 + WizardCoder-Python-7B-V1.0-Q5_K_M.gguf | 3 + WizardCoder-Python-7B-V1.0-Q5_K_S.gguf | 3 + WizardCoder-Python-7B-V1.0-Q6_K.gguf | 3 + WizardCoder-Python-7B-V1.0-Q8_0.gguf | 3 + config.json | 27 +++++++++ configuration.json | 1 + 16 files changed, 180 insertions(+) create mode 100644 .gitattributes create mode 100644 README.md create mode 100644 WizardCoder-Python-7B-V1.0-Q2_K.gguf create mode 100644 WizardCoder-Python-7B-V1.0-Q3_K_L.gguf create mode 100644 WizardCoder-Python-7B-V1.0-Q3_K_M.gguf create mode 100644 WizardCoder-Python-7B-V1.0-Q3_K_S.gguf create mode 100644 WizardCoder-Python-7B-V1.0-Q4_0.gguf create mode 100644 WizardCoder-Python-7B-V1.0-Q4_K_M.gguf create mode 100644 WizardCoder-Python-7B-V1.0-Q4_K_S.gguf create mode 100644 WizardCoder-Python-7B-V1.0-Q5_0.gguf create mode 100644 WizardCoder-Python-7B-V1.0-Q5_K_M.gguf create mode 100644 WizardCoder-Python-7B-V1.0-Q5_K_S.gguf create mode 100644 WizardCoder-Python-7B-V1.0-Q6_K.gguf create mode 100644 WizardCoder-Python-7B-V1.0-Q8_0.gguf create mode 100644 config.json create mode 100644 configuration.json diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f15b49c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,36 @@ +*.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 +*.gguf filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000..6fc7cea --- /dev/null +++ b/README.md @@ -0,0 +1,80 @@ +--- +license: llama2 +library_name: transformers +tags: +- code +metrics: +- code_eval +base_model: WizardLM/WizardCoder-Python-7b-V1.0 +inference: false +model_creator: WizardLM +model_type: llama +pipeline_tag: text-generation +quantized_by: Second State Inc. +--- + + + +
+ +
+
+ + +# WizardCoder-Python-7B-v1.0-GGUF + +## Original Model + +[WizardLM/WizardCoder-Python-7b-V1.0](https://huggingface.co/WizardLM/WizardCoder-Python-7B-V1.0) + +## Run with LlamaEdge + +- LlamaEdge version: [v0.2.8](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.2.8) and above + +- Prompt template + + - Prompt type: `wizard-coder` + + - Prompt string + + ```text + Below is an instruction that describes a task. Write a response that appropriately completes the request. + + \### Instruction: + {instruction} + + \### Response: + ``` + + **Note that the \ character is used to escape the ### in the prompt string. Remove it in the practical use.** + +- Context size: `4096` + +- Run as LlamaEdge service + + ```bash + wasmedge --dir .:. --nn-preload default:GGML:AUTO:WizardCoder-Python-7B-V1.0-Q5_K_M.gguf llama-api-server.wasm -p wizard-coder + ``` + +- Run as LlamaEdge command app + + ```bash + wasmedge --dir .:. --nn-preload default:GGML:AUTO:WizardCoder-Python-7B-V1.0-Q5_K_M.gguf llama-chat.wasm -p wizard-coder -s 'Below is an instruction that describes a task. Write a response that appropriately completes the request.' + ``` + +## Quantized GGUF Models + +| Name | Quant method | Bits | Size | Use case | +| ---- | ---- | ---- | ---- | ----- | +| [WizardCoder-Python-7B-V1.0-Q2_K.gguf](https://huggingface.co/second-state/WizardCoder-Python-7B-v1.0-GGUF/blob/main/WizardCoder-Python-7B-V1.0-Q2_K.gguf) | Q2_K | 2 | 2.53 GB| smallest, significant quality loss - not recommended for most purposes | +| [WizardCoder-Python-7B-V1.0-Q3_K_L.gguf](https://huggingface.co/second-state/WizardCoder-Python-7B-v1.0-GGUF/blob/main/WizardCoder-Python-7B-V1.0-Q3_K_L.gguf) | Q3_K_L | 3 | 3.60 GB| small, substantial quality loss | +| [WizardCoder-Python-7B-V1.0-Q3_K_M.gguf](https://huggingface.co/second-state/WizardCoder-Python-7B-v1.0-GGUF/blob/main/WizardCoder-Python-7B-V1.0-Q3_K_M.gguf) | Q3_K_M | 3 | 3.30 GB| very small, high quality loss | +| [WizardCoder-Python-7B-V1.0-Q3_K_S.gguf](https://huggingface.co/second-state/WizardCoder-Python-7B-v1.0-GGUF/blob/main/WizardCoder-Python-7B-V1.0-Q3_K_S.gguf) | Q3_K_S | 3 | 2.95 GB| very small, high quality loss | +| [WizardCoder-Python-7B-V1.0-Q4_0.gguf](https://huggingface.co/second-state/WizardCoder-Python-7B-v1.0-GGUF/blob/main/WizardCoder-Python-7B-V1.0-Q4_0.gguf) | Q4_0 | 4 | 3.83 GB| legacy; small, very high quality loss - prefer using Q3_K_M | +| [WizardCoder-Python-7B-V1.0-Q4_K_M.gguf](https://huggingface.co/second-state/WizardCoder-Python-7B-v1.0-GGUF/blob/main/WizardCoder-Python-7B-V1.0-Q4_K_M.gguf) | Q4_K_M | 4 | 4.08 GB| medium, balanced quality - recommended | +| [WizardCoder-Python-7B-V1.0-Q4_K_S.gguf](https://huggingface.co/second-state/WizardCoder-Python-7B-v1.0-GGUF/blob/main/WizardCoder-Python-7B-V1.0-Q4_K_S.gguf) | Q4_K_S | 4 | 3.86 GB| small, greater quality loss | +| [WizardCoder-Python-7B-V1.0-Q5_0.gguf](https://huggingface.co/second-state/WizardCoder-Python-7B-v1.0-GGUF/blob/main/WizardCoder-Python-7B-V1.0-Q5_0.gguf) | Q5_0 | 5 | 4.65 GB| legacy; medium, balanced quality - prefer using Q4_K_M | +| [WizardCoder-Python-7B-V1.0-Q5_K_M.gguf](https://huggingface.co/second-state/WizardCoder-Python-7B-v1.0-GGUF/blob/main/WizardCoder-Python-7B-V1.0-Q5_K_M.gguf) | Q5_K_M | 5 | 4.78 GB| large, very low quality loss - recommended | +| [WizardCoder-Python-7B-V1.0-Q5_K_S.gguf](https://huggingface.co/second-state/WizardCoder-Python-7B-v1.0-GGUF/blob/main/WizardCoder-Python-7B-V1.0-Q5_K_S.gguf) | Q5_K_S | 5 | 4.65 GB| large, low quality loss - recommended | +| [WizardCoder-Python-7B-V1.0-Q6_K.gguf](https://huggingface.co/second-state/WizardCoder-Python-7B-v1.0-GGUF/blob/main/WizardCoder-Python-7B-V1.0-Q6_K.gguf) | Q6_K | 6 | 5.53 GB| very large, extremely low quality loss | +| [WizardCoder-Python-7B-V1.0-Q8_0.gguf](https://huggingface.co/second-state/WizardCoder-Python-7B-v1.0-GGUF/blob/main/WizardCoder-Python-7B-V1.0-Q8_0.gguf) | Q8_0 | 8 | 7.16 GB| very large, extremely low quality loss - not recommended | diff --git a/WizardCoder-Python-7B-V1.0-Q2_K.gguf b/WizardCoder-Python-7B-V1.0-Q2_K.gguf new file mode 100644 index 0000000..669e087 --- /dev/null +++ b/WizardCoder-Python-7B-V1.0-Q2_K.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aade30c3576023f5645daff39fd7e0b96ad06828f672fcddaad33f14e44a775c +size 2532868480 diff --git a/WizardCoder-Python-7B-V1.0-Q3_K_L.gguf b/WizardCoder-Python-7B-V1.0-Q3_K_L.gguf new file mode 100644 index 0000000..bb5973e --- /dev/null +++ b/WizardCoder-Python-7B-V1.0-Q3_K_L.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68eb0a98b41358ac21dce6bc6db18e0c91eee5905f526ebc972198e90b1233f2 +size 3597116192 diff --git a/WizardCoder-Python-7B-V1.0-Q3_K_M.gguf b/WizardCoder-Python-7B-V1.0-Q3_K_M.gguf new file mode 100644 index 0000000..18f3c26 --- /dev/null +++ b/WizardCoder-Python-7B-V1.0-Q3_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa999fcbff987c83ad7f1961c598c08947aff65dd7dc7948c800e5b49fa8db26 +size 3298009888 diff --git a/WizardCoder-Python-7B-V1.0-Q3_K_S.gguf b/WizardCoder-Python-7B-V1.0-Q3_K_S.gguf new file mode 100644 index 0000000..a8f1a58 --- /dev/null +++ b/WizardCoder-Python-7B-V1.0-Q3_K_S.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae1ae76ca547984025d3785b3b449f6e3d7f4808b2942349e0cf14772d935e7d +size 2948309792 diff --git a/WizardCoder-Python-7B-V1.0-Q4_0.gguf b/WizardCoder-Python-7B-V1.0-Q4_0.gguf new file mode 100644 index 0000000..6407359 --- /dev/null +++ b/WizardCoder-Python-7B-V1.0-Q4_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:158ff5ae22141f0c4d1692ab433431dc1a49c7c56acef8d55f5b5e907f665663 +size 3825812800 diff --git a/WizardCoder-Python-7B-V1.0-Q4_K_M.gguf b/WizardCoder-Python-7B-V1.0-Q4_K_M.gguf new file mode 100644 index 0000000..29a2d38 --- /dev/null +++ b/WizardCoder-Python-7B-V1.0-Q4_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df0d8906a97deeec15e9b1ebc399f65bf203d43e978fdb076e56ddf2a3899117 +size 4081009984 diff --git a/WizardCoder-Python-7B-V1.0-Q4_K_S.gguf b/WizardCoder-Python-7B-V1.0-Q4_K_S.gguf new file mode 100644 index 0000000..cf46ec1 --- /dev/null +++ b/WizardCoder-Python-7B-V1.0-Q4_K_S.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af93491123629ed1a001b604cf89e527f6d480290cfc84e447f237b114747011 +size 3856745792 diff --git a/WizardCoder-Python-7B-V1.0-Q5_0.gguf b/WizardCoder-Python-7B-V1.0-Q5_0.gguf new file mode 100644 index 0000000..eef74a4 --- /dev/null +++ b/WizardCoder-Python-7B-V1.0-Q5_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a01482ccfc8d3e117497ed214d43af6a1ca72a16829f0c23d61e801040e461d +size 4651697984 diff --git a/WizardCoder-Python-7B-V1.0-Q5_K_M.gguf b/WizardCoder-Python-7B-V1.0-Q5_K_M.gguf new file mode 100644 index 0000000..7b0b807 --- /dev/null +++ b/WizardCoder-Python-7B-V1.0-Q5_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff61076feb2f3c9d049d12869532d6f5feb855ce501eff1a3d155ac6d29f283a +size 4783163200 diff --git a/WizardCoder-Python-7B-V1.0-Q5_K_S.gguf b/WizardCoder-Python-7B-V1.0-Q5_K_S.gguf new file mode 100644 index 0000000..eaca08b --- /dev/null +++ b/WizardCoder-Python-7B-V1.0-Q5_K_S.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2355a2a39e60bdace15544e35dc1bd0edebc3c144c04ffe1b1647312ee554d17 +size 4651697984 diff --git a/WizardCoder-Python-7B-V1.0-Q6_K.gguf b/WizardCoder-Python-7B-V1.0-Q6_K.gguf new file mode 100644 index 0000000..31ea39a --- /dev/null +++ b/WizardCoder-Python-7B-V1.0-Q6_K.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbb31e4dd9b46985980683aee27aeb96af867d67eee40b39abba99d0a0717df7 +size 5529200992 diff --git a/WizardCoder-Python-7B-V1.0-Q8_0.gguf b/WizardCoder-Python-7B-V1.0-Q8_0.gguf new file mode 100644 index 0000000..67929a4 --- /dev/null +++ b/WizardCoder-Python-7B-V1.0-Q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f5e3f81a754da768d4c1a4019435181595b81378c6a8405d558f0a742e49ee7 +size 7161098528 diff --git a/config.json b/config.json new file mode 100644 index 0000000..bd034ee --- /dev/null +++ b/config.json @@ -0,0 +1,27 @@ +{ + "_name_or_path": "/workspaceblobstore/caxu/trained_models/7Bcodellamapython_v1_2048_e3_2e_5/checkpoint-195", + "architectures": [ + "LlamaForCausalLM" + ], + "bos_token_id": 1, + "eos_token_id": 2, + "hidden_act": "silu", + "hidden_size": 4096, + "initializer_range": 0.02, + "intermediate_size": 11008, + "max_position_embeddings": 16384, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 32, + "num_key_value_heads": 32, + "pad_token_id": 0, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 1000000, + "tie_word_embeddings": false, + "torch_dtype": "float16", + "transformers_version": "4.31.0", + "use_cache": false, + "vocab_size": 32001 +} diff --git a/configuration.json b/configuration.json new file mode 100644 index 0000000..bbeeda1 --- /dev/null +++ b/configuration.json @@ -0,0 +1 @@ +{"framework": "pytorch", "task": "text-generation", "allow_remote": true} \ No newline at end of file