Upload 9 files
Browse files- Dora-Smol.yml +91 -0
- README.md +172 -3
- config.json +29 -0
- generation_config.json +7 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +49 -0
- tokenizer_config.json +172 -0
- vocab.json +0 -0
Dora-Smol.yml
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
base_model: /media/renfroe/llms/SmolLM-360M/
|
| 2 |
+
|
| 3 |
+
model_type: LlamaForCausalLM
|
| 4 |
+
tokenizer_type: GPT2Tokenizer
|
| 5 |
+
seed: 122887
|
| 6 |
+
load_in_8bit: false
|
| 7 |
+
load_in_4bit: false
|
| 8 |
+
strict: false
|
| 9 |
+
|
| 10 |
+
max_steps: 0
|
| 11 |
+
resume_from_checkpoint:
|
| 12 |
+
datasets:
|
| 13 |
+
- path: /home/renfroe/Desktop/sqa_tiny-llama_dataset/Dynamic_Optimization_Methods_with_Applications_sqa_answers_only.json
|
| 14 |
+
type:
|
| 15 |
+
field_instruction: question
|
| 16 |
+
field_output: answer
|
| 17 |
+
format: "<|im_start|>user\n{instruction}<|im_end|>\n<|im_start|>assistant\n"
|
| 18 |
+
no_input_format: "<|im_start|>user\n{instruction}<|im_end|>\n<|im_start|>assistant\n"
|
| 19 |
+
- path: /home/renfroe/Dev/tinyllama-models/dataset/open_hermes_top_tech.json
|
| 20 |
+
type: sharegpt
|
| 21 |
+
- path: /home/renfroe/Desktop/sqa_tiny-llama_dataset/hermes_prior_knowledge_question_expansion_with_answers.json
|
| 22 |
+
type:
|
| 23 |
+
field_instruction: question
|
| 24 |
+
field_output: answer
|
| 25 |
+
format: "<|im_start|>user\n{instruction}<|im_end|>\n<|im_start|>assistant\n"
|
| 26 |
+
no_input_format: "<|im_start|>user\n{instruction}<|im_end|>\n<|im_start|>assistant\n"
|
| 27 |
+
- path: /home/renfroe/Desktop/sqa_tiny-llama_dataset/hermes_prior_knowledge_question_expansion_with_answers.json
|
| 28 |
+
type:
|
| 29 |
+
field_instruction: question
|
| 30 |
+
field_output: answer
|
| 31 |
+
format: "<|im_start|>user\n{instruction}<|im_end|>\n<|im_start|>assistant\n"
|
| 32 |
+
no_input_format: "<|im_start|>user\n{instruction}<|im_end|>\n<|im_start|>assistant\n"
|
| 33 |
+
- path: /home/renfroe/Desktop/sqa_tiny-llama_dataset/or-farm_sharegpt.json
|
| 34 |
+
type: sharegpt
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
dataset_prepared_path:
|
| 39 |
+
val_set_size: 0.2
|
| 40 |
+
output_dir: ./SmolLM-Ora
|
| 41 |
+
auto_resume_from_checkpoints: false
|
| 42 |
+
|
| 43 |
+
sequence_len: 2048
|
| 44 |
+
sample_packing: true
|
| 45 |
+
chat_template: chatml
|
| 46 |
+
|
| 47 |
+
wandb_project: SmolLM-Ora
|
| 48 |
+
wandb_entity:
|
| 49 |
+
wandb_watch:
|
| 50 |
+
wandb_name:
|
| 51 |
+
wandb_log_model:
|
| 52 |
+
|
| 53 |
+
gradient_accumulation_steps: 1
|
| 54 |
+
micro_batch_size: 10
|
| 55 |
+
num_epochs: 4
|
| 56 |
+
optimizer: adamw_bnb_8bit
|
| 57 |
+
lr_scheduler: linear
|
| 58 |
+
weight_decay: 0.0000001
|
| 59 |
+
learning_rate: 0.0001
|
| 60 |
+
lr_scheduler_kwargs:
|
| 61 |
+
# num_cycles: 3
|
| 62 |
+
|
| 63 |
+
train_on_inputs: false
|
| 64 |
+
group_by_length: false
|
| 65 |
+
bf16: auto
|
| 66 |
+
fp16:
|
| 67 |
+
tf32: false
|
| 68 |
+
|
| 69 |
+
gradient_checkpointing: true
|
| 70 |
+
early_stopping_patience:
|
| 71 |
+
resume_from_checkpoint:
|
| 72 |
+
local_rank:
|
| 73 |
+
logging_steps: 1
|
| 74 |
+
xformers_attention:
|
| 75 |
+
flash_attention: true
|
| 76 |
+
|
| 77 |
+
eval_sample_packing: False
|
| 78 |
+
|
| 79 |
+
warmup_steps: 50
|
| 80 |
+
evals_per_epoch: 4
|
| 81 |
+
eval_table_size:
|
| 82 |
+
saves_per_epoch: 4
|
| 83 |
+
debug:
|
| 84 |
+
deepspeed:
|
| 85 |
+
|
| 86 |
+
fsdp:
|
| 87 |
+
fsdp_config:
|
| 88 |
+
special_tokens:
|
| 89 |
+
bos_token: "<|endoftext|>"
|
| 90 |
+
eos_token: "<|endoftext|>"
|
| 91 |
+
pad_token: "<|endoftext|>"
|
README.md
CHANGED
|
@@ -1,3 +1,172 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- generated_from_trainer
|
| 4 |
+
model-index:
|
| 5 |
+
- name: SmolLM-Ora
|
| 6 |
+
results: []
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 10 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 11 |
+
|
| 12 |
+
[<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)
|
| 13 |
+
<details><summary>See axolotl config</summary>
|
| 14 |
+
|
| 15 |
+
axolotl version: `0.4.0`
|
| 16 |
+
```yaml
|
| 17 |
+
base_model: /media/renfroe/llms/SmolLM-360M/
|
| 18 |
+
|
| 19 |
+
model_type: LlamaForCausalLM
|
| 20 |
+
tokenizer_type: GPT2Tokenizer
|
| 21 |
+
seed: 122887
|
| 22 |
+
load_in_8bit: false
|
| 23 |
+
load_in_4bit: false
|
| 24 |
+
strict: false
|
| 25 |
+
|
| 26 |
+
max_steps: 0
|
| 27 |
+
resume_from_checkpoint:
|
| 28 |
+
datasets:
|
| 29 |
+
- path: /home/renfroe/Desktop/sqa_tiny-llama_dataset/Dynamic_Optimization_Methods_with_Applications_sqa_answers_only.json
|
| 30 |
+
type:
|
| 31 |
+
field_instruction: question
|
| 32 |
+
field_output: answer
|
| 33 |
+
format: "<|im_start|>user\n{instruction}<|im_end|>\n<|im_start|>assistant\n"
|
| 34 |
+
no_input_format: "<|im_start|>user\n{instruction}<|im_end|>\n<|im_start|>assistant\n"
|
| 35 |
+
- path: /home/renfroe/Dev/tinyllama-models/dataset/open_hermes_top_tech.json
|
| 36 |
+
type: sharegpt
|
| 37 |
+
- path: /home/renfroe/Desktop/sqa_tiny-llama_dataset/hermes_prior_knowledge_question_expansion_with_answers.json
|
| 38 |
+
type:
|
| 39 |
+
field_instruction: question
|
| 40 |
+
field_output: answer
|
| 41 |
+
format: "<|im_start|>user\n{instruction}<|im_end|>\n<|im_start|>assistant\n"
|
| 42 |
+
no_input_format: "<|im_start|>user\n{instruction}<|im_end|>\n<|im_start|>assistant\n"
|
| 43 |
+
- path: /home/renfroe/Desktop/sqa_tiny-llama_dataset/hermes_prior_knowledge_question_expansion_with_answers.json
|
| 44 |
+
type:
|
| 45 |
+
field_instruction: question
|
| 46 |
+
field_output: answer
|
| 47 |
+
format: "<|im_start|>user\n{instruction}<|im_end|>\n<|im_start|>assistant\n"
|
| 48 |
+
no_input_format: "<|im_start|>user\n{instruction}<|im_end|>\n<|im_start|>assistant\n"
|
| 49 |
+
- path: /home/renfroe/Desktop/sqa_tiny-llama_dataset/or-farm_sharegpt.json
|
| 50 |
+
type: sharegpt
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
dataset_prepared_path:
|
| 55 |
+
val_set_size: 0.2
|
| 56 |
+
output_dir: ./SmolLM-Ora
|
| 57 |
+
auto_resume_from_checkpoints: false
|
| 58 |
+
|
| 59 |
+
sequence_len: 2048
|
| 60 |
+
sample_packing: true
|
| 61 |
+
chat_template: chatml
|
| 62 |
+
|
| 63 |
+
wandb_project: SmolLM-Ora
|
| 64 |
+
wandb_entity:
|
| 65 |
+
wandb_watch:
|
| 66 |
+
wandb_name:
|
| 67 |
+
wandb_log_model:
|
| 68 |
+
|
| 69 |
+
gradient_accumulation_steps: 1
|
| 70 |
+
micro_batch_size: 10
|
| 71 |
+
num_epochs: 4
|
| 72 |
+
optimizer: adamw_bnb_8bit
|
| 73 |
+
lr_scheduler: linear
|
| 74 |
+
weight_decay: 0.0000001
|
| 75 |
+
learning_rate: 0.0001
|
| 76 |
+
lr_scheduler_kwargs:
|
| 77 |
+
# num_cycles: 3
|
| 78 |
+
|
| 79 |
+
train_on_inputs: false
|
| 80 |
+
group_by_length: false
|
| 81 |
+
bf16: auto
|
| 82 |
+
fp16:
|
| 83 |
+
tf32: false
|
| 84 |
+
|
| 85 |
+
gradient_checkpointing: true
|
| 86 |
+
early_stopping_patience:
|
| 87 |
+
resume_from_checkpoint:
|
| 88 |
+
local_rank:
|
| 89 |
+
logging_steps: 1
|
| 90 |
+
xformers_attention:
|
| 91 |
+
flash_attention: true
|
| 92 |
+
|
| 93 |
+
eval_sample_packing: False
|
| 94 |
+
|
| 95 |
+
warmup_steps: 50
|
| 96 |
+
evals_per_epoch: 4
|
| 97 |
+
eval_table_size:
|
| 98 |
+
saves_per_epoch: 4
|
| 99 |
+
debug:
|
| 100 |
+
deepspeed:
|
| 101 |
+
|
| 102 |
+
fsdp:
|
| 103 |
+
fsdp_config:
|
| 104 |
+
special_tokens:
|
| 105 |
+
bos_token: "<|endoftext|>"
|
| 106 |
+
eos_token: "<|endoftext|>"
|
| 107 |
+
pad_token: "<|endoftext|>"
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
</details><br>
|
| 111 |
+
|
| 112 |
+
# SmolLM-Ora
|
| 113 |
+
|
| 114 |
+
This model was trained from scratch on the None dataset.
|
| 115 |
+
It achieves the following results on the evaluation set:
|
| 116 |
+
- Loss: 0.8298
|
| 117 |
+
|
| 118 |
+
## Model description
|
| 119 |
+
|
| 120 |
+
More information needed
|
| 121 |
+
|
| 122 |
+
## Intended uses & limitations
|
| 123 |
+
|
| 124 |
+
More information needed
|
| 125 |
+
|
| 126 |
+
## Training and evaluation data
|
| 127 |
+
|
| 128 |
+
More information needed
|
| 129 |
+
|
| 130 |
+
## Training procedure
|
| 131 |
+
|
| 132 |
+
### Training hyperparameters
|
| 133 |
+
|
| 134 |
+
The following hyperparameters were used during training:
|
| 135 |
+
- learning_rate: 0.0001
|
| 136 |
+
- train_batch_size: 10
|
| 137 |
+
- eval_batch_size: 10
|
| 138 |
+
- seed: 122887
|
| 139 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 140 |
+
- lr_scheduler_type: linear
|
| 141 |
+
- lr_scheduler_warmup_steps: 50
|
| 142 |
+
- num_epochs: 4
|
| 143 |
+
|
| 144 |
+
### Training results
|
| 145 |
+
|
| 146 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 147 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
| 148 |
+
| 1.0131 | 0.01 | 1 | 1.0419 |
|
| 149 |
+
| 0.9727 | 0.25 | 27 | 0.9962 |
|
| 150 |
+
| 0.953 | 0.5 | 54 | 0.9076 |
|
| 151 |
+
| 0.8494 | 0.75 | 81 | 0.8792 |
|
| 152 |
+
| 0.9297 | 1.0 | 108 | 0.8632 |
|
| 153 |
+
| 0.8801 | 1.22 | 135 | 0.8527 |
|
| 154 |
+
| 0.8133 | 1.47 | 162 | 0.8459 |
|
| 155 |
+
| 0.8342 | 1.72 | 189 | 0.8410 |
|
| 156 |
+
| 0.8973 | 1.97 | 216 | 0.8376 |
|
| 157 |
+
| 0.7731 | 2.19 | 243 | 0.8350 |
|
| 158 |
+
| 0.8207 | 2.44 | 270 | 0.8332 |
|
| 159 |
+
| 0.7963 | 2.69 | 297 | 0.8318 |
|
| 160 |
+
| 0.81 | 2.94 | 324 | 0.8309 |
|
| 161 |
+
| 0.8351 | 3.18 | 351 | 0.8302 |
|
| 162 |
+
| 0.8104 | 3.43 | 378 | 0.8299 |
|
| 163 |
+
| 0.9019 | 3.68 | 405 | 0.8298 |
|
| 164 |
+
| 0.7828 | 3.93 | 432 | 0.8298 |
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
### Framework versions
|
| 168 |
+
|
| 169 |
+
- Transformers 4.40.0.dev0
|
| 170 |
+
- Pytorch 2.0.1+cu117
|
| 171 |
+
- Datasets 2.18.0
|
| 172 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "/media/renfroe/llms/SmolLM-360M/",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"LlamaForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"bos_token_id": 0,
|
| 9 |
+
"eos_token_id": 0,
|
| 10 |
+
"hidden_act": "silu",
|
| 11 |
+
"hidden_size": 960,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 2560,
|
| 14 |
+
"max_position_embeddings": 2048,
|
| 15 |
+
"mlp_bias": false,
|
| 16 |
+
"model_type": "llama",
|
| 17 |
+
"num_attention_heads": 15,
|
| 18 |
+
"num_hidden_layers": 32,
|
| 19 |
+
"num_key_value_heads": 5,
|
| 20 |
+
"pretraining_tp": 1,
|
| 21 |
+
"rms_norm_eps": 1e-05,
|
| 22 |
+
"rope_scaling": null,
|
| 23 |
+
"rope_theta": 10000.0,
|
| 24 |
+
"tie_word_embeddings": true,
|
| 25 |
+
"torch_dtype": "bfloat16",
|
| 26 |
+
"transformers_version": "4.40.0.dev0",
|
| 27 |
+
"use_cache": false,
|
| 28 |
+
"vocab_size": 49152
|
| 29 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"do_sample": true,
|
| 5 |
+
"eos_token_id": 0,
|
| 6 |
+
"transformers_version": "4.40.0.dev0"
|
| 7 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f4c4e27aed572f746ea9e5165537830a1a34172b0e806809671ed800938fd4a
|
| 3 |
+
size 723739989
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|endoftext|>",
|
| 4 |
+
"<|im_start|>",
|
| 5 |
+
"<|im_end|>",
|
| 6 |
+
"<repo_name>",
|
| 7 |
+
"<reponame>",
|
| 8 |
+
"<file_sep>",
|
| 9 |
+
"<filename>",
|
| 10 |
+
"<gh_stars>",
|
| 11 |
+
"<issue_start>",
|
| 12 |
+
"<issue_comment>",
|
| 13 |
+
"<issue_closed>",
|
| 14 |
+
"<jupyter_start>",
|
| 15 |
+
"<jupyter_text>",
|
| 16 |
+
"<jupyter_code>",
|
| 17 |
+
"<jupyter_output>",
|
| 18 |
+
"<jupyter_script>",
|
| 19 |
+
"<empty_output>"
|
| 20 |
+
],
|
| 21 |
+
"bos_token": {
|
| 22 |
+
"content": "<|endoftext|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false
|
| 27 |
+
},
|
| 28 |
+
"eos_token": {
|
| 29 |
+
"content": "<|endoftext|>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false
|
| 34 |
+
},
|
| 35 |
+
"pad_token": {
|
| 36 |
+
"content": "<|endoftext|>",
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false
|
| 41 |
+
},
|
| 42 |
+
"unk_token": {
|
| 43 |
+
"content": "<|endoftext|>",
|
| 44 |
+
"lstrip": false,
|
| 45 |
+
"normalized": false,
|
| 46 |
+
"rstrip": false,
|
| 47 |
+
"single_word": false
|
| 48 |
+
}
|
| 49 |
+
}
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"0": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"1": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"2": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"3": {
|
| 30 |
+
"content": "<repo_name>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"4": {
|
| 38 |
+
"content": "<reponame>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"5": {
|
| 46 |
+
"content": "<file_sep>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"6": {
|
| 54 |
+
"content": "<filename>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
},
|
| 61 |
+
"7": {
|
| 62 |
+
"content": "<gh_stars>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
"8": {
|
| 70 |
+
"content": "<issue_start>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"9": {
|
| 78 |
+
"content": "<issue_comment>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"10": {
|
| 86 |
+
"content": "<issue_closed>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"11": {
|
| 94 |
+
"content": "<jupyter_start>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"12": {
|
| 102 |
+
"content": "<jupyter_text>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"13": {
|
| 110 |
+
"content": "<jupyter_code>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"14": {
|
| 118 |
+
"content": "<jupyter_output>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": true
|
| 124 |
+
},
|
| 125 |
+
"15": {
|
| 126 |
+
"content": "<jupyter_script>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": true
|
| 132 |
+
},
|
| 133 |
+
"16": {
|
| 134 |
+
"content": "<empty_output>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": true
|
| 140 |
+
}
|
| 141 |
+
},
|
| 142 |
+
"additional_special_tokens": [
|
| 143 |
+
"<|endoftext|>",
|
| 144 |
+
"<|im_start|>",
|
| 145 |
+
"<|im_end|>",
|
| 146 |
+
"<repo_name>",
|
| 147 |
+
"<reponame>",
|
| 148 |
+
"<file_sep>",
|
| 149 |
+
"<filename>",
|
| 150 |
+
"<gh_stars>",
|
| 151 |
+
"<issue_start>",
|
| 152 |
+
"<issue_comment>",
|
| 153 |
+
"<issue_closed>",
|
| 154 |
+
"<jupyter_start>",
|
| 155 |
+
"<jupyter_text>",
|
| 156 |
+
"<jupyter_code>",
|
| 157 |
+
"<jupyter_output>",
|
| 158 |
+
"<jupyter_script>",
|
| 159 |
+
"<empty_output>"
|
| 160 |
+
],
|
| 161 |
+
"bos_token": "<|endoftext|>",
|
| 162 |
+
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
| 163 |
+
"clean_up_tokenization_spaces": false,
|
| 164 |
+
"eos_token": "<|endoftext|>",
|
| 165 |
+
"errors": "replace",
|
| 166 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 167 |
+
"pad_token": "<|endoftext|>",
|
| 168 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 169 |
+
"unk_token": "<|endoftext|>",
|
| 170 |
+
"use_fast": true,
|
| 171 |
+
"vocab_size": 49152
|
| 172 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|