End of training
Browse files- README.md +148 -0
- adapter_config.json +34 -0
- adapter_model.bin +3 -0
- adapter_model.safetensors +3 -0
- config.json +46 -0
- special_tokens_map.json +40 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +88 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: peft
|
3 |
+
license: cc-by-sa-4.0
|
4 |
+
base_model: defog/sqlcoder-7b-2
|
5 |
+
tags:
|
6 |
+
- axolotl
|
7 |
+
- generated_from_trainer
|
8 |
+
model-index:
|
9 |
+
- name: b186e5f5-4b26-4bd6-b7c7-ced04af3b484
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
[<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
|
17 |
+
<details><summary>See axolotl config</summary>
|
18 |
+
|
19 |
+
axolotl version: `0.4.1`
|
20 |
+
```yaml
|
21 |
+
adapter: lora
|
22 |
+
base_model: defog/sqlcoder-7b-2
|
23 |
+
bf16: auto
|
24 |
+
chat_template: llama3
|
25 |
+
dataset_prepared_path: null
|
26 |
+
datasets:
|
27 |
+
- data_files:
|
28 |
+
- 76dedfa3b75cf30d_train_data.json
|
29 |
+
ds_type: json
|
30 |
+
format: custom
|
31 |
+
path: /workspace/input_data/76dedfa3b75cf30d_train_data.json
|
32 |
+
type:
|
33 |
+
field_instruction: text
|
34 |
+
field_output: style
|
35 |
+
format: '{instruction}'
|
36 |
+
no_input_format: '{instruction}'
|
37 |
+
system_format: '{system}'
|
38 |
+
system_prompt: ''
|
39 |
+
debug: null
|
40 |
+
deepspeed: null
|
41 |
+
early_stopping_patience: null
|
42 |
+
eval_max_new_tokens: 128
|
43 |
+
eval_table_size: null
|
44 |
+
evals_per_epoch: 1
|
45 |
+
flash_attention: false
|
46 |
+
fp16: null
|
47 |
+
fsdp: null
|
48 |
+
fsdp_config: null
|
49 |
+
gradient_accumulation_steps: 1
|
50 |
+
gradient_checkpointing: true
|
51 |
+
group_by_length: false
|
52 |
+
hub_model_id: nblinh63/b186e5f5-4b26-4bd6-b7c7-ced04af3b484
|
53 |
+
hub_repo: null
|
54 |
+
hub_strategy: end
|
55 |
+
hub_token: null
|
56 |
+
learning_rate: 0.0002
|
57 |
+
load_in_4bit: true
|
58 |
+
load_in_8bit: true
|
59 |
+
local_rank: null
|
60 |
+
logging_steps: 1
|
61 |
+
lora_alpha: 32
|
62 |
+
lora_dropout: 0.05
|
63 |
+
lora_fan_in_fan_out: null
|
64 |
+
lora_model_dir: null
|
65 |
+
lora_r: 16
|
66 |
+
lora_target_linear: true
|
67 |
+
lr_scheduler: cosine
|
68 |
+
max_steps: 100
|
69 |
+
micro_batch_size: 1
|
70 |
+
mlflow_experiment_name: /tmp/76dedfa3b75cf30d_train_data.json
|
71 |
+
model_type: AutoModelForCausalLM
|
72 |
+
num_epochs: 1
|
73 |
+
optimizer: adamw_bnb_8bit
|
74 |
+
output_dir: miner_id_24
|
75 |
+
pad_to_sequence_len: true
|
76 |
+
resume_from_checkpoint: null
|
77 |
+
s2_attention: null
|
78 |
+
sample_packing: false
|
79 |
+
saves_per_epoch: 1
|
80 |
+
sequence_len: 2048
|
81 |
+
special_tokens:
|
82 |
+
pad_token: </s>
|
83 |
+
strict: false
|
84 |
+
tf32: false
|
85 |
+
tokenizer_type: AutoTokenizer
|
86 |
+
train_on_inputs: false
|
87 |
+
trust_remote_code: true
|
88 |
+
val_set_size: 0.05
|
89 |
+
wandb_entity: null
|
90 |
+
wandb_mode: online
|
91 |
+
wandb_name: b186e5f5-4b26-4bd6-b7c7-ced04af3b484
|
92 |
+
wandb_project: Gradients-On-Demand
|
93 |
+
wandb_run: your_name
|
94 |
+
wandb_runid: b186e5f5-4b26-4bd6-b7c7-ced04af3b484
|
95 |
+
warmup_steps: 10
|
96 |
+
weight_decay: 0.0
|
97 |
+
xformers_attention: true
|
98 |
+
|
99 |
+
```
|
100 |
+
|
101 |
+
</details><br>
|
102 |
+
|
103 |
+
# b186e5f5-4b26-4bd6-b7c7-ced04af3b484
|
104 |
+
|
105 |
+
This model is a fine-tuned version of [defog/sqlcoder-7b-2](https://huggingface.co/defog/sqlcoder-7b-2) on the None dataset.
|
106 |
+
It achieves the following results on the evaluation set:
|
107 |
+
- Loss: nan
|
108 |
+
|
109 |
+
## Model description
|
110 |
+
|
111 |
+
More information needed
|
112 |
+
|
113 |
+
## Intended uses & limitations
|
114 |
+
|
115 |
+
More information needed
|
116 |
+
|
117 |
+
## Training and evaluation data
|
118 |
+
|
119 |
+
More information needed
|
120 |
+
|
121 |
+
## Training procedure
|
122 |
+
|
123 |
+
### Training hyperparameters
|
124 |
+
|
125 |
+
The following hyperparameters were used during training:
|
126 |
+
- learning_rate: 0.0002
|
127 |
+
- train_batch_size: 1
|
128 |
+
- eval_batch_size: 1
|
129 |
+
- seed: 42
|
130 |
+
- optimizer: Use OptimizerNames.ADAMW_BNB with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
131 |
+
- lr_scheduler_type: cosine
|
132 |
+
- lr_scheduler_warmup_steps: 10
|
133 |
+
- training_steps: 100
|
134 |
+
|
135 |
+
### Training results
|
136 |
+
|
137 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
138 |
+
|:-------------:|:------:|:----:|:---------------:|
|
139 |
+
| 0.0 | 0.0046 | 100 | nan |
|
140 |
+
|
141 |
+
|
142 |
+
### Framework versions
|
143 |
+
|
144 |
+
- PEFT 0.13.2
|
145 |
+
- Transformers 4.46.0
|
146 |
+
- Pytorch 2.5.0+cu124
|
147 |
+
- Datasets 3.0.1
|
148 |
+
- Tokenizers 0.20.1
|
adapter_config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "defog/sqlcoder-7b-2",
|
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": 32,
|
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": 16,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"k_proj",
|
24 |
+
"v_proj",
|
25 |
+
"up_proj",
|
26 |
+
"q_proj",
|
27 |
+
"gate_proj",
|
28 |
+
"o_proj",
|
29 |
+
"down_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:9431db88c9debe25db58ad9fc8f34f6a56b2883a8e49961d4370a6f576fd2065
|
3 |
+
size 160069834
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3ea6fed6e31fa38aedc8d636edc5eb771c420718fa3944428b69455ef56eed7f
|
3 |
+
size 159967880
|
config.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_attn_implementation_autoset": true,
|
3 |
+
"_name_or_path": "defog/sqlcoder-7b-2",
|
4 |
+
"architectures": [
|
5 |
+
"LlamaForCausalLM"
|
6 |
+
],
|
7 |
+
"attention_bias": false,
|
8 |
+
"attention_dropout": 0.0,
|
9 |
+
"bos_token_id": 1,
|
10 |
+
"eos_token_id": 2,
|
11 |
+
"head_dim": 128,
|
12 |
+
"hidden_act": "silu",
|
13 |
+
"hidden_size": 4096,
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"intermediate_size": 11008,
|
16 |
+
"max_position_embeddings": 16384,
|
17 |
+
"mlp_bias": false,
|
18 |
+
"model_type": "llama",
|
19 |
+
"num_attention_heads": 32,
|
20 |
+
"num_hidden_layers": 32,
|
21 |
+
"num_key_value_heads": 32,
|
22 |
+
"pretraining_tp": 1,
|
23 |
+
"quantization_config": {
|
24 |
+
"_load_in_4bit": false,
|
25 |
+
"_load_in_8bit": true,
|
26 |
+
"bnb_4bit_compute_dtype": "float32",
|
27 |
+
"bnb_4bit_quant_storage": "uint8",
|
28 |
+
"bnb_4bit_quant_type": "fp4",
|
29 |
+
"bnb_4bit_use_double_quant": false,
|
30 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
31 |
+
"llm_int8_has_fp16_weight": false,
|
32 |
+
"llm_int8_skip_modules": null,
|
33 |
+
"llm_int8_threshold": 6.0,
|
34 |
+
"load_in_4bit": false,
|
35 |
+
"load_in_8bit": true,
|
36 |
+
"quant_method": "bitsandbytes"
|
37 |
+
},
|
38 |
+
"rms_norm_eps": 1e-05,
|
39 |
+
"rope_scaling": null,
|
40 |
+
"rope_theta": 1000000,
|
41 |
+
"tie_word_embeddings": false,
|
42 |
+
"torch_dtype": "float16",
|
43 |
+
"transformers_version": "4.46.0",
|
44 |
+
"use_cache": false,
|
45 |
+
"vocab_size": 32016
|
46 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"β<PRE>",
|
4 |
+
"β<MID>",
|
5 |
+
"β<SUF>",
|
6 |
+
"β<EOT>",
|
7 |
+
"β<PRE>",
|
8 |
+
"β<MID>",
|
9 |
+
"β<SUF>",
|
10 |
+
"β<EOT>"
|
11 |
+
],
|
12 |
+
"bos_token": {
|
13 |
+
"content": "<s>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false
|
18 |
+
},
|
19 |
+
"eos_token": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false
|
25 |
+
},
|
26 |
+
"pad_token": {
|
27 |
+
"content": "</s>",
|
28 |
+
"lstrip": false,
|
29 |
+
"normalized": false,
|
30 |
+
"rstrip": false,
|
31 |
+
"single_word": false
|
32 |
+
},
|
33 |
+
"unk_token": {
|
34 |
+
"content": "<unk>",
|
35 |
+
"lstrip": false,
|
36 |
+
"normalized": false,
|
37 |
+
"rstrip": false,
|
38 |
+
"single_word": false
|
39 |
+
}
|
40 |
+
}
|
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:45ccb9c8b6b561889acea59191d66986d314e7cbd6a78abc6e49b139ca91c1e6
|
3 |
+
size 500058
|
tokenizer_config.json
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"32007": {
|
30 |
+
"content": "β<PRE>",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": false,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false,
|
35 |
+
"special": true
|
36 |
+
},
|
37 |
+
"32008": {
|
38 |
+
"content": "β<SUF>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false,
|
43 |
+
"special": true
|
44 |
+
},
|
45 |
+
"32009": {
|
46 |
+
"content": "β<MID>",
|
47 |
+
"lstrip": false,
|
48 |
+
"normalized": false,
|
49 |
+
"rstrip": false,
|
50 |
+
"single_word": false,
|
51 |
+
"special": true
|
52 |
+
},
|
53 |
+
"32010": {
|
54 |
+
"content": "β<EOT>",
|
55 |
+
"lstrip": false,
|
56 |
+
"normalized": false,
|
57 |
+
"rstrip": false,
|
58 |
+
"single_word": false,
|
59 |
+
"special": true
|
60 |
+
}
|
61 |
+
},
|
62 |
+
"additional_special_tokens": [
|
63 |
+
"β<PRE>",
|
64 |
+
"β<MID>",
|
65 |
+
"β<SUF>",
|
66 |
+
"β<EOT>",
|
67 |
+
"β<PRE>",
|
68 |
+
"β<MID>",
|
69 |
+
"β<SUF>",
|
70 |
+
"β<EOT>"
|
71 |
+
],
|
72 |
+
"bos_token": "<s>",
|
73 |
+
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}{% endif %}",
|
74 |
+
"clean_up_tokenization_spaces": false,
|
75 |
+
"eos_token": "</s>",
|
76 |
+
"eot_token": "β<EOT>",
|
77 |
+
"fill_token": "<FILL_ME>",
|
78 |
+
"legacy": null,
|
79 |
+
"middle_token": "β<MID>",
|
80 |
+
"model_max_length": 1000000000000000019884624838656,
|
81 |
+
"pad_token": "</s>",
|
82 |
+
"prefix_token": "β<PRE>",
|
83 |
+
"sp_model_kwargs": {},
|
84 |
+
"suffix_token": "β<SUF>",
|
85 |
+
"tokenizer_class": "CodeLlamaTokenizer",
|
86 |
+
"unk_token": "<unk>",
|
87 |
+
"use_default_system_prompt": false
|
88 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:53b3f903eb25d73bc9d953d953ff1260e1e5e1421570b89306cac9bcb6e4a096
|
3 |
+
size 6776
|