初始化项目,由ModelHub XC社区提供模型
Model: second-state/Qwen1.5-0.5B-Chat-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
|
||||||
3
Qwen1.5-0.5B-Chat-Q2_K.gguf
Normal file
3
Qwen1.5-0.5B-Chat-Q2_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6eaf101326aa8e06d17d8c020ac814d099efac4cd0a6622c8d0831a1921747eb
|
||||||
|
size 298412832
|
||||||
3
Qwen1.5-0.5B-Chat-Q3_K_L.gguf
Normal file
3
Qwen1.5-0.5B-Chat-Q3_K_L.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0f14eb5e4898fdf46c2c8d7f70572d17fd17423c347864ad0ec311290a3992e0
|
||||||
|
size 364201760
|
||||||
3
Qwen1.5-0.5B-Chat-Q3_K_M.gguf
Normal file
3
Qwen1.5-0.5B-Chat-Q3_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b1d269de3e3bb8a4901412332dc4d469cc769ad853983c778aa6e0950809cce1
|
||||||
|
size 349882144
|
||||||
3
Qwen1.5-0.5B-Chat-Q3_K_S.gguf
Normal file
3
Qwen1.5-0.5B-Chat-Q3_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:20145f2c2ee32f9e722a7b764f9f1caf824df83366bbaf301151cff5e62adee3
|
||||||
|
size 333383456
|
||||||
3
Qwen1.5-0.5B-Chat-Q4_0.gguf
Normal file
3
Qwen1.5-0.5B-Chat-Q4_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:be284d488a5e8d4aef8f4296274d105211ed54c7f1f687d59fbdba88383a0c51
|
||||||
|
size 394990368
|
||||||
3
Qwen1.5-0.5B-Chat-Q4_K_M.gguf
Normal file
3
Qwen1.5-0.5B-Chat-Q4_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5451f76778c30547a9a3aae398e1de68de20364c96af314287c7364f6fd73147
|
||||||
|
size 407155488
|
||||||
3
Qwen1.5-0.5B-Chat-Q4_K_S.gguf
Normal file
3
Qwen1.5-0.5B-Chat-Q4_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2e842ac0e1b54deae4a378c495718407695fe44ed7a9c651189f50aa0602884f
|
||||||
|
size 396596000
|
||||||
3
Qwen1.5-0.5B-Chat-Q5_0.gguf
Normal file
3
Qwen1.5-0.5B-Chat-Q5_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9c1fc80de8547211ec385e4258f922561f210ab45eae3b61d3cee472f7401905
|
||||||
|
size 452973344
|
||||||
3
Qwen1.5-0.5B-Chat-Q5_K_M.gguf
Normal file
3
Qwen1.5-0.5B-Chat-Q5_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2f08eca70958c85fe0d25ad3cba9a543cb03ae0a1167ac2ef25ef5f1b1a5d276
|
||||||
|
size 459240224
|
||||||
3
Qwen1.5-0.5B-Chat-Q5_K_S.gguf
Normal file
3
Qwen1.5-0.5B-Chat-Q5_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:178fa6a29541b0e0f5c6bf5739898fa0fbb17711f14bff9121391dbcc240b7e2
|
||||||
|
size 452973344
|
||||||
3
Qwen1.5-0.5B-Chat-Q6_K.gguf
Normal file
3
Qwen1.5-0.5B-Chat-Q6_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:25b045e4eb65fef5a30932e5b5a81e2fb63c2eb38aaf2898f54c6718a91e8dcf
|
||||||
|
size 514580256
|
||||||
3
Qwen1.5-0.5B-Chat-Q8_0.gguf
Normal file
3
Qwen1.5-0.5B-Chat-Q8_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ba08f27dfe3abc3ec293c84e1a402bba3060d71c5be269c34169d61b00f3e0fa
|
||||||
|
size 664602400
|
||||||
78
README.md
Normal file
78
README.md
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
---
|
||||||
|
base_model: Qwen/Qwen1.5-0.5B-Chat
|
||||||
|
license: other
|
||||||
|
license_name: tongyi-qianwen-research
|
||||||
|
license_link: >-
|
||||||
|
https://huggingface.co/Qwen/Qwen1.5-0.5B-Chat/blob/main/LICENSE
|
||||||
|
model_creator: Qwen
|
||||||
|
model_name: Qwen1.5 0.5B Chat
|
||||||
|
quantized_by: Second State Inc.
|
||||||
|
language:
|
||||||
|
- en
|
||||||
|
pipeline_tag: text-generation
|
||||||
|
tags:
|
||||||
|
- chat
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- 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 -->
|
||||||
|
|
||||||
|
# Qwen1.5-0.5B-Chat-GGUF
|
||||||
|
|
||||||
|
## Original Model
|
||||||
|
|
||||||
|
[Qwen/Qwen1.5-0.5B-Chat](https://huggingface.co/Qwen/Qwen1.5-0.5B-Chat)
|
||||||
|
|
||||||
|
## Run with LlamaEdge
|
||||||
|
|
||||||
|
- LlamaEdge version: [v0.2.15](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.2.15) and above
|
||||||
|
|
||||||
|
- 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:Qwen1.5-0.5B-Chat-Q5_K_M.gguf llama-api-server.wasm -p chatml
|
||||||
|
```
|
||||||
|
|
||||||
|
- Run as LlamaEdge command app
|
||||||
|
|
||||||
|
```bash
|
||||||
|
wasmedge --dir .:. --nn-preload default:GGML:AUTO:Qwen1.5-0.5B-Chat-Q5_K_M.gguf llama-chat.wasm -p chatml
|
||||||
|
```
|
||||||
|
|
||||||
|
## Quantized GGUF Models
|
||||||
|
|
||||||
|
| Name | Quant method | Bits | Size | Use case |
|
||||||
|
| ---- | ---- | ---- | ---- | ----- |
|
||||||
|
| [Qwen1.5-0.5B-Chat-Q2_K.gguf](https://huggingface.co/second-state/Qwen1.5-0.5B-Chat-GGUF/blob/main/Qwen1.5-0.5B-Chat-Q2_K.gguf) | Q2_K | 2 | 298 MB| smallest, significant quality loss - not recommended for most purposes |
|
||||||
|
| [Qwen1.5-0.5B-Chat-Q3_K_L.gguf](https://huggingface.co/second-state/Qwen1.5-0.5B-Chat-GGUF/blob/main/Qwen1.5-0.5B-Chat-Q3_K_L.gguf) | Q3_K_L | 3 | 364 MB| small, substantial quality loss |
|
||||||
|
| [Qwen1.5-0.5B-Chat-Q3_K_M.gguf](https://huggingface.co/second-state/Qwen1.5-0.5B-Chat-GGUF/blob/main/Qwen1.5-0.5B-Chat-Q3_K_M.gguf) | Q3_K_M | 3 | 350 MB| very small, high quality loss |
|
||||||
|
| [Qwen1.5-0.5B-Chat-Q3_K_S.gguf](https://huggingface.co/second-state/Qwen1.5-0.5B-Chat-GGUF/blob/main/Qwen1.5-0.5B-Chat-Q3_K_S.gguf) | Q3_K_S | 3 | 333 MB| very small, high quality loss |
|
||||||
|
| [Qwen1.5-0.5B-Chat-Q4_0.gguf](https://huggingface.co/second-state/Qwen1.5-0.5B-Chat-GGUF/blob/main/Qwen1.5-0.5B-Chat-Q4_0.gguf) | Q4_0 | 4 | 395 MB| legacy; small, very high quality loss - prefer using Q3_K_M |
|
||||||
|
| [Qwen1.5-0.5B-Chat-Q4_K_M.gguf](https://huggingface.co/second-state/Qwen1.5-0.5B-Chat-GGUF/blob/main/Qwen1.5-0.5B-Chat-Q4_K_M.gguf) | Q4_K_M | 4 | 407 MB| medium, balanced quality - recommended |
|
||||||
|
| [Qwen1.5-0.5B-Chat-Q4_K_S.gguf](https://huggingface.co/second-state/Qwen1.5-0.5B-Chat-GGUF/blob/main/Qwen1.5-0.5B-Chat-Q4_K_S.gguf) | Q4_K_S | 4 | 397 MB| small, greater quality loss |
|
||||||
|
| [Qwen1.5-0.5B-Chat-Q5_0.gguf](https://huggingface.co/second-state/Qwen1.5-0.5B-Chat-GGUF/blob/main/Qwen1.5-0.5B-Chat-Q5_0.gguf) | Q5_0 | 5 | 453 MB| legacy; medium, balanced quality - prefer using Q4_K_M |
|
||||||
|
| [Qwen1.5-0.5B-Chat-Q5_K_M.gguf](https://huggingface.co/second-state/Qwen1.5-0.5B-Chat-GGUF/blob/main/Qwen1.5-0.5B-Chat-Q5_K_M.gguf) | Q5_K_M | 5 | 459 MB| large, very low quality loss - recommended |
|
||||||
|
| [Qwen1.5-0.5B-Chat-Q5_K_S.gguf](https://huggingface.co/second-state/Qwen1.5-0.5B-Chat-GGUF/blob/main/Qwen1.5-0.5B-Chat-Q5_K_S.gguf) | Q5_K_S | 5 | 453 MB| large, low quality loss - recommended |
|
||||||
|
| [Qwen1.5-0.5B-Chat-Q6_K.gguf](https://huggingface.co/second-state/Qwen1.5-0.5B-Chat-GGUF/blob/main/Qwen1.5-0.5B-Chat-Q6_K.gguf) | Q6_K | 6 | 515 MB| very large, extremely low quality loss |
|
||||||
|
| [Qwen1.5-0.5B-Chat-Q8_0.gguf](https://huggingface.co/second-state/Qwen1.5-0.5B-Chat-GGUF/blob/main/Qwen1.5-0.5B-Chat-Q8_0.gguf) | Q8_0 | 8 | 665 MB| very large, extremely low quality loss - not recommended |
|
||||||
27
config.json
Normal file
27
config.json
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"architectures": [
|
||||||
|
"Qwen2ForCausalLM"
|
||||||
|
],
|
||||||
|
"attention_dropout": 0.0,
|
||||||
|
"bos_token_id": 151643,
|
||||||
|
"eos_token_id": 151645,
|
||||||
|
"hidden_act": "silu",
|
||||||
|
"hidden_size": 1024,
|
||||||
|
"initializer_range": 0.02,
|
||||||
|
"intermediate_size": 2816,
|
||||||
|
"max_position_embeddings": 32768,
|
||||||
|
"max_window_layers": 21,
|
||||||
|
"model_type": "qwen2",
|
||||||
|
"num_attention_heads": 16,
|
||||||
|
"num_hidden_layers": 24,
|
||||||
|
"num_key_value_heads": 16,
|
||||||
|
"rms_norm_eps": 1e-06,
|
||||||
|
"rope_theta": 1000000.0,
|
||||||
|
"sliding_window": 32768,
|
||||||
|
"tie_word_embeddings": true,
|
||||||
|
"torch_dtype": "bfloat16",
|
||||||
|
"transformers_version": "4.37.0",
|
||||||
|
"use_cache": true,
|
||||||
|
"use_sliding_window": false,
|
||||||
|
"vocab_size": 151936
|
||||||
|
}
|
||||||
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