初始化项目,由ModelHub XC社区提供模型
Model: second-state/WizardCoder-Python-7B-v1.0-GGUF Source: Original Platform
This commit is contained in:
36
.gitattributes
vendored
Normal file
36
.gitattributes
vendored
Normal file
@@ -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
|
||||||
80
README.md
Normal file
80
README.md
Normal file
@@ -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.
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- header start -->
|
||||||
|
<!-- 200823 -->
|
||||||
|
<div style="width: auto; margin-left: auto; margin-right: auto">
|
||||||
|
<img src="https://github.com/LlamaEdge/LlamaEdge/raw/dev/assets/logo.svg" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
||||||
|
</div>
|
||||||
|
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
|
||||||
|
<!-- header end -->
|
||||||
|
|
||||||
|
# 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 |
|
||||||
3
WizardCoder-Python-7B-V1.0-Q2_K.gguf
Normal file
3
WizardCoder-Python-7B-V1.0-Q2_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:aade30c3576023f5645daff39fd7e0b96ad06828f672fcddaad33f14e44a775c
|
||||||
|
size 2532868480
|
||||||
3
WizardCoder-Python-7B-V1.0-Q3_K_L.gguf
Normal file
3
WizardCoder-Python-7B-V1.0-Q3_K_L.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:68eb0a98b41358ac21dce6bc6db18e0c91eee5905f526ebc972198e90b1233f2
|
||||||
|
size 3597116192
|
||||||
3
WizardCoder-Python-7B-V1.0-Q3_K_M.gguf
Normal file
3
WizardCoder-Python-7B-V1.0-Q3_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fa999fcbff987c83ad7f1961c598c08947aff65dd7dc7948c800e5b49fa8db26
|
||||||
|
size 3298009888
|
||||||
3
WizardCoder-Python-7B-V1.0-Q3_K_S.gguf
Normal file
3
WizardCoder-Python-7B-V1.0-Q3_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ae1ae76ca547984025d3785b3b449f6e3d7f4808b2942349e0cf14772d935e7d
|
||||||
|
size 2948309792
|
||||||
3
WizardCoder-Python-7B-V1.0-Q4_0.gguf
Normal file
3
WizardCoder-Python-7B-V1.0-Q4_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:158ff5ae22141f0c4d1692ab433431dc1a49c7c56acef8d55f5b5e907f665663
|
||||||
|
size 3825812800
|
||||||
3
WizardCoder-Python-7B-V1.0-Q4_K_M.gguf
Normal file
3
WizardCoder-Python-7B-V1.0-Q4_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:df0d8906a97deeec15e9b1ebc399f65bf203d43e978fdb076e56ddf2a3899117
|
||||||
|
size 4081009984
|
||||||
3
WizardCoder-Python-7B-V1.0-Q4_K_S.gguf
Normal file
3
WizardCoder-Python-7B-V1.0-Q4_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:af93491123629ed1a001b604cf89e527f6d480290cfc84e447f237b114747011
|
||||||
|
size 3856745792
|
||||||
3
WizardCoder-Python-7B-V1.0-Q5_0.gguf
Normal file
3
WizardCoder-Python-7B-V1.0-Q5_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1a01482ccfc8d3e117497ed214d43af6a1ca72a16829f0c23d61e801040e461d
|
||||||
|
size 4651697984
|
||||||
3
WizardCoder-Python-7B-V1.0-Q5_K_M.gguf
Normal file
3
WizardCoder-Python-7B-V1.0-Q5_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ff61076feb2f3c9d049d12869532d6f5feb855ce501eff1a3d155ac6d29f283a
|
||||||
|
size 4783163200
|
||||||
3
WizardCoder-Python-7B-V1.0-Q5_K_S.gguf
Normal file
3
WizardCoder-Python-7B-V1.0-Q5_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2355a2a39e60bdace15544e35dc1bd0edebc3c144c04ffe1b1647312ee554d17
|
||||||
|
size 4651697984
|
||||||
3
WizardCoder-Python-7B-V1.0-Q6_K.gguf
Normal file
3
WizardCoder-Python-7B-V1.0-Q6_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:cbb31e4dd9b46985980683aee27aeb96af867d67eee40b39abba99d0a0717df7
|
||||||
|
size 5529200992
|
||||||
3
WizardCoder-Python-7B-V1.0-Q8_0.gguf
Normal file
3
WizardCoder-Python-7B-V1.0-Q8_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6f5e3f81a754da768d4c1a4019435181595b81378c6a8405d558f0a742e49ee7
|
||||||
|
size 7161098528
|
||||||
27
config.json
Normal file
27
config.json
Normal file
@@ -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
|
||||||
|
}
|
||||||
1
configuration.json
Normal file
1
configuration.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}
|
||||||
Reference in New Issue
Block a user