Upload folder using huggingface_hub
Browse files- README.md +40 -0
- config.json +42 -0
- mergekit_config.yml +10 -0
- model-00001-of-00004.safetensors +3 -0
- model-00002-of-00004.safetensors +3 -0
- model-00003-of-00004.safetensors +3 -0
- model-00004-of-00004.safetensors +3 -0
- model.safetensors.index.json +1 -0
- special_tokens_map.json +36 -0
- tokenizer.json +0 -0
- tokenizer_config.json +135 -0
README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- tiiuae/falcon-11B
|
| 4 |
+
library_name: transformers
|
| 5 |
+
tags:
|
| 6 |
+
- mergekit
|
| 7 |
+
- merge
|
| 8 |
+
|
| 9 |
+
---
|
| 10 |
+
# merge
|
| 11 |
+
|
| 12 |
+
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 13 |
+
|
| 14 |
+
## Merge Details
|
| 15 |
+
### Merge Method
|
| 16 |
+
|
| 17 |
+
This model was merged using the passthrough merge method.
|
| 18 |
+
|
| 19 |
+
### Models Merged
|
| 20 |
+
|
| 21 |
+
The following models were included in the merge:
|
| 22 |
+
* [tiiuae/falcon-11B](https://huggingface.co/tiiuae/falcon-11B)
|
| 23 |
+
|
| 24 |
+
### Configuration
|
| 25 |
+
|
| 26 |
+
The following YAML configuration was used to produce this model:
|
| 27 |
+
|
| 28 |
+
```yaml
|
| 29 |
+
|
| 30 |
+
slices:
|
| 31 |
+
- sources:
|
| 32 |
+
- model: tiiuae/falcon-11B
|
| 33 |
+
layer_range: [0, 6]
|
| 34 |
+
- sources:
|
| 35 |
+
- model: tiiuae/falcon-11B
|
| 36 |
+
layer_range: [58, 59]
|
| 37 |
+
merge_method: passthrough
|
| 38 |
+
dtype: bfloat16
|
| 39 |
+
|
| 40 |
+
```
|
config.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "tiiuae/falcon-11B",
|
| 3 |
+
"activation": "gelu",
|
| 4 |
+
"alibi": false,
|
| 5 |
+
"architectures": [
|
| 6 |
+
"FalconForCausalLM"
|
| 7 |
+
],
|
| 8 |
+
"attention_dropout": 0.0,
|
| 9 |
+
"auto_map": {
|
| 10 |
+
"AutoConfig": "tiiuae/falcon-11B--configuration_falcon.FalconConfig",
|
| 11 |
+
"AutoModel": "tiiuae/falcon-11B--modeling_falcon.FalconModel",
|
| 12 |
+
"AutoModelForCausalLM": "tiiuae/falcon-11B--modeling_falcon.FalconForCausalLM",
|
| 13 |
+
"AutoModelForQuestionAnswering": "tiiuae/falcon-11B--modeling_falcon.FalconForQuestionAnswering",
|
| 14 |
+
"AutoModelForSequenceClassification": "tiiuae/falcon-11B--modeling_falcon.FalconForSequenceClassification",
|
| 15 |
+
"AutoModelForTokenClassification": "tiiuae/falcon-11B--modeling_falcon.FalconForTokenClassification"
|
| 16 |
+
},
|
| 17 |
+
"bias": false,
|
| 18 |
+
"bos_token_id": 11,
|
| 19 |
+
"eos_token_id": 11,
|
| 20 |
+
"ff_factor": 4,
|
| 21 |
+
"ffn_hidden_size": 16384,
|
| 22 |
+
"hidden_dropout": 0.0,
|
| 23 |
+
"hidden_size": 4096,
|
| 24 |
+
"initializer_range": 0.02,
|
| 25 |
+
"layer_norm_epsilon": 1e-05,
|
| 26 |
+
"max_position_embeddings": 8192,
|
| 27 |
+
"model_type": "falcon",
|
| 28 |
+
"multi_query": true,
|
| 29 |
+
"new_decoder_architecture": true,
|
| 30 |
+
"num_attention_heads": 32,
|
| 31 |
+
"num_hidden_layers": 7,
|
| 32 |
+
"num_kv_heads": 8,
|
| 33 |
+
"num_ln_in_parallel_attn": 1,
|
| 34 |
+
"parallel_attn": true,
|
| 35 |
+
"rope_scaling": null,
|
| 36 |
+
"rope_theta": 500042.0,
|
| 37 |
+
"tie_word_embeddings": false,
|
| 38 |
+
"torch_dtype": "bfloat16",
|
| 39 |
+
"transformers_version": "4.42.3",
|
| 40 |
+
"use_cache": true,
|
| 41 |
+
"vocab_size": 65024
|
| 42 |
+
}
|
mergekit_config.yml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
slices:
|
| 3 |
+
- sources:
|
| 4 |
+
- model: tiiuae/falcon-11B
|
| 5 |
+
layer_range: [0, 6]
|
| 6 |
+
- sources:
|
| 7 |
+
- model: tiiuae/falcon-11B
|
| 8 |
+
layer_range: [58, 59]
|
| 9 |
+
merge_method: passthrough
|
| 10 |
+
dtype: bfloat16
|
model-00001-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be473743446f6310af51e0c376f85362497f956b299ae82088be850871ebe058
|
| 3 |
+
size 885031960
|
model-00002-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf408a3792fe648e44d4df0c767620f901a481d742532fbfa4aab6df22d6cdb2
|
| 3 |
+
size 973112976
|
model-00003-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7dd333b32dbd2f99f2ca9c75d252ed17f7cc02fee45ff9607343b97f4148bd5c
|
| 3 |
+
size 922798056
|
model-00004-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0b77bd1332bf0b517ca18fc9a7bd9413d765ed6ae70554ed0cb739470ae8b10
|
| 3 |
+
size 750797504
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"metadata": {"mergekit_version": "0.0.4.4", "total_size": 3531735040}, "weight_map": {"lm_head.weight": "model-00001-of-00004.safetensors", "transformer.h.0.input_layernorm.bias": "model-00001-of-00004.safetensors", "transformer.h.0.input_layernorm.weight": "model-00001-of-00004.safetensors", "transformer.h.0.mlp.dense_4h_to_h.weight": "model-00001-of-00004.safetensors", "transformer.h.0.mlp.dense_h_to_4h.weight": "model-00001-of-00004.safetensors", "transformer.h.0.self_attention.dense.weight": "model-00001-of-00004.safetensors", "transformer.h.0.self_attention.query_key_value.weight": "model-00001-of-00004.safetensors", "transformer.h.1.input_layernorm.bias": "model-00001-of-00004.safetensors", "transformer.h.1.input_layernorm.weight": "model-00001-of-00004.safetensors", "transformer.h.1.mlp.dense_4h_to_h.weight": "model-00002-of-00004.safetensors", "transformer.h.1.mlp.dense_h_to_4h.weight": "model-00002-of-00004.safetensors", "transformer.h.1.self_attention.dense.weight": "model-00002-of-00004.safetensors", "transformer.h.1.self_attention.query_key_value.weight": "model-00002-of-00004.safetensors", "transformer.h.2.input_layernorm.bias": "model-00002-of-00004.safetensors", "transformer.h.2.input_layernorm.weight": "model-00002-of-00004.safetensors", "transformer.h.2.mlp.dense_4h_to_h.weight": "model-00002-of-00004.safetensors", "transformer.h.2.mlp.dense_h_to_4h.weight": "model-00002-of-00004.safetensors", "transformer.h.2.self_attention.dense.weight": "model-00002-of-00004.safetensors", "transformer.h.2.self_attention.query_key_value.weight": "model-00002-of-00004.safetensors", "transformer.h.3.input_layernorm.bias": "model-00002-of-00004.safetensors", "transformer.h.3.input_layernorm.weight": "model-00002-of-00004.safetensors", "transformer.h.3.mlp.dense_4h_to_h.weight": "model-00002-of-00004.safetensors", "transformer.h.3.mlp.dense_h_to_4h.weight": "model-00002-of-00004.safetensors", "transformer.h.3.self_attention.dense.weight": "model-00003-of-00004.safetensors", "transformer.h.3.self_attention.query_key_value.weight": "model-00003-of-00004.safetensors", "transformer.h.4.input_layernorm.bias": "model-00003-of-00004.safetensors", "transformer.h.4.input_layernorm.weight": "model-00003-of-00004.safetensors", "transformer.h.4.mlp.dense_4h_to_h.weight": "model-00003-of-00004.safetensors", "transformer.h.4.mlp.dense_h_to_4h.weight": "model-00003-of-00004.safetensors", "transformer.h.4.self_attention.dense.weight": "model-00003-of-00004.safetensors", "transformer.h.4.self_attention.query_key_value.weight": "model-00003-of-00004.safetensors", "transformer.h.5.input_layernorm.bias": "model-00003-of-00004.safetensors", "transformer.h.5.input_layernorm.weight": "model-00003-of-00004.safetensors", "transformer.h.5.mlp.dense_4h_to_h.weight": "model-00003-of-00004.safetensors", "transformer.h.5.mlp.dense_h_to_4h.weight": "model-00003-of-00004.safetensors", "transformer.h.5.self_attention.dense.weight": "model-00003-of-00004.safetensors", "transformer.h.5.self_attention.query_key_value.weight": "model-00003-of-00004.safetensors", "transformer.h.6.input_layernorm.bias": "model-00003-of-00004.safetensors", "transformer.h.6.input_layernorm.weight": "model-00003-of-00004.safetensors", "transformer.h.6.mlp.dense_4h_to_h.weight": "model-00003-of-00004.safetensors", "transformer.h.6.mlp.dense_h_to_4h.weight": "model-00004-of-00004.safetensors", "transformer.h.6.self_attention.dense.weight": "model-00004-of-00004.safetensors", "transformer.h.6.self_attention.query_key_value.weight": "model-00004-of-00004.safetensors", "transformer.ln_f.bias": "model-00004-of-00004.safetensors", "transformer.ln_f.weight": "model-00004-of-00004.safetensors", "transformer.word_embeddings.weight": "model-00004-of-00004.safetensors"}}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
">>TITLE<<",
|
| 4 |
+
">>ABSTRACT<<",
|
| 5 |
+
">>INTRODUCTION<<",
|
| 6 |
+
">>SUMMARY<<",
|
| 7 |
+
">>COMMENT<<",
|
| 8 |
+
">>ANSWER<<",
|
| 9 |
+
">>QUESTION<<",
|
| 10 |
+
">>DOMAIN<<",
|
| 11 |
+
">>PREFIX<<",
|
| 12 |
+
">>SUFFIX<<",
|
| 13 |
+
">>MIDDLE<<"
|
| 14 |
+
],
|
| 15 |
+
"bos_token": {
|
| 16 |
+
"content": ">>",
|
| 17 |
+
"lstrip": false,
|
| 18 |
+
"normalized": false,
|
| 19 |
+
"rstrip": false,
|
| 20 |
+
"single_word": false
|
| 21 |
+
},
|
| 22 |
+
"eos_token": {
|
| 23 |
+
"content": "<|endoftext|>",
|
| 24 |
+
"lstrip": false,
|
| 25 |
+
"normalized": false,
|
| 26 |
+
"rstrip": false,
|
| 27 |
+
"single_word": false
|
| 28 |
+
},
|
| 29 |
+
"pad_token": {
|
| 30 |
+
"content": "<|endoftext|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false
|
| 35 |
+
}
|
| 36 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"0": {
|
| 5 |
+
"content": ">>TITLE<<",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": false,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"1": {
|
| 13 |
+
"content": ">>ABSTRACT<<",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": false,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"2": {
|
| 21 |
+
"content": ">>INTRODUCTION<<",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"3": {
|
| 29 |
+
"content": ">>SUMMARY<<",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"4": {
|
| 37 |
+
"content": ">>COMMENT<<",
|
| 38 |
+
"lstrip": false,
|
| 39 |
+
"normalized": false,
|
| 40 |
+
"rstrip": false,
|
| 41 |
+
"single_word": false,
|
| 42 |
+
"special": true
|
| 43 |
+
},
|
| 44 |
+
"5": {
|
| 45 |
+
"content": ">>ANSWER<<",
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"normalized": false,
|
| 48 |
+
"rstrip": false,
|
| 49 |
+
"single_word": false,
|
| 50 |
+
"special": true
|
| 51 |
+
},
|
| 52 |
+
"6": {
|
| 53 |
+
"content": ">>QUESTION<<",
|
| 54 |
+
"lstrip": false,
|
| 55 |
+
"normalized": false,
|
| 56 |
+
"rstrip": false,
|
| 57 |
+
"single_word": false,
|
| 58 |
+
"special": true
|
| 59 |
+
},
|
| 60 |
+
"7": {
|
| 61 |
+
"content": ">>DOMAIN<<",
|
| 62 |
+
"lstrip": false,
|
| 63 |
+
"normalized": false,
|
| 64 |
+
"rstrip": false,
|
| 65 |
+
"single_word": false,
|
| 66 |
+
"special": true
|
| 67 |
+
},
|
| 68 |
+
"8": {
|
| 69 |
+
"content": ">>PREFIX<<",
|
| 70 |
+
"lstrip": false,
|
| 71 |
+
"normalized": false,
|
| 72 |
+
"rstrip": false,
|
| 73 |
+
"single_word": false,
|
| 74 |
+
"special": true
|
| 75 |
+
},
|
| 76 |
+
"9": {
|
| 77 |
+
"content": ">>SUFFIX<<",
|
| 78 |
+
"lstrip": false,
|
| 79 |
+
"normalized": false,
|
| 80 |
+
"rstrip": false,
|
| 81 |
+
"single_word": false,
|
| 82 |
+
"special": true
|
| 83 |
+
},
|
| 84 |
+
"10": {
|
| 85 |
+
"content": ">>MIDDLE<<",
|
| 86 |
+
"lstrip": false,
|
| 87 |
+
"normalized": false,
|
| 88 |
+
"rstrip": false,
|
| 89 |
+
"single_word": false,
|
| 90 |
+
"special": true
|
| 91 |
+
},
|
| 92 |
+
"11": {
|
| 93 |
+
"content": "<|endoftext|>",
|
| 94 |
+
"lstrip": false,
|
| 95 |
+
"normalized": false,
|
| 96 |
+
"rstrip": false,
|
| 97 |
+
"single_word": false,
|
| 98 |
+
"special": true
|
| 99 |
+
},
|
| 100 |
+
"500": {
|
| 101 |
+
"content": ">>",
|
| 102 |
+
"lstrip": false,
|
| 103 |
+
"normalized": false,
|
| 104 |
+
"rstrip": false,
|
| 105 |
+
"single_word": false,
|
| 106 |
+
"special": true
|
| 107 |
+
}
|
| 108 |
+
},
|
| 109 |
+
"additional_special_tokens": [
|
| 110 |
+
">>TITLE<<",
|
| 111 |
+
">>ABSTRACT<<",
|
| 112 |
+
">>INTRODUCTION<<",
|
| 113 |
+
">>SUMMARY<<",
|
| 114 |
+
">>COMMENT<<",
|
| 115 |
+
">>ANSWER<<",
|
| 116 |
+
">>QUESTION<<",
|
| 117 |
+
">>DOMAIN<<",
|
| 118 |
+
">>PREFIX<<",
|
| 119 |
+
">>SUFFIX<<",
|
| 120 |
+
">>MIDDLE<<"
|
| 121 |
+
],
|
| 122 |
+
"bos_token": ">>",
|
| 123 |
+
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ 'User: \n' + message['content'] }}\n{% elif message['role'] == 'system' %}\n{{ 'System: ' + message['content'] }}\n{% elif message['role'] == 'assistant' %}\n{{ 'Falcon:\n' + message['content']}}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ 'Falcon:' }}\n{% endif %}\n{% endfor %}",
|
| 124 |
+
"clean_up_tokenization_spaces": true,
|
| 125 |
+
"device_map": "cuda:2",
|
| 126 |
+
"eos_token": "<|endoftext|>",
|
| 127 |
+
"model_input_names": [
|
| 128 |
+
"input_ids",
|
| 129 |
+
"attention_mask"
|
| 130 |
+
],
|
| 131 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 132 |
+
"pad_token": "<|endoftext|>",
|
| 133 |
+
"padding_side": "left",
|
| 134 |
+
"tokenizer_class": "PreTrainedTokenizerFast"
|
| 135 |
+
}
|