Commit
•
212e8c9
1
Parent(s):
0c40081
Upload folder using huggingface_hub
Browse files- README.md +59 -0
- config.json +30 -0
- mergekit_config.yml +15 -0
- output-00001-of-00004.safetensors +3 -0
- output-00002-of-00004.safetensors +3 -0
- output-00003-of-00004.safetensors +3 -0
- output-00004-of-00004.safetensors +3 -0
- special_tokens_map.json +23 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +42 -0
README.md
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: []
|
3 |
+
tags:
|
4 |
+
- mergekit
|
5 |
+
- merge
|
6 |
+
|
7 |
+
---
|
8 |
+
|
9 |
+
Quantized using 200 samples of 8192 tokens from an RP-oriented [PIPPA](https://huggingface.co/datasets/royallab/PIPPA-cleaned) dataset. For purposes other than RP, use quantizations done on a more general dataset.
|
10 |
+
|
11 |
+
Requires ExllamaV2 version 0.0.11 and up.
|
12 |
+
|
13 |
+
Original model link: [notstoic/Nous-Hermes-2-Mixtruct-v0.1-8x7B-DPO-DARE_TIES](https://huggingface.co/notstoic/Nous-Hermes-2-Mixtruct-v0.1-8x7B-DPO-DARE_TIES)
|
14 |
+
|
15 |
+
Original model README below.
|
16 |
+
|
17 |
+
***
|
18 |
+
|
19 |
+
# Nous-Hermes-2-Mixtruct-v0.1-8x7B-DPO-DARE_TIES
|
20 |
+
|
21 |
+
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
22 |
+
|
23 |
+
## Merge Details
|
24 |
+
|
25 |
+
An experimental merge.
|
26 |
+
|
27 |
+
Prompt format: ChatML or Mixtral-8x7B-Instruct-v0.1
|
28 |
+
|
29 |
+
### Merge Method
|
30 |
+
|
31 |
+
This model was merged using the [DARE](https://arxiv.org/abs/2311.03099) [TIES](https://arxiv.org/abs/2306.01708) merge method using ./models/Mixtral-8x7B-v0.1 as a base.
|
32 |
+
|
33 |
+
### Models Merged
|
34 |
+
|
35 |
+
The following models were included in the merge:
|
36 |
+
* [Mixtral-8x7B-Instruct-v0.1](https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1)
|
37 |
+
* [Nous-Hermes-2-Mixtral-8x7B-DPO](https://huggingface.co/NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO)
|
38 |
+
|
39 |
+
### Configuration
|
40 |
+
|
41 |
+
The following YAML configuration was used to produce this model:
|
42 |
+
|
43 |
+
```yaml
|
44 |
+
models:
|
45 |
+
- model: ./models/Mixtral-8x7B-Instruct-v0.1
|
46 |
+
parameters:
|
47 |
+
density: 0.5
|
48 |
+
weight: 1.0
|
49 |
+
- model: ./models/Nous-Hermes-2-Mixtral-8x7B-DPO
|
50 |
+
parameters:
|
51 |
+
density: 0.5
|
52 |
+
weight: 0.5
|
53 |
+
merge_method: dare_ties
|
54 |
+
base_model: ./models/Mixtral-8x7B-v0.1
|
55 |
+
parameters:
|
56 |
+
#normalize: false
|
57 |
+
#int8_mask: true
|
58 |
+
dtype: bfloat16
|
59 |
+
```
|
config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "./models/Mixtral-8x7B-v0.1",
|
3 |
+
"architectures": [
|
4 |
+
"MixtralForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 1,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"hidden_act": "silu",
|
10 |
+
"hidden_size": 4096,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 14336,
|
13 |
+
"max_position_embeddings": 32768,
|
14 |
+
"model_type": "mixtral",
|
15 |
+
"num_attention_heads": 32,
|
16 |
+
"num_experts_per_tok": 2,
|
17 |
+
"num_hidden_layers": 32,
|
18 |
+
"num_key_value_heads": 8,
|
19 |
+
"num_local_experts": 8,
|
20 |
+
"output_router_logits": false,
|
21 |
+
"rms_norm_eps": 1e-05,
|
22 |
+
"rope_theta": 1000000.0,
|
23 |
+
"router_aux_loss_coef": 0.02,
|
24 |
+
"sliding_window": null,
|
25 |
+
"tie_word_embeddings": false,
|
26 |
+
"torch_dtype": "bfloat16",
|
27 |
+
"transformers_version": "4.36.2",
|
28 |
+
"use_cache": true,
|
29 |
+
"vocab_size": 32000
|
30 |
+
}
|
mergekit_config.yml
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
models:
|
2 |
+
- model: ./models/Mixtral-8x7B-Instruct-v0.1
|
3 |
+
parameters:
|
4 |
+
density: 0.5
|
5 |
+
weight: 1.0
|
6 |
+
- model: ./models/Nous-Hermes-2-Mixtral-8x7B-DPO
|
7 |
+
parameters:
|
8 |
+
density: 0.5
|
9 |
+
weight: 0.5
|
10 |
+
merge_method: dare_ties
|
11 |
+
base_model: ./models/Mixtral-8x7B-v0.1
|
12 |
+
parameters:
|
13 |
+
#normalize: false
|
14 |
+
#int8_mask: true
|
15 |
+
dtype: bfloat16
|
output-00001-of-00004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0b8542f1a4c5a51cd9a4fc47460ad4fa422464b7b8ed632359f1b7ccf1c97ff9
|
3 |
+
size 8569572792
|
output-00002-of-00004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a5c23414151cd3f0ed2f64c8c43049ba063422575dce69be32e8c06ed68d767c
|
3 |
+
size 8590094464
|
output-00003-of-00004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f9aa57ae48d52f9dbe1a654e94ba46fc0a814013a1a7f20af6f1ceea9ca967b3
|
3 |
+
size 8580775624
|
output-00004-of-00004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:42c31beb2c633632e6951d557637ee468e5be1de8a8b06c53135d26e11da10f0
|
3 |
+
size 3674523552
|
special_tokens_map.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"unk_token": {
|
17 |
+
"content": "<unk>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
}
|
23 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
|
3 |
+
size 493443
|
tokenizer_config.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"0": {
|
6 |
+
"content": "<unk>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<s>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "</s>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
}
|
29 |
+
},
|
30 |
+
"additional_special_tokens": [],
|
31 |
+
"bos_token": "<s>",
|
32 |
+
"clean_up_tokenization_spaces": false,
|
33 |
+
"eos_token": "</s>",
|
34 |
+
"legacy": true,
|
35 |
+
"model_max_length": 1000000000000000019884624838656,
|
36 |
+
"pad_token": null,
|
37 |
+
"sp_model_kwargs": {},
|
38 |
+
"spaces_between_special_tokens": false,
|
39 |
+
"tokenizer_class": "LlamaTokenizer",
|
40 |
+
"unk_token": "<unk>",
|
41 |
+
"use_default_system_prompt": false
|
42 |
+
}
|