初始化项目,由ModelHub XC社区提供模型
Model: second-state/internlm2_5-7b-chat-GGUF Source: Original Platform
This commit is contained in:
48
.gitattributes
vendored
Normal file
48
.gitattributes
vendored
Normal file
@@ -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
|
||||
internlm2_5-7b-chat-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
internlm2_5-7b-chat-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
internlm2_5-7b-chat-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
internlm2_5-7b-chat-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
internlm2_5-7b-chat-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
internlm2_5-7b-chat-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
internlm2_5-7b-chat-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
internlm2_5-7b-chat-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
internlm2_5-7b-chat-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
internlm2_5-7b-chat-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
internlm2_5-7b-chat-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
internlm2_5-7b-chat-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
internlm2_5-7b-chat-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
94
README.md
Normal file
94
README.md
Normal file
@@ -0,0 +1,94 @@
|
||||
---
|
||||
license: other
|
||||
pipeline_tag: text-generation
|
||||
base_model: internlm/internlm2_5-7b-chat
|
||||
model_creator: InternLM
|
||||
model_name: internlm2_5-7b-chat
|
||||
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 -->
|
||||
|
||||
# internlm2_5-7b-chat-GGUF
|
||||
|
||||
## Original Model
|
||||
|
||||
[internlm/internlm2_5-7b-chat](https://huggingface.co/internlm/internlm2_5-7b-chat)
|
||||
|
||||
## Run with LlamaEdge
|
||||
|
||||
- LlamaEdge version: [v0.12.3](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.12.3) 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
|
||||
|
||||
- Chat
|
||||
|
||||
```bash
|
||||
wasmedge --dir .:. --nn-preload default:GGML:AUTO:internlm2_5-7b-chat-Q5_K_M.gguf \
|
||||
llama-api-server.wasm \
|
||||
--prompt-template chatml \
|
||||
--ctx-size 32000 \
|
||||
--model-name internlm2_5-7b-chat
|
||||
```
|
||||
|
||||
- Tool use
|
||||
|
||||
```bash
|
||||
wasmedge --dir .:. --nn-preload default:GGML:AUTO:internlm2_5-7b-chat-Q5_K_M.gguf \
|
||||
llama-api-server.wasm \
|
||||
--prompt-template internlm-2-tool \
|
||||
--ctx-size 32000 \
|
||||
--model-name internlm2_5-7b-chat
|
||||
```
|
||||
|
||||
- Run as LlamaEdge command app
|
||||
|
||||
```bash
|
||||
wasmedge --dir .:. \
|
||||
--nn-preload default:GGML:AUTO:internlm2_5-7b-chat-Q5_K_M.gguf \
|
||||
llama-chat.wasm \
|
||||
--prompt-template chatml \
|
||||
--ctx-size 32000
|
||||
```
|
||||
|
||||
## Quantized GGUF Models
|
||||
|
||||
| Name | Quant method | Bits | Size | Use case |
|
||||
| ---- | ---- | ---- | ---- | ----- |
|
||||
| [internlm2_5-7b-chat-Q2_K.gguf](https://huggingface.co/second-state/internlm2_5-7b-chat-GGUF/blob/main/internlm2_5-7b-chat-Q2_K.gguf) | Q2_K | 2 | 3.01 GB| smallest, significant quality loss - not recommended for most purposes |
|
||||
| [internlm2_5-7b-chat-Q3_K_L.gguf](https://huggingface.co/second-state/internlm2_5-7b-chat-GGUF/blob/main/internlm2_5-7b-chat-Q3_K_L.gguf) | Q3_K_L | 3 | 4.13 GB| small, substantial quality loss |
|
||||
| [internlm2_5-7b-chat-Q3_K_M.gguf](https://huggingface.co/second-state/internlm2_5-7b-chat-GGUF/blob/main/internlm2_5-7b-chat-Q3_K_M.gguf) | Q3_K_M | 3 | 3.83 GB| very small, high quality loss |
|
||||
| [internlm2_5-7b-chat-Q3_K_S.gguf](https://huggingface.co/second-state/internlm2_5-7b-chat-GGUF/blob/main/internlm2_5-7b-chat-Q3_K_S.gguf) | Q3_K_S | 3 | 3.48 GB| very small, high quality loss |
|
||||
| [internlm2_5-7b-chat-Q4_0.gguf](https://huggingface.co/second-state/internlm2_5-7b-chat-GGUF/blob/main/internlm2_5-7b-chat-Q4_0.gguf) | Q4_0 | 4 | 4.45 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
|
||||
| [internlm2_5-7b-chat-Q4_K_M.gguf](https://huggingface.co/second-state/internlm2_5-7b-chat-GGUF/blob/main/internlm2_5-7b-chat-Q4_K_M.gguf) | Q4_K_M | 4 | 4.71 GB| medium, balanced quality - recommended |
|
||||
| [internlm2_5-7b-chat-Q4_K_S.gguf](https://huggingface.co/second-state/internlm2_5-7b-chat-GGUF/blob/main/internlm2_5-7b-chat-Q4_K_S.gguf) | Q4_K_S | 4 | 4.48 GB| small, greater quality loss |
|
||||
| [internlm2_5-7b-chat-Q5_0.gguf](https://huggingface.co/second-state/internlm2_5-7b-chat-GGUF/blob/main/internlm2_5-7b-chat-Q5_0.gguf) | Q5_0 | 5 | 5.37 GB| legacy; medium, balanced quality - prefer using Q4_K_M |
|
||||
| [internlm2_5-7b-chat-Q5_K_M.gguf](https://huggingface.co/second-state/internlm2_5-7b-chat-GGUF/blob/main/internlm2_5-7b-chat-Q5_K_M.gguf) | Q5_K_M | 5 | 5.51 GB| large, very low quality loss - recommended |
|
||||
| [internlm2_5-7b-chat-Q5_K_S.gguf](https://huggingface.co/second-state/internlm2_5-7b-chat-GGUF/blob/main/internlm2_5-7b-chat-Q5_K_S.gguf) | Q5_K_S | 5 | 5.37 GB| large, low quality loss - recommended |
|
||||
| [internlm2_5-7b-chat-Q6_K.gguf](https://huggingface.co/second-state/internlm2_5-7b-chat-GGUF/blob/main/internlm2_5-7b-chat-Q6_K.gguf) | Q6_K | 6 | 6.35 GB| very large, extremely low quality loss |
|
||||
| [internlm2_5-7b-chat-Q8_0.gguf](https://huggingface.co/second-state/internlm2_5-7b-chat-GGUF/blob/main/internlm2_5-7b-chat-Q8_0.gguf) | Q8_0 | 8 | 8.22 GB| very large, extremely low quality loss - not recommended |
|
||||
| [internlm2_5-7b-chat-f16.gguf](https://huggingface.co/second-state/internlm2_5-7b-chat-GGUF/blob/main/internlm2_5-7b-chat-f16.gguf) | f16 | 16 | 15.5 GB| |
|
||||
|
||||
*Quantized with llama.cpp b3361*
|
||||
36
config.json
Normal file
36
config.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"architectures": [
|
||||
"InternLM2ForCausalLM"
|
||||
],
|
||||
"attn_implementation": "eager",
|
||||
"auto_map": {
|
||||
"AutoConfig": "configuration_internlm2.InternLM2Config",
|
||||
"AutoModelForCausalLM": "modeling_internlm2.InternLM2ForCausalLM",
|
||||
"AutoModel": "modeling_internlm2.InternLM2ForCausalLM"
|
||||
},
|
||||
"bias": false,
|
||||
"bos_token_id": 1,
|
||||
"eos_token_id": 2,
|
||||
"hidden_act": "silu",
|
||||
"hidden_size": 4096,
|
||||
"initializer_range": 0.02,
|
||||
"intermediate_size": 14336,
|
||||
"max_position_embeddings": 32768,
|
||||
"model_type": "internlm2",
|
||||
"num_attention_heads": 32,
|
||||
"num_hidden_layers": 32,
|
||||
"num_key_value_heads": 8,
|
||||
"pad_token_id": 2,
|
||||
"rms_norm_eps": 1e-05,
|
||||
"rope_scaling": {
|
||||
"type": "dynamic",
|
||||
"factor": 2.0
|
||||
},
|
||||
"rope_theta": 1000000,
|
||||
"tie_word_embeddings": false,
|
||||
"torch_dtype": "bfloat16",
|
||||
"transformers_version": "4.41.0",
|
||||
"use_cache": true,
|
||||
"vocab_size": 92544,
|
||||
"pretraining_tp": 1
|
||||
}
|
||||
1
configuration.json
Normal file
1
configuration.json
Normal file
@@ -0,0 +1 @@
|
||||
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}
|
||||
3
internlm2_5-7b-chat-Q2_K.gguf
Normal file
3
internlm2_5-7b-chat-Q2_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7c61ec5054f4396e45e918d79ab7c69142a1de3bab5d6e0cdfd8d69743841778
|
||||
size 3005449024
|
||||
3
internlm2_5-7b-chat-Q3_K_L.gguf
Normal file
3
internlm2_5-7b-chat-Q3_K_L.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:257f9e5c5b81bd5a70437271e225a2a8a8f8ffdbfae5f4bbe64f804564244429
|
||||
size 4133417792
|
||||
3
internlm2_5-7b-chat-Q3_K_M.gguf
Normal file
3
internlm2_5-7b-chat-Q3_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:460b50cce3a2811a2bf5f11b95e658902c166aed99f146e9a0ce4690b3832e26
|
||||
size 3830379328
|
||||
3
internlm2_5-7b-chat-Q3_K_S.gguf
Normal file
3
internlm2_5-7b-chat-Q3_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:82a00dbcf9f97ed98c6a853171020766e588328e19b124580db9a42f928fe203
|
||||
size 3475960640
|
||||
3
internlm2_5-7b-chat-Q4_0.gguf
Normal file
3
internlm2_5-7b-chat-Q4_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:de1b8fef5373d6977345a5133def71c8ead427c27ef36232627f0d6365d4e277
|
||||
size 4453245760
|
||||
3
internlm2_5-7b-chat-Q4_K_M.gguf
Normal file
3
internlm2_5-7b-chat-Q4_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:450ef0b157ee10586bb8fce4c5173ae1799345c43c537a6a7353518df1079f55
|
||||
size 4712768320
|
||||
3
internlm2_5-7b-chat-Q4_K_S.gguf
Normal file
3
internlm2_5-7b-chat-Q4_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5759a87d6581502c0cc0d4c1e6c847a55609dea03d2dfdcd2b30103fdbd0bfa0
|
||||
size 4484703040
|
||||
3
internlm2_5-7b-chat-Q5_0.gguf
Normal file
3
internlm2_5-7b-chat-Q5_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3d8456f5744f6854c15ba91923a54bbf589eb742b55910c35ba7f2467d5fc893
|
||||
size 5373043520
|
||||
3
internlm2_5-7b-chat-Q5_K_M.gguf
Normal file
3
internlm2_5-7b-chat-Q5_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:687ade10a70ecb22f9902362dd47a71e1ab6106eeee105f6beab359e984dfae6
|
||||
size 5506736960
|
||||
3
internlm2_5-7b-chat-Q5_K_S.gguf
Normal file
3
internlm2_5-7b-chat-Q5_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:78294633ed2df6610e9614879d16ccb30b3a5db7e9b3336ba56e9e2228213a2d
|
||||
size 5373043520
|
||||
3
internlm2_5-7b-chat-Q6_K.gguf
Normal file
3
internlm2_5-7b-chat-Q6_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c562773a51c707e2026fe783729735f39faaf43e635e8a5b1e7c5d76c5177551
|
||||
size 6350328640
|
||||
3
internlm2_5-7b-chat-Q8_0.gguf
Normal file
3
internlm2_5-7b-chat-Q8_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5c17cb397a27875b584a00fd77a07c7ac401f749117f02e79a7610b6cf8ba855
|
||||
size 8224240448
|
||||
3
internlm2_5-7b-chat-f16.gguf
Normal file
3
internlm2_5-7b-chat-f16.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6f4fd4abe9bccedc93a5c95e0b7a14da749a1a8d6ec672f42fea422634c0ec7e
|
||||
size 15478092608
|
||||
Reference in New Issue
Block a user