初始化项目,由ModelHub XC社区提供模型
Model: second-state/Samantha-1.2-Mistral-7B-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
|
||||
75
README.md
Normal file
75
README.md
Normal file
@@ -0,0 +1,75 @@
|
||||
---
|
||||
base_model: ehartford/samantha-1.2-mistral-7b
|
||||
inference: false
|
||||
license: apache-2.0
|
||||
model_creator: Eric Hartford
|
||||
model_name: Samantha 1.2 Mistral 7B
|
||||
model_type: mistral
|
||||
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 -->
|
||||
|
||||
# Samantha-1.2-Mistral-7B-GGUF
|
||||
|
||||
## Original Model
|
||||
|
||||
[ehartford/samantha-1.2-mistral-7b](https://huggingface.co/cognitivecomputations/samantha-1.2-mistral-7b)
|
||||
|
||||
## Run with LlamaEdge
|
||||
|
||||
- LlamaEdge version: [v0.2.8](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.2.8) 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
|
||||
```
|
||||
|
||||
- Reverse prompt: `<|im_end|>`
|
||||
|
||||
- Context size: `4096`
|
||||
|
||||
- Run as LlamaEdge service
|
||||
|
||||
```bash
|
||||
wasmedge --dir .:. --nn-preload default:GGML:AUTO:samantha-1.2-mistral-7b-Q5_K_M.gguf llama-api-server.wasm -p chatml -r '<|im_end|>'
|
||||
```
|
||||
|
||||
- Run as LlamaEdge command app
|
||||
|
||||
```bash
|
||||
wasmedge --dir .:. --nn-preload default:GGML:AUTO:samantha-1.2-mistral-7b-Q5_K_M.gguf llama-chat.wasm -p chatml -r '<|im_end|>'
|
||||
```
|
||||
|
||||
## Quantized GGUF Models
|
||||
|
||||
| Name | Quant method | Bits | Size | Use case |
|
||||
| ---- | ---- | ---- | ---- | ----- |
|
||||
| [samantha-1.2-mistral-7b-Q2_K.gguf](https://huggingface.co/second-state/Samantha-1.2-Mistral-7B-GGUF/blob/main/samantha-1.2-mistral-7b-Q2_K.gguf) | Q2_K | 2 | 2.72 GB| smallest, significant quality loss - not recommended for most purposes |
|
||||
| [samantha-1.2-mistral-7b-Q3_K_L.gguf](https://huggingface.co/second-state/Samantha-1.2-Mistral-7B-GGUF/blob/main/samantha-1.2-mistral-7b-Q3_K_L.gguf) | Q3_K_L | 3 | 3.82 GB| small, substantial quality loss |
|
||||
| [samantha-1.2-mistral-7b-Q3_K_M.gguf](https://huggingface.co/second-state/Samantha-1.2-Mistral-7B-GGUF/blob/main/samantha-1.2-mistral-7b-Q3_K_M.gguf) | Q3_K_M | 3 | 3.52 GB| very small, high quality loss |
|
||||
| [samantha-1.2-mistral-7b-Q3_K_S.gguf](https://huggingface.co/second-state/Samantha-1.2-Mistral-7B-GGUF/blob/main/samantha-1.2-mistral-7b-Q3_K_S.gguf) | Q3_K_S | 3 | 3.16 GB| very small, high quality loss |
|
||||
| [samantha-1.2-mistral-7b-Q4_0.gguf](https://huggingface.co/second-state/Samantha-1.2-Mistral-7B-GGUF/blob/main/samantha-1.2-mistral-7b-Q4_0.gguf) | Q4_0 | 4 | 4.11 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
|
||||
| [samantha-1.2-mistral-7b-Q4_K_M.gguf](https://huggingface.co/second-state/Samantha-1.2-Mistral-7B-GGUF/blob/main/samantha-1.2-mistral-7b-Q4_K_M.gguf) | Q4_K_M | 4 | 4.37 GB| medium, balanced quality - recommended |
|
||||
| [samantha-1.2-mistral-7b-Q4_K_S.gguf](https://huggingface.co/second-state/Samantha-1.2-Mistral-7B-GGUF/blob/main/samantha-1.2-mistral-7b-Q4_K_S.gguf) | Q4_K_S | 4 | 4.14 GB| small, greater quality loss |
|
||||
| [samantha-1.2-mistral-7b-Q5_0.gguf](https://huggingface.co/second-state/Samantha-1.2-Mistral-7B-GGUF/blob/main/samantha-1.2-mistral-7b-Q5_0.gguf) | Q5_0 | 5 | 5.00 GB| legacy; medium, balanced quality - prefer using Q4_K_M |
|
||||
| [samantha-1.2-mistral-7b-Q5_K_M.gguf](https://huggingface.co/second-state/Samantha-1.2-Mistral-7B-GGUF/blob/main/samantha-1.2-mistral-7b-Q5_K_M.gguf) | Q5_K_M | 5 | 5.13 GB| large, very low quality loss - recommended |
|
||||
| [samantha-1.2-mistral-7b-Q5_K_S.gguf](https://huggingface.co/second-state/Samantha-1.2-Mistral-7B-GGUF/blob/main/samantha-1.2-mistral-7b-Q5_K_S.gguf) | Q5_K_S | 5 | 5.00 GB| large, low quality loss - recommended |
|
||||
| [samantha-1.2-mistral-7b-Q6_K.gguf](https://huggingface.co/second-state/Samantha-1.2-Mistral-7B-GGUF/blob/main/samantha-1.2-mistral-7b-Q6_K.gguf) | Q6_K | 6 | 5.94 GB| very large, extremely low quality loss |
|
||||
| [samantha-1.2-mistral-7b-Q8_0.gguf](https://huggingface.co/second-state/Samantha-1.2-Mistral-7B-GGUF/blob/main/samantha-1.2-mistral-7b-Q8_0.gguf) | Q8_0 | 8 | 7.70 GB| very large, extremely low quality loss - not recommended |
|
||||
25
config.json
Normal file
25
config.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"_name_or_path": "mistralai/Mistral-7B-v0.1",
|
||||
"architectures": [
|
||||
"MistralForCausalLM"
|
||||
],
|
||||
"bos_token_id": 1,
|
||||
"eos_token_id": 32000,
|
||||
"hidden_act": "silu",
|
||||
"hidden_size": 4096,
|
||||
"initializer_range": 0.02,
|
||||
"intermediate_size": 14336,
|
||||
"max_position_embeddings": 32768,
|
||||
"model_type": "mistral",
|
||||
"num_attention_heads": 32,
|
||||
"num_hidden_layers": 32,
|
||||
"num_key_value_heads": 8,
|
||||
"rms_norm_eps": 1e-05,
|
||||
"rope_theta": 10000.0,
|
||||
"sliding_window": 4096,
|
||||
"tie_word_embeddings": false,
|
||||
"torch_dtype": "bfloat16",
|
||||
"transformers_version": "4.34.0.dev0",
|
||||
"use_cache": true,
|
||||
"vocab_size": 32002
|
||||
}
|
||||
1
configuration.json
Normal file
1
configuration.json
Normal file
@@ -0,0 +1 @@
|
||||
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}
|
||||
3
samantha-1.2-mistral-7b-Q2_K.gguf
Normal file
3
samantha-1.2-mistral-7b-Q2_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d8191d494afa15a99672d0d14cb3b53c5d2727e4e7eaf7621e20f2dc2c58baaa
|
||||
size 2719251680
|
||||
3
samantha-1.2-mistral-7b-Q3_K_L.gguf
Normal file
3
samantha-1.2-mistral-7b-Q3_K_L.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cef4e477dfdc261aed82932f709db302e944bb3be6ecc9ae3ca21130cccddcdd
|
||||
size 3822034976
|
||||
3
samantha-1.2-mistral-7b-Q3_K_M.gguf
Normal file
3
samantha-1.2-mistral-7b-Q3_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:322d875bcf238d8ff5f80699ae5f3e7a4e938e975c0c990d4d145b7e18fe27e1
|
||||
size 3518996512
|
||||
3
samantha-1.2-mistral-7b-Q3_K_S.gguf
Normal file
3
samantha-1.2-mistral-7b-Q3_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7ca13f0277fac19b876c91fc5e9b743b3013e1c286f8d2825d1ff289327e329e
|
||||
size 3164577824
|
||||
3
samantha-1.2-mistral-7b-Q4_0.gguf
Normal file
3
samantha-1.2-mistral-7b-Q4_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9c2051bc234609755cd277cd153aa600effe40fb5cc3453c0408d0a4d6353009
|
||||
size 4108928096
|
||||
3
samantha-1.2-mistral-7b-Q4_K_M.gguf
Normal file
3
samantha-1.2-mistral-7b-Q4_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6bcf859610d78da9a95901d5a488e576679a64f29ba06326ebc43ead027430a4
|
||||
size 4368450656
|
||||
3
samantha-1.2-mistral-7b-Q4_K_S.gguf
Normal file
3
samantha-1.2-mistral-7b-Q4_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d7413e77d40fda64c10a369cf50b3054c416ac1da23c4725d2fab4c4d9c5078b
|
||||
size 4140385376
|
||||
3
samantha-1.2-mistral-7b-Q5_0.gguf
Normal file
3
samantha-1.2-mistral-7b-Q5_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5f7a2a2290b8bf1879408c2c94027f899e71f9e4848d38d5c4c217464c989a64
|
||||
size 4997728352
|
||||
3
samantha-1.2-mistral-7b-Q5_K_M.gguf
Normal file
3
samantha-1.2-mistral-7b-Q5_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1051ff70a76561776427c22fe022f8984166bdeca82a1c0c2edcd6fa6d2c5dee
|
||||
size 5131421792
|
||||
3
samantha-1.2-mistral-7b-Q5_K_S.gguf
Normal file
3
samantha-1.2-mistral-7b-Q5_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:444e1e8e9b2bb37460dd4148b1db1666d8fe562da07877d697b12d98bda9554f
|
||||
size 4997728352
|
||||
3
samantha-1.2-mistral-7b-Q6_K.gguf
Normal file
3
samantha-1.2-mistral-7b-Q6_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:864c0ce6e0a6cf525025d265b804a37b2b33474c944528894339ece9441122dc
|
||||
size 5942078624
|
||||
3
samantha-1.2-mistral-7b-Q8_0.gguf
Normal file
3
samantha-1.2-mistral-7b-Q8_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d219f7f729a4d2812793e1c81c5afec03384033d894ecbe62fff616195de5622
|
||||
size 7695875104
|
||||
Reference in New Issue
Block a user