Fischerboot
commited on
Commit
•
8dc2fc9
1
Parent(s):
eb0b15e
Upload 9 files
Browse files- README.md +144 -3
- adapter_config.json +34 -0
- adapter_model.bin +3 -0
- config.json +59 -0
- configuration_HelpingAI.py +95 -0
- special_tokens_map.json +34 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +251 -0
README.md
CHANGED
@@ -1,3 +1,144 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: UnfilteredAI/NSFW-3B
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: outputs/32r
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
15 |
+
<details><summary>See axolotl config</summary>
|
16 |
+
|
17 |
+
axolotl version: `0.4.1`
|
18 |
+
```yaml
|
19 |
+
base_model: UnfilteredAI/NSFW-3B
|
20 |
+
model_type: AutoModelForCausalLM
|
21 |
+
tokenizer_type: AutoTokenizer
|
22 |
+
|
23 |
+
load_in_8bit: false
|
24 |
+
load_in_4bit: true
|
25 |
+
strict: false
|
26 |
+
|
27 |
+
datasets:
|
28 |
+
- path: Fischerboot/freedom-rp-alpaca-shortend
|
29 |
+
type: alpaca
|
30 |
+
- path: Fischerboot/mongotom-40k-alpaca
|
31 |
+
type: alpaca
|
32 |
+
- path: TokenBender/roleplay_alpaca
|
33 |
+
type: alpaca
|
34 |
+
ds_type: parquet
|
35 |
+
dataset_prepared_path:
|
36 |
+
val_set_size: 0.05
|
37 |
+
output_dir: ./outputs/32r
|
38 |
+
|
39 |
+
adapter: qlora
|
40 |
+
lora_model_dir:
|
41 |
+
|
42 |
+
sequence_len: 4096
|
43 |
+
sample_packing: true
|
44 |
+
eval_sample_packing: false
|
45 |
+
pad_to_sequence_len: true
|
46 |
+
|
47 |
+
lora_r: 32
|
48 |
+
lora_alpha: 16
|
49 |
+
lora_dropout: 0.05
|
50 |
+
lora_target_modules:
|
51 |
+
lora_target_linear: true
|
52 |
+
lora_fan_in_fan_out:
|
53 |
+
|
54 |
+
wandb_project:
|
55 |
+
wandb_entity:
|
56 |
+
wandb_watch:
|
57 |
+
wandb_name:
|
58 |
+
wandb_log_model:
|
59 |
+
|
60 |
+
gradient_accumulation_steps: 4
|
61 |
+
micro_batch_size: 2
|
62 |
+
num_epochs: 2
|
63 |
+
optimizer: paged_adamw_32bit
|
64 |
+
lr_scheduler: cosine
|
65 |
+
learning_rate: 0.0002
|
66 |
+
|
67 |
+
train_on_inputs: false
|
68 |
+
group_by_length: false
|
69 |
+
bf16: auto
|
70 |
+
fp16:
|
71 |
+
tf32: false
|
72 |
+
|
73 |
+
gradient_checkpointing: true
|
74 |
+
early_stopping_patience:
|
75 |
+
resume_from_checkpoint:
|
76 |
+
local_rank:
|
77 |
+
logging_steps: 1
|
78 |
+
xformers_attention:
|
79 |
+
flash_attention: true
|
80 |
+
|
81 |
+
warmup_steps: 10
|
82 |
+
evals_per_epoch: 1
|
83 |
+
saves_per_epoch: 1
|
84 |
+
debug:
|
85 |
+
deepspeed:
|
86 |
+
weight_decay: 0.0
|
87 |
+
fsdp:
|
88 |
+
fsdp_config:
|
89 |
+
special_tokens:
|
90 |
+
trust_remote_code: true
|
91 |
+
```
|
92 |
+
|
93 |
+
</details><br>
|
94 |
+
|
95 |
+
# outputs/32r
|
96 |
+
|
97 |
+
This model is a fine-tuned version of [UnfilteredAI/NSFW-3B](https://huggingface.co/UnfilteredAI/NSFW-3B) on the None dataset.
|
98 |
+
It achieves the following results on the evaluation set:
|
99 |
+
- Loss: 2.1202
|
100 |
+
|
101 |
+
## Model description
|
102 |
+
|
103 |
+
More information needed
|
104 |
+
|
105 |
+
## Intended uses & limitations
|
106 |
+
|
107 |
+
More information needed
|
108 |
+
|
109 |
+
## Training and evaluation data
|
110 |
+
|
111 |
+
More information needed
|
112 |
+
|
113 |
+
## Training procedure
|
114 |
+
|
115 |
+
### Training hyperparameters
|
116 |
+
|
117 |
+
The following hyperparameters were used during training:
|
118 |
+
- learning_rate: 0.0002
|
119 |
+
- train_batch_size: 2
|
120 |
+
- eval_batch_size: 2
|
121 |
+
- seed: 42
|
122 |
+
- gradient_accumulation_steps: 4
|
123 |
+
- total_train_batch_size: 8
|
124 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
125 |
+
- lr_scheduler_type: cosine
|
126 |
+
- lr_scheduler_warmup_steps: 10
|
127 |
+
- num_epochs: 2
|
128 |
+
|
129 |
+
### Training results
|
130 |
+
|
131 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
132 |
+
|:-------------:|:------:|:----:|:---------------:|
|
133 |
+
| 8.0268 | 0.0032 | 1 | 3.2872 |
|
134 |
+
| 2.2591 | 1.0 | 314 | 2.1557 |
|
135 |
+
| 2.045 | 1.9753 | 628 | 2.1202 |
|
136 |
+
|
137 |
+
|
138 |
+
### Framework versions
|
139 |
+
|
140 |
+
- PEFT 0.11.1
|
141 |
+
- Transformers 4.42.3
|
142 |
+
- Pytorch 2.1.2+cu118
|
143 |
+
- Datasets 2.19.1
|
144 |
+
- Tokenizers 0.19.1
|
adapter_config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "UnfilteredAI/NSFW-3B",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": null,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layer_replication": null,
|
10 |
+
"layers_pattern": null,
|
11 |
+
"layers_to_transform": null,
|
12 |
+
"loftq_config": {},
|
13 |
+
"lora_alpha": 16,
|
14 |
+
"lora_dropout": 0.05,
|
15 |
+
"megatron_config": null,
|
16 |
+
"megatron_core": "megatron.core",
|
17 |
+
"modules_to_save": null,
|
18 |
+
"peft_type": "LORA",
|
19 |
+
"r": 32,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"o_proj",
|
24 |
+
"down_proj",
|
25 |
+
"v_proj",
|
26 |
+
"k_proj",
|
27 |
+
"up_proj",
|
28 |
+
"q_proj",
|
29 |
+
"gate_proj"
|
30 |
+
],
|
31 |
+
"task_type": "CAUSAL_LM",
|
32 |
+
"use_dora": false,
|
33 |
+
"use_rslora": false
|
34 |
+
}
|
adapter_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:23d16aa44ab937962d65b97e4bede592d921563c818dad5685dfa6d836dd54e5
|
3 |
+
size 100301002
|
config.json
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "UnfilteredAI/NSFW-3B",
|
3 |
+
"architectures": [
|
4 |
+
"CohereForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"auto_map": {
|
9 |
+
"AutoConfig": "configuration_HelpingAI.HelpingAIConfig",
|
10 |
+
"AutoModelForCausalLM": "UnfilteredAI/NSFW-3B--modeling_HelpingAI.HelpingAIForCausalLM"
|
11 |
+
},
|
12 |
+
"bos_token_id": 50278,
|
13 |
+
"classifier_dropout": 0.1,
|
14 |
+
"eos_token_id": 50279,
|
15 |
+
"head_dim": 256,
|
16 |
+
"hidden_act": "silu",
|
17 |
+
"hidden_activation": null,
|
18 |
+
"hidden_dropout": 0.0,
|
19 |
+
"hidden_size": 2560,
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"intermediate_size": 6912,
|
22 |
+
"layer_norm_eps": 1e-05,
|
23 |
+
"max_position_embeddings": 4096,
|
24 |
+
"model_type": "HelpingAI",
|
25 |
+
"norm_eps": 1e-05,
|
26 |
+
"num_attention_heads": 32,
|
27 |
+
"num_experts_per_tok": 2,
|
28 |
+
"num_hidden_layers": 32,
|
29 |
+
"num_key_value_heads": 32,
|
30 |
+
"num_local_experts": 8,
|
31 |
+
"output_router_logits": false,
|
32 |
+
"partial_rotary_factor": 0.25,
|
33 |
+
"quantization_config": {
|
34 |
+
"_load_in_4bit": true,
|
35 |
+
"_load_in_8bit": false,
|
36 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
37 |
+
"bnb_4bit_quant_storage": "bfloat16",
|
38 |
+
"bnb_4bit_quant_type": "nf4",
|
39 |
+
"bnb_4bit_use_double_quant": true,
|
40 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
41 |
+
"llm_int8_has_fp16_weight": false,
|
42 |
+
"llm_int8_skip_modules": null,
|
43 |
+
"llm_int8_threshold": 6.0,
|
44 |
+
"load_in_4bit": true,
|
45 |
+
"load_in_8bit": false,
|
46 |
+
"quant_method": "bitsandbytes"
|
47 |
+
},
|
48 |
+
"rms_norm_eps": 1e-06,
|
49 |
+
"rope_pct": 0.25,
|
50 |
+
"rope_scaling": null,
|
51 |
+
"rope_theta": 10000,
|
52 |
+
"router_aux_loss_coef": 0.02,
|
53 |
+
"tie_word_embeddings": false,
|
54 |
+
"torch_dtype": "float16",
|
55 |
+
"transformers_version": "4.42.3",
|
56 |
+
"use_cache": false,
|
57 |
+
"use_qkv_bias": false,
|
58 |
+
"vocab_size": 50281
|
59 |
+
}
|
configuration_HelpingAI.py
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
""" HelpingAI model configuration"""
|
2 |
+
|
3 |
+
from transformers import PretrainedConfig
|
4 |
+
from transformers.utils import logging
|
5 |
+
|
6 |
+
|
7 |
+
logger = logging.get_logger(__name__)
|
8 |
+
|
9 |
+
|
10 |
+
class HelpingAIConfig(PretrainedConfig):
|
11 |
+
model_type = "HelpingAI"
|
12 |
+
keys_to_ignore_at_inference = ["past_key_values"]
|
13 |
+
|
14 |
+
def __init__(
|
15 |
+
self,
|
16 |
+
vocab_size=50281,
|
17 |
+
hidden_size=2560,
|
18 |
+
num_hidden_layers=32,
|
19 |
+
num_attention_heads=32,
|
20 |
+
head_dim=256,
|
21 |
+
num_local_experts=8,
|
22 |
+
num_experts_per_tok=2,
|
23 |
+
intermediate_size=6912,
|
24 |
+
hidden_act="silu",
|
25 |
+
hidden_dropout=0.0,
|
26 |
+
attention_dropout=0.0,
|
27 |
+
classifier_dropout=0.1,
|
28 |
+
max_position_embeddings=4096,
|
29 |
+
initializer_range=0.02,
|
30 |
+
rms_norm_eps=1e-6,
|
31 |
+
layer_norm_eps=1e-5,
|
32 |
+
use_cache=False,
|
33 |
+
bos_token_id=50278,
|
34 |
+
eos_token_id=50279,
|
35 |
+
pad_token_id=50279,
|
36 |
+
tie_word_embeddings=False,
|
37 |
+
rope_pct=0.25,
|
38 |
+
rope_theta=10000,
|
39 |
+
partial_rotary_factor=0.25,
|
40 |
+
use_qkv_bias=False,
|
41 |
+
output_router_logits=False,
|
42 |
+
router_aux_loss_coef=0.02,
|
43 |
+
**kwargs,
|
44 |
+
):
|
45 |
+
super().__init__(bos_token_id=bos_token_id, eos_token_id=eos_token_id, **kwargs)
|
46 |
+
self.vocab_size = vocab_size
|
47 |
+
self.max_position_embeddings = max_position_embeddings
|
48 |
+
self.hidden_size = hidden_size
|
49 |
+
self.num_hidden_layers = num_hidden_layers
|
50 |
+
self.num_attention_heads = num_attention_heads
|
51 |
+
self.head_dim = head_dim
|
52 |
+
self.num_local_experts = num_local_experts
|
53 |
+
self.num_experts_per_tok = num_experts_per_tok
|
54 |
+
self.intermediate_size = intermediate_size
|
55 |
+
self.hidden_act = hidden_act
|
56 |
+
self.hidden_dropout = hidden_dropout
|
57 |
+
self.attention_dropout = attention_dropout
|
58 |
+
self.classifier_dropout = classifier_dropout
|
59 |
+
self.initializer_range = initializer_range
|
60 |
+
self.rms_norm_eps = rms_norm_eps
|
61 |
+
self.layer_norm_eps = layer_norm_eps
|
62 |
+
self.use_cache = use_cache
|
63 |
+
self.tie_word_embeddings = tie_word_embeddings
|
64 |
+
self.rope_pct = rope_pct
|
65 |
+
self.rope_theta = rope_theta
|
66 |
+
self.partial_rotary_factor = partial_rotary_factor
|
67 |
+
self.use_qkv_bias = use_qkv_bias
|
68 |
+
self.output_router_logits = output_router_logits
|
69 |
+
self.router_aux_loss_coef = router_aux_loss_coef
|
70 |
+
|
71 |
+
if self.hidden_size % self.num_attention_heads != 0:
|
72 |
+
raise ValueError(
|
73 |
+
"The hidden size is not divisble by the number of attention heads! Make sure to update them!"
|
74 |
+
)
|
75 |
+
|
76 |
+
# Copied from transformers.models.llama.configuration_llama.LlamaConfig._rope_scaling_validation
|
77 |
+
def _rope_scaling_validation(self):
|
78 |
+
"""
|
79 |
+
Validate the `rope_scaling` configuration.
|
80 |
+
"""
|
81 |
+
if self.rope_scaling is None:
|
82 |
+
return
|
83 |
+
|
84 |
+
if not isinstance(self.rope_scaling, dict) or len(self.rope_scaling) != 2:
|
85 |
+
raise ValueError(
|
86 |
+
"`rope_scaling` must be a dictionary with two fields, `type` and `factor`, " f"got {self.rope_scaling}"
|
87 |
+
)
|
88 |
+
rope_scaling_type = self.rope_scaling.get("type", None)
|
89 |
+
rope_scaling_factor = self.rope_scaling.get("factor", None)
|
90 |
+
if rope_scaling_type is None or rope_scaling_type not in ["linear", "dynamic"]:
|
91 |
+
raise ValueError(
|
92 |
+
f"`rope_scaling`'s type field must be one of ['linear', 'dynamic'], got {rope_scaling_type}"
|
93 |
+
)
|
94 |
+
if rope_scaling_factor is None or not isinstance(rope_scaling_factor, float) or rope_scaling_factor <= 1.0:
|
95 |
+
raise ValueError(f"`rope_scaling`'s factor field must be a float > 1, got {rope_scaling_factor}")
|
special_tokens_map.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|im_start|>",
|
4 |
+
"<|im_end|>"
|
5 |
+
],
|
6 |
+
"bos_token": {
|
7 |
+
"content": "<|im_start|>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false
|
12 |
+
},
|
13 |
+
"eos_token": {
|
14 |
+
"content": "<|im_end|>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
},
|
20 |
+
"pad_token": {
|
21 |
+
"content": "[PAD]",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false
|
26 |
+
},
|
27 |
+
"unk_token": {
|
28 |
+
"content": "<|endoftext|>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false
|
33 |
+
}
|
34 |
+
}
|
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:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
tokenizer_config.json
ADDED
@@ -0,0 +1,251 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": false,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"add_prefix_space": false,
|
5 |
+
"added_tokens_decoder": {
|
6 |
+
"0": {
|
7 |
+
"content": "<|endoftext|>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false,
|
12 |
+
"special": true
|
13 |
+
},
|
14 |
+
"1": {
|
15 |
+
"content": "<|padding|>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": false,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false,
|
20 |
+
"special": true
|
21 |
+
},
|
22 |
+
"50254": {
|
23 |
+
"content": " ",
|
24 |
+
"lstrip": false,
|
25 |
+
"normalized": true,
|
26 |
+
"rstrip": false,
|
27 |
+
"single_word": false,
|
28 |
+
"special": false
|
29 |
+
},
|
30 |
+
"50255": {
|
31 |
+
"content": " ",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": true,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false,
|
36 |
+
"special": false
|
37 |
+
},
|
38 |
+
"50256": {
|
39 |
+
"content": " ",
|
40 |
+
"lstrip": false,
|
41 |
+
"normalized": true,
|
42 |
+
"rstrip": false,
|
43 |
+
"single_word": false,
|
44 |
+
"special": false
|
45 |
+
},
|
46 |
+
"50257": {
|
47 |
+
"content": " ",
|
48 |
+
"lstrip": false,
|
49 |
+
"normalized": true,
|
50 |
+
"rstrip": false,
|
51 |
+
"single_word": false,
|
52 |
+
"special": false
|
53 |
+
},
|
54 |
+
"50258": {
|
55 |
+
"content": " ",
|
56 |
+
"lstrip": false,
|
57 |
+
"normalized": true,
|
58 |
+
"rstrip": false,
|
59 |
+
"single_word": false,
|
60 |
+
"special": false
|
61 |
+
},
|
62 |
+
"50259": {
|
63 |
+
"content": " ",
|
64 |
+
"lstrip": false,
|
65 |
+
"normalized": true,
|
66 |
+
"rstrip": false,
|
67 |
+
"single_word": false,
|
68 |
+
"special": false
|
69 |
+
},
|
70 |
+
"50260": {
|
71 |
+
"content": " ",
|
72 |
+
"lstrip": false,
|
73 |
+
"normalized": true,
|
74 |
+
"rstrip": false,
|
75 |
+
"single_word": false,
|
76 |
+
"special": false
|
77 |
+
},
|
78 |
+
"50261": {
|
79 |
+
"content": " ",
|
80 |
+
"lstrip": false,
|
81 |
+
"normalized": true,
|
82 |
+
"rstrip": false,
|
83 |
+
"single_word": false,
|
84 |
+
"special": false
|
85 |
+
},
|
86 |
+
"50262": {
|
87 |
+
"content": " ",
|
88 |
+
"lstrip": false,
|
89 |
+
"normalized": true,
|
90 |
+
"rstrip": false,
|
91 |
+
"single_word": false,
|
92 |
+
"special": false
|
93 |
+
},
|
94 |
+
"50263": {
|
95 |
+
"content": " ",
|
96 |
+
"lstrip": false,
|
97 |
+
"normalized": true,
|
98 |
+
"rstrip": false,
|
99 |
+
"single_word": false,
|
100 |
+
"special": false
|
101 |
+
},
|
102 |
+
"50264": {
|
103 |
+
"content": " ",
|
104 |
+
"lstrip": false,
|
105 |
+
"normalized": true,
|
106 |
+
"rstrip": false,
|
107 |
+
"single_word": false,
|
108 |
+
"special": false
|
109 |
+
},
|
110 |
+
"50265": {
|
111 |
+
"content": " ",
|
112 |
+
"lstrip": false,
|
113 |
+
"normalized": true,
|
114 |
+
"rstrip": false,
|
115 |
+
"single_word": false,
|
116 |
+
"special": false
|
117 |
+
},
|
118 |
+
"50266": {
|
119 |
+
"content": " ",
|
120 |
+
"lstrip": false,
|
121 |
+
"normalized": true,
|
122 |
+
"rstrip": false,
|
123 |
+
"single_word": false,
|
124 |
+
"special": false
|
125 |
+
},
|
126 |
+
"50267": {
|
127 |
+
"content": " ",
|
128 |
+
"lstrip": false,
|
129 |
+
"normalized": true,
|
130 |
+
"rstrip": false,
|
131 |
+
"single_word": false,
|
132 |
+
"special": false
|
133 |
+
},
|
134 |
+
"50268": {
|
135 |
+
"content": " ",
|
136 |
+
"lstrip": false,
|
137 |
+
"normalized": true,
|
138 |
+
"rstrip": false,
|
139 |
+
"single_word": false,
|
140 |
+
"special": false
|
141 |
+
},
|
142 |
+
"50269": {
|
143 |
+
"content": " ",
|
144 |
+
"lstrip": false,
|
145 |
+
"normalized": true,
|
146 |
+
"rstrip": false,
|
147 |
+
"single_word": false,
|
148 |
+
"special": false
|
149 |
+
},
|
150 |
+
"50270": {
|
151 |
+
"content": " ",
|
152 |
+
"lstrip": false,
|
153 |
+
"normalized": true,
|
154 |
+
"rstrip": false,
|
155 |
+
"single_word": false,
|
156 |
+
"special": false
|
157 |
+
},
|
158 |
+
"50271": {
|
159 |
+
"content": " ",
|
160 |
+
"lstrip": false,
|
161 |
+
"normalized": true,
|
162 |
+
"rstrip": false,
|
163 |
+
"single_word": false,
|
164 |
+
"special": false
|
165 |
+
},
|
166 |
+
"50272": {
|
167 |
+
"content": " ",
|
168 |
+
"lstrip": false,
|
169 |
+
"normalized": true,
|
170 |
+
"rstrip": false,
|
171 |
+
"single_word": false,
|
172 |
+
"special": false
|
173 |
+
},
|
174 |
+
"50273": {
|
175 |
+
"content": " ",
|
176 |
+
"lstrip": false,
|
177 |
+
"normalized": true,
|
178 |
+
"rstrip": false,
|
179 |
+
"single_word": false,
|
180 |
+
"special": false
|
181 |
+
},
|
182 |
+
"50274": {
|
183 |
+
"content": " ",
|
184 |
+
"lstrip": false,
|
185 |
+
"normalized": true,
|
186 |
+
"rstrip": false,
|
187 |
+
"single_word": false,
|
188 |
+
"special": false
|
189 |
+
},
|
190 |
+
"50275": {
|
191 |
+
"content": " ",
|
192 |
+
"lstrip": false,
|
193 |
+
"normalized": true,
|
194 |
+
"rstrip": false,
|
195 |
+
"single_word": false,
|
196 |
+
"special": false
|
197 |
+
},
|
198 |
+
"50276": {
|
199 |
+
"content": " ",
|
200 |
+
"lstrip": false,
|
201 |
+
"normalized": true,
|
202 |
+
"rstrip": false,
|
203 |
+
"single_word": false,
|
204 |
+
"special": false
|
205 |
+
},
|
206 |
+
"50277": {
|
207 |
+
"content": "<|pad|>",
|
208 |
+
"lstrip": false,
|
209 |
+
"normalized": true,
|
210 |
+
"rstrip": false,
|
211 |
+
"single_word": false,
|
212 |
+
"special": false
|
213 |
+
},
|
214 |
+
"50278": {
|
215 |
+
"content": "<|im_start|>",
|
216 |
+
"lstrip": false,
|
217 |
+
"normalized": false,
|
218 |
+
"rstrip": false,
|
219 |
+
"single_word": false,
|
220 |
+
"special": true
|
221 |
+
},
|
222 |
+
"50279": {
|
223 |
+
"content": "<|im_end|>",
|
224 |
+
"lstrip": false,
|
225 |
+
"normalized": false,
|
226 |
+
"rstrip": false,
|
227 |
+
"single_word": false,
|
228 |
+
"special": true
|
229 |
+
},
|
230 |
+
"50280": {
|
231 |
+
"content": "[PAD]",
|
232 |
+
"lstrip": false,
|
233 |
+
"normalized": false,
|
234 |
+
"rstrip": false,
|
235 |
+
"single_word": false,
|
236 |
+
"special": true
|
237 |
+
}
|
238 |
+
},
|
239 |
+
"additional_special_tokens": [
|
240 |
+
"<|im_start|>",
|
241 |
+
"<|im_end|>"
|
242 |
+
],
|
243 |
+
"bos_token": "<|im_start|>",
|
244 |
+
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
245 |
+
"clean_up_tokenization_spaces": true,
|
246 |
+
"eos_token": "<|im_end|>",
|
247 |
+
"model_max_length": 1000000000000000019884624838656,
|
248 |
+
"pad_token": "[PAD]",
|
249 |
+
"tokenizer_class": "GPTNeoXTokenizer",
|
250 |
+
"unk_token": "<|endoftext|>"
|
251 |
+
}
|