Update tiny models for MambaForCausalLM
Browse files- config.json +40 -0
- generation_config.json +10 -0
- model.safetensors +3 -0
- tokenizer.json +81 -0
- tokenizer_config.json +14 -0
config.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_function": "silu",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"MambaForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"bos_token_id": 0,
|
| 7 |
+
"conv_kernel": 4,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"eos_token_id": 0,
|
| 10 |
+
"expand": 2,
|
| 11 |
+
"gradient_checkpointing": false,
|
| 12 |
+
"hidden_act": "silu",
|
| 13 |
+
"hidden_size": 32,
|
| 14 |
+
"initializer_range": 0.1,
|
| 15 |
+
"intermediate_size": 32,
|
| 16 |
+
"is_decoder": true,
|
| 17 |
+
"layer_norm_epsilon": 1e-05,
|
| 18 |
+
"model_type": "mamba",
|
| 19 |
+
"n_positions": 512,
|
| 20 |
+
"num_hidden_layers": 2,
|
| 21 |
+
"pad_token_id": 1,
|
| 22 |
+
"rescale_prenorm_residual": false,
|
| 23 |
+
"residual_in_fp32": true,
|
| 24 |
+
"state_size": 16,
|
| 25 |
+
"tie_word_embeddings": true,
|
| 26 |
+
"time_step_floor": 0.0001,
|
| 27 |
+
"time_step_init_scheme": "random",
|
| 28 |
+
"time_step_max": 0.1,
|
| 29 |
+
"time_step_min": 0.001,
|
| 30 |
+
"time_step_rank": 2,
|
| 31 |
+
"time_step_scale": 1.0,
|
| 32 |
+
"transformers_version": "5.16.0.dev0",
|
| 33 |
+
"type_vocab_size": 16,
|
| 34 |
+
"use_associative_scan": true,
|
| 35 |
+
"use_bias": false,
|
| 36 |
+
"use_cache": true,
|
| 37 |
+
"use_conv_bias": true,
|
| 38 |
+
"use_mambapy": false,
|
| 39 |
+
"vocab_size": 2
|
| 40 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"eos_token_id": 0,
|
| 5 |
+
"output_attentions": false,
|
| 6 |
+
"output_hidden_states": false,
|
| 7 |
+
"pad_token_id": 1,
|
| 8 |
+
"transformers_version": "5.16.0.dev0",
|
| 9 |
+
"use_cache": true
|
| 10 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c9fa728f9c3e4bb6f3812a51557a345c808635ac40af4d867a8f476f9b5d4de
|
| 3 |
+
size 42456
|
tokenizer.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"truncation": null,
|
| 4 |
+
"padding": null,
|
| 5 |
+
"added_tokens": [
|
| 6 |
+
{
|
| 7 |
+
"id": 0,
|
| 8 |
+
"content": "<|endoftext|>",
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"lstrip": false,
|
| 11 |
+
"rstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"special": true
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"id": 1,
|
| 17 |
+
"content": "<|padding|>",
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"lstrip": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"normalized": false,
|
| 22 |
+
"special": true
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"normalizer": {
|
| 26 |
+
"type": "NFC"
|
| 27 |
+
},
|
| 28 |
+
"pre_tokenizer": {
|
| 29 |
+
"type": "ByteLevel",
|
| 30 |
+
"add_prefix_space": false,
|
| 31 |
+
"trim_offsets": true,
|
| 32 |
+
"use_regex": true
|
| 33 |
+
},
|
| 34 |
+
"post_processor": {
|
| 35 |
+
"type": "TemplateProcessing",
|
| 36 |
+
"single": [
|
| 37 |
+
{
|
| 38 |
+
"Sequence": {
|
| 39 |
+
"id": "A",
|
| 40 |
+
"type_id": 0
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
],
|
| 44 |
+
"pair": [
|
| 45 |
+
{
|
| 46 |
+
"Sequence": {
|
| 47 |
+
"id": "A",
|
| 48 |
+
"type_id": 0
|
| 49 |
+
}
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"Sequence": {
|
| 53 |
+
"id": "B",
|
| 54 |
+
"type_id": 1
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
],
|
| 58 |
+
"special_tokens": {}
|
| 59 |
+
},
|
| 60 |
+
"decoder": {
|
| 61 |
+
"type": "ByteLevel",
|
| 62 |
+
"add_prefix_space": true,
|
| 63 |
+
"trim_offsets": true,
|
| 64 |
+
"use_regex": true
|
| 65 |
+
},
|
| 66 |
+
"model": {
|
| 67 |
+
"type": "BPE",
|
| 68 |
+
"dropout": null,
|
| 69 |
+
"unk_token": null,
|
| 70 |
+
"continuing_subword_prefix": "",
|
| 71 |
+
"end_of_word_suffix": "",
|
| 72 |
+
"fuse_unk": false,
|
| 73 |
+
"byte_fallback": false,
|
| 74 |
+
"ignore_merges": false,
|
| 75 |
+
"vocab": {
|
| 76 |
+
"<|endoftext|>": 0,
|
| 77 |
+
"<|padding|>": 1
|
| 78 |
+
},
|
| 79 |
+
"merges": []
|
| 80 |
+
}
|
| 81 |
+
}
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<|endoftext|>",
|
| 5 |
+
"eos_token": "<|endoftext|>",
|
| 6 |
+
"errors": "replace",
|
| 7 |
+
"is_local": true,
|
| 8 |
+
"local_files_only": false,
|
| 9 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 10 |
+
"pad_token": "<|padding|>",
|
| 11 |
+
"tokenizer_class": "GPTNeoXTokenizer",
|
| 12 |
+
"trim_offsets": true,
|
| 13 |
+
"unk_token": "<|endoftext|>"
|
| 14 |
+
}
|