Instructions to use Fernandosr85/adaption_math_misconception_match with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Fernandosr85/adaption_math_misconception_match with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("togethercomputer/Llama-4-Scout-17B-16E-Instruct_bnb_4bit") model = PeftModel.from_pretrained(base_model, "Fernandosr85/adaption_math_misconception_match") - Notebooks
- Google Colab
- Kaggle
Add 11 files
Browse files- .gitattributes +3 -0
- README.md +99 -0
- adapter_config.json +36 -0
- adapter_model.safetensors +3 -0
- chat_template.jinja +123 -0
- config.json +215 -0
- special_tokens_map.json +5 -0
- tokenizer.json +3 -0
- tokenizer_config.json +17 -0
- trainer_state.json +515 -0
- training-metrics.png +3 -0
- win-rates.png +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
training-metrics.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
win-rates.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: meta-llama/Llama-4-Scout-17B-16E-Instruct
|
| 3 |
+
library_name: peft
|
| 4 |
+
license: other
|
| 5 |
+
tags:
|
| 6 |
+
- lora
|
| 7 |
+
- peft
|
| 8 |
+
- adapter
|
| 9 |
+
- adaption
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# adaption_math_misconception_match
|
| 13 |
+
|
| 14 |
+
## Model Training
|
| 15 |
+
|
| 16 |
+
A LORA adapter for `meta-llama/Llama-4-Scout-17B-16E-Instruct`. This model was trained with SFT using [Adaption](https://adaptionlabs.ai)'s AutoScientist on the math_misconception_match dataset.
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
|
| 21 |
+
### AutoScientist Config
|
| 22 |
+
|
| 23 |
+
```json
|
| 24 |
+
{
|
| 25 |
+
"job_id": "9758c8e6-e2ba-4ffc-8de4-54eb9497937e",
|
| 26 |
+
"training_experiment_id": "f23699a7-e78c-45ce-a4be-79e9026753f0",
|
| 27 |
+
"original_model_name": "meta-llama/Llama-4-Scout-17B-16E-Instruct",
|
| 28 |
+
"trained_model_name": "adaption_math_misconception_match",
|
| 29 |
+
"training_method": "sft",
|
| 30 |
+
"training_type": "lora",
|
| 31 |
+
"data_format": "chat",
|
| 32 |
+
"hyperparams": {
|
| 33 |
+
"lora": "true",
|
| 34 |
+
"lora_r": 64,
|
| 35 |
+
"n_evals": 5,
|
| 36 |
+
"n_epochs": 3,
|
| 37 |
+
"batch_size": "max",
|
| 38 |
+
"lora_alpha": 128,
|
| 39 |
+
"lora_dropout": 0,
|
| 40 |
+
"min_lr_ratio": 0.1,
|
| 41 |
+
"warmup_ratio": 0.05,
|
| 42 |
+
"weight_decay": 0.05,
|
| 43 |
+
"learning_rate": 0.0001,
|
| 44 |
+
"max_grad_norm": 1,
|
| 45 |
+
"base_model_size": "109B",
|
| 46 |
+
"train_on_inputs": "false",
|
| 47 |
+
"training_method": "sft",
|
| 48 |
+
"lr_scheduler_type": "cosine",
|
| 49 |
+
"scheduler_num_cycles": 0.5,
|
| 50 |
+
"lora_trainable_modules": "k_proj,o_proj,q_proj,v_proj"
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
## Training Data
|
| 56 |
+
|
| 57 |
+
The model was trained on 19,608 rows of adapted data with the following domain distribution: academic-education (92%), math (8%).
|
| 58 |
+
|
| 59 |
+
## Model Evaluation
|
| 60 |
+
|
| 61 |
+
The model was evaluated on an in-distribution held-out test set as well as a broader domain-specific test set to measure generalization.
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+

|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
## How to use
|
| 68 |
+
|
| 69 |
+
```bash
|
| 70 |
+
pip install torch transformers peft
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
```python
|
| 74 |
+
import torch
|
| 75 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 76 |
+
from peft import PeftModel
|
| 77 |
+
|
| 78 |
+
BASE = "meta-llama/Llama-4-Scout-17B-16E-Instruct"
|
| 79 |
+
ADAPTER = "<this-repo-id>"
|
| 80 |
+
|
| 81 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 82 |
+
dtype = torch.float32 if device == "cpu" else torch.bfloat16
|
| 83 |
+
|
| 84 |
+
base = AutoModelForCausalLM.from_pretrained(BASE, dtype=dtype).to(device)
|
| 85 |
+
model = PeftModel.from_pretrained(base, ADAPTER)
|
| 86 |
+
# Optional: merge the LoRA weights into the base for faster inference
|
| 87 |
+
model = model.merge_and_unload()
|
| 88 |
+
model.eval()
|
| 89 |
+
|
| 90 |
+
tokenizer = AutoTokenizer.from_pretrained(BASE)
|
| 91 |
+
messages = [{"role": "user", "content": "Hello!"}]
|
| 92 |
+
text = tokenizer.apply_chat_template(
|
| 93 |
+
messages, tokenize=False, add_generation_prompt=True)
|
| 94 |
+
inputs = tokenizer(text, return_tensors="pt").to(device)
|
| 95 |
+
|
| 96 |
+
with torch.inference_mode():
|
| 97 |
+
out = model.generate(**inputs, max_new_tokens=512)
|
| 98 |
+
print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
|
| 99 |
+
```
|
adapter_config.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "togethercomputer/Llama-4-Scout-17B-16E-Instruct_bnb_4bit",
|
| 5 |
+
"bias": "none",
|
| 6 |
+
"corda_config": null,
|
| 7 |
+
"eva_config": null,
|
| 8 |
+
"exclude_modules": [],
|
| 9 |
+
"fan_in_fan_out": false,
|
| 10 |
+
"inference_mode": true,
|
| 11 |
+
"init_lora_weights": true,
|
| 12 |
+
"layer_replication": null,
|
| 13 |
+
"layers_pattern": null,
|
| 14 |
+
"layers_to_transform": null,
|
| 15 |
+
"loftq_config": {},
|
| 16 |
+
"lora_alpha": 128,
|
| 17 |
+
"lora_bias": false,
|
| 18 |
+
"lora_dropout": 0.0,
|
| 19 |
+
"megatron_config": null,
|
| 20 |
+
"megatron_core": "megatron.core",
|
| 21 |
+
"modules_to_save": null,
|
| 22 |
+
"peft_type": "LORA",
|
| 23 |
+
"r": 64,
|
| 24 |
+
"rank_pattern": {},
|
| 25 |
+
"revision": null,
|
| 26 |
+
"target_modules": [
|
| 27 |
+
"q_proj",
|
| 28 |
+
"o_proj",
|
| 29 |
+
"v_proj",
|
| 30 |
+
"k_proj"
|
| 31 |
+
],
|
| 32 |
+
"task_type": "CAUSAL_LM",
|
| 33 |
+
"trainable_token_indices": null,
|
| 34 |
+
"use_dora": false,
|
| 35 |
+
"use_rslora": false
|
| 36 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b139e062bf797c2a8ded2fef431ac027a724a2cae6135ec93d2cd9435017b134
|
| 3 |
+
size 402705536
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{- bos_token }}
|
| 2 |
+
{%- if custom_tools is defined %}
|
| 3 |
+
{%- set tools = custom_tools %}
|
| 4 |
+
{%- endif %}
|
| 5 |
+
{%- if not tools_in_user_message is defined %}
|
| 6 |
+
{%- set tools_in_user_message = true %}
|
| 7 |
+
{%- endif %}
|
| 8 |
+
{%- if not date_string is defined %}
|
| 9 |
+
{%- if strftime_now is defined %}
|
| 10 |
+
{%- set date_string = strftime_now("%d %b %Y") %}
|
| 11 |
+
{%- else %}
|
| 12 |
+
{%- set date_string = "26 Jul 2024" %}
|
| 13 |
+
{%- endif %}
|
| 14 |
+
{%- endif %}
|
| 15 |
+
{%- if not tools is defined %}
|
| 16 |
+
{%- set tools = none %}
|
| 17 |
+
{%- endif %}
|
| 18 |
+
|
| 19 |
+
{#- This block extracts the system message, so we can slot it into the right place. #}
|
| 20 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 21 |
+
{%- if messages[0]['content'] is string %}
|
| 22 |
+
{%- set system_message = messages[0]['content']|trim %}
|
| 23 |
+
{%- else %}
|
| 24 |
+
{#- FIXME: The processor requires an array, always. #}
|
| 25 |
+
{%- set system_message = messages[0]['content'][0]['text']|trim %}
|
| 26 |
+
{%- endif %}
|
| 27 |
+
{%- set messages = messages[1:] %}
|
| 28 |
+
{%- set user_supplied_system_message = true %}
|
| 29 |
+
{%- else %}
|
| 30 |
+
{%- set system_message = "" %}
|
| 31 |
+
{%- set user_supplied_system_message = false %}
|
| 32 |
+
{%- endif %}
|
| 33 |
+
|
| 34 |
+
{#- System message if the user supplied one #}
|
| 35 |
+
{%- if user_supplied_system_message %}
|
| 36 |
+
{{- "<|header_start|>system<|header_end|>\n\n" }}
|
| 37 |
+
{%- if tools is not none %}
|
| 38 |
+
{{- "Environment: ipython\n" }}
|
| 39 |
+
{%- endif %}
|
| 40 |
+
{%- if tools is not none and not tools_in_user_message %}
|
| 41 |
+
{{- "You have access to the following functions. To call a function, please respond with JSON for a function call." }}
|
| 42 |
+
{{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
|
| 43 |
+
{{- "Do not use variables.\n\n" }}
|
| 44 |
+
{%- for t in tools %}
|
| 45 |
+
{{- t | tojson(indent=4) }}
|
| 46 |
+
{{- "\n\n" }}
|
| 47 |
+
{%- endfor %}
|
| 48 |
+
{%- endif %}
|
| 49 |
+
{{- system_message }}
|
| 50 |
+
{{- "<|eot|>" }}
|
| 51 |
+
{%- endif %}
|
| 52 |
+
|
| 53 |
+
{#- Custom tools are passed in a user message with some extra guidance #}
|
| 54 |
+
{%- if tools_in_user_message and not tools is none %}
|
| 55 |
+
{#- Extract the first user message so we can plug it in here #}
|
| 56 |
+
{%- if messages | length != 0 %}
|
| 57 |
+
{%- set first_user_message = messages[0]['content']|trim %}
|
| 58 |
+
{%- set messages = messages[1:] %}
|
| 59 |
+
{%- else %}
|
| 60 |
+
{{- raise_exception("Cannot put tools in the first user message when there's no first user message!") }}
|
| 61 |
+
{%- endif %}
|
| 62 |
+
{{- '<|header_start|>user<|header_end|>\n\n' -}}
|
| 63 |
+
{{- "Given the following functions, please respond with a JSON for a function call " }}
|
| 64 |
+
{{- "with its proper arguments that best answers the given prompt.\n\n" }}
|
| 65 |
+
{{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
|
| 66 |
+
{{- "Do not use variables.\n\n" }}
|
| 67 |
+
{%- for t in tools %}
|
| 68 |
+
{{- t | tojson(indent=4) }}
|
| 69 |
+
{{- "\n\n" }}
|
| 70 |
+
{%- endfor %}
|
| 71 |
+
{{- first_user_message + "<|eot|>"}}
|
| 72 |
+
{%- endif %}
|
| 73 |
+
|
| 74 |
+
{%- for message in messages %}
|
| 75 |
+
{%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}
|
| 76 |
+
{{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }}
|
| 77 |
+
{%- if message['content'] is string %}
|
| 78 |
+
{{- message['content'] }}
|
| 79 |
+
{%- else %}
|
| 80 |
+
{%- for content in message['content'] %}
|
| 81 |
+
{%- if content['type'] == 'image' %}
|
| 82 |
+
{{- '<|image|>' }}
|
| 83 |
+
{%- elif content['type'] == 'text' %}
|
| 84 |
+
{{- content['text'] }}
|
| 85 |
+
{%- endif %}
|
| 86 |
+
{%- endfor %}
|
| 87 |
+
{%- endif %}
|
| 88 |
+
{{- "<|eot|>" }}
|
| 89 |
+
{%- elif 'tool_calls' in message and message.tool_calls|length > 0 %}
|
| 90 |
+
{{- '<|header_start|>assistant<|header_end|>\n\n' -}}
|
| 91 |
+
{{- '<|python_start|>' }}
|
| 92 |
+
{%- if message['content'] is string %}
|
| 93 |
+
{{- message['content'] }}
|
| 94 |
+
{%- else %}
|
| 95 |
+
{%- for content in message['content'] %}
|
| 96 |
+
{%- if content['type'] == 'image' %}
|
| 97 |
+
{{- '<|image|>' }}
|
| 98 |
+
{%- elif content['type'] == 'text' %}
|
| 99 |
+
{{- content['text'] }}
|
| 100 |
+
{%- endif %}
|
| 101 |
+
{%- endfor %}
|
| 102 |
+
{%- endif %}
|
| 103 |
+
{{- '<|python_end|>' }}
|
| 104 |
+
{%- for tool_call in message.tool_calls %}
|
| 105 |
+
{{- '{"name": "' + tool_call.function.name + '", ' }}
|
| 106 |
+
{{- '"parameters": ' }}
|
| 107 |
+
{{- tool_call.function.arguments | tojson }}
|
| 108 |
+
{{- "}" }}
|
| 109 |
+
{%- endfor %}
|
| 110 |
+
{{- "<|eot|>" }}
|
| 111 |
+
{%- elif message.role == "tool" or message.role == "ipython" %}
|
| 112 |
+
{{- "<|header_start|>ipython<|header_end|>\n\n" }}
|
| 113 |
+
{%- if message.content is mapping or message.content is iterable %}
|
| 114 |
+
{{- message.content | tojson }}
|
| 115 |
+
{%- else %}
|
| 116 |
+
{{- message.content }}
|
| 117 |
+
{%- endif %}
|
| 118 |
+
{{- "<|eot|>" }}
|
| 119 |
+
{%- endif %}
|
| 120 |
+
{%- endfor %}
|
| 121 |
+
{%- if add_generation_prompt %}
|
| 122 |
+
{{- '<|header_start|>assistant<|header_end|>\n\n' }}
|
| 123 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Llama4ForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_chunk_size": 8192,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"attn_scale": 0.1,
|
| 9 |
+
"attn_temperature_tuning": true,
|
| 10 |
+
"bos_token_id": 200000,
|
| 11 |
+
"cache_implementation": "hybrid",
|
| 12 |
+
"dtype": "bfloat16",
|
| 13 |
+
"eos_token_id": 200008,
|
| 14 |
+
"floor_scale": 8192,
|
| 15 |
+
"for_llm_compressor": false,
|
| 16 |
+
"head_dim": 128,
|
| 17 |
+
"hidden_act": "silu",
|
| 18 |
+
"hidden_size": 5120,
|
| 19 |
+
"initializer_range": 0.02,
|
| 20 |
+
"interleave_moe_layer_step": 1,
|
| 21 |
+
"intermediate_size": 8192,
|
| 22 |
+
"intermediate_size_mlp": 16384,
|
| 23 |
+
"layer_types": [
|
| 24 |
+
"chunked_attention",
|
| 25 |
+
"chunked_attention",
|
| 26 |
+
"chunked_attention",
|
| 27 |
+
"full_attention",
|
| 28 |
+
"chunked_attention",
|
| 29 |
+
"chunked_attention",
|
| 30 |
+
"chunked_attention",
|
| 31 |
+
"full_attention",
|
| 32 |
+
"chunked_attention",
|
| 33 |
+
"chunked_attention",
|
| 34 |
+
"chunked_attention",
|
| 35 |
+
"full_attention",
|
| 36 |
+
"chunked_attention",
|
| 37 |
+
"chunked_attention",
|
| 38 |
+
"chunked_attention",
|
| 39 |
+
"full_attention",
|
| 40 |
+
"chunked_attention",
|
| 41 |
+
"chunked_attention",
|
| 42 |
+
"chunked_attention",
|
| 43 |
+
"full_attention",
|
| 44 |
+
"chunked_attention",
|
| 45 |
+
"chunked_attention",
|
| 46 |
+
"chunked_attention",
|
| 47 |
+
"full_attention",
|
| 48 |
+
"chunked_attention",
|
| 49 |
+
"chunked_attention",
|
| 50 |
+
"chunked_attention",
|
| 51 |
+
"full_attention",
|
| 52 |
+
"chunked_attention",
|
| 53 |
+
"chunked_attention",
|
| 54 |
+
"chunked_attention",
|
| 55 |
+
"full_attention",
|
| 56 |
+
"chunked_attention",
|
| 57 |
+
"chunked_attention",
|
| 58 |
+
"chunked_attention",
|
| 59 |
+
"full_attention",
|
| 60 |
+
"chunked_attention",
|
| 61 |
+
"chunked_attention",
|
| 62 |
+
"chunked_attention",
|
| 63 |
+
"full_attention",
|
| 64 |
+
"chunked_attention",
|
| 65 |
+
"chunked_attention",
|
| 66 |
+
"chunked_attention",
|
| 67 |
+
"full_attention",
|
| 68 |
+
"chunked_attention",
|
| 69 |
+
"chunked_attention",
|
| 70 |
+
"chunked_attention",
|
| 71 |
+
"full_attention"
|
| 72 |
+
],
|
| 73 |
+
"max_position_embeddings": 10485760,
|
| 74 |
+
"model_type": "llama4_text",
|
| 75 |
+
"moe_layers": [
|
| 76 |
+
0,
|
| 77 |
+
1,
|
| 78 |
+
2,
|
| 79 |
+
3,
|
| 80 |
+
4,
|
| 81 |
+
5,
|
| 82 |
+
6,
|
| 83 |
+
7,
|
| 84 |
+
8,
|
| 85 |
+
9,
|
| 86 |
+
10,
|
| 87 |
+
11,
|
| 88 |
+
12,
|
| 89 |
+
13,
|
| 90 |
+
14,
|
| 91 |
+
15,
|
| 92 |
+
16,
|
| 93 |
+
17,
|
| 94 |
+
18,
|
| 95 |
+
19,
|
| 96 |
+
20,
|
| 97 |
+
21,
|
| 98 |
+
22,
|
| 99 |
+
23,
|
| 100 |
+
24,
|
| 101 |
+
25,
|
| 102 |
+
26,
|
| 103 |
+
27,
|
| 104 |
+
28,
|
| 105 |
+
29,
|
| 106 |
+
30,
|
| 107 |
+
31,
|
| 108 |
+
32,
|
| 109 |
+
33,
|
| 110 |
+
34,
|
| 111 |
+
35,
|
| 112 |
+
36,
|
| 113 |
+
37,
|
| 114 |
+
38,
|
| 115 |
+
39,
|
| 116 |
+
40,
|
| 117 |
+
41,
|
| 118 |
+
42,
|
| 119 |
+
43,
|
| 120 |
+
44,
|
| 121 |
+
45,
|
| 122 |
+
46,
|
| 123 |
+
47
|
| 124 |
+
],
|
| 125 |
+
"no_rope_layer_interval": 4,
|
| 126 |
+
"no_rope_layers": [
|
| 127 |
+
1,
|
| 128 |
+
1,
|
| 129 |
+
1,
|
| 130 |
+
0,
|
| 131 |
+
1,
|
| 132 |
+
1,
|
| 133 |
+
1,
|
| 134 |
+
0,
|
| 135 |
+
1,
|
| 136 |
+
1,
|
| 137 |
+
1,
|
| 138 |
+
0,
|
| 139 |
+
1,
|
| 140 |
+
1,
|
| 141 |
+
1,
|
| 142 |
+
0,
|
| 143 |
+
1,
|
| 144 |
+
1,
|
| 145 |
+
1,
|
| 146 |
+
0,
|
| 147 |
+
1,
|
| 148 |
+
1,
|
| 149 |
+
1,
|
| 150 |
+
0,
|
| 151 |
+
1,
|
| 152 |
+
1,
|
| 153 |
+
1,
|
| 154 |
+
0,
|
| 155 |
+
1,
|
| 156 |
+
1,
|
| 157 |
+
1,
|
| 158 |
+
0,
|
| 159 |
+
1,
|
| 160 |
+
1,
|
| 161 |
+
1,
|
| 162 |
+
0,
|
| 163 |
+
1,
|
| 164 |
+
1,
|
| 165 |
+
1,
|
| 166 |
+
0,
|
| 167 |
+
1,
|
| 168 |
+
1,
|
| 169 |
+
1,
|
| 170 |
+
0,
|
| 171 |
+
1,
|
| 172 |
+
1,
|
| 173 |
+
1,
|
| 174 |
+
0
|
| 175 |
+
],
|
| 176 |
+
"num_attention_heads": 40,
|
| 177 |
+
"num_experts_per_tok": 1,
|
| 178 |
+
"num_hidden_layers": 48,
|
| 179 |
+
"num_key_value_heads": 8,
|
| 180 |
+
"num_local_experts": 16,
|
| 181 |
+
"output_router_logits": false,
|
| 182 |
+
"pad_token_id": 200018,
|
| 183 |
+
"quantization_config": {
|
| 184 |
+
"_load_in_4bit": true,
|
| 185 |
+
"_load_in_8bit": false,
|
| 186 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 187 |
+
"bnb_4bit_quant_storage": "bfloat16",
|
| 188 |
+
"bnb_4bit_quant_type": "nf4",
|
| 189 |
+
"bnb_4bit_use_double_quant": false,
|
| 190 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
| 191 |
+
"llm_int8_has_fp16_weight": false,
|
| 192 |
+
"llm_int8_skip_modules": null,
|
| 193 |
+
"llm_int8_threshold": 6.0,
|
| 194 |
+
"load_in_4bit": true,
|
| 195 |
+
"load_in_8bit": false,
|
| 196 |
+
"quant_method": "bitsandbytes"
|
| 197 |
+
},
|
| 198 |
+
"rms_norm_eps": 1e-05,
|
| 199 |
+
"rope_parameters": {
|
| 200 |
+
"factor": 16.0,
|
| 201 |
+
"high_freq_factor": 1.0,
|
| 202 |
+
"low_freq_factor": 1.0,
|
| 203 |
+
"original_max_position_embeddings": 8192,
|
| 204 |
+
"rope_theta": 500000.0,
|
| 205 |
+
"rope_type": "llama3"
|
| 206 |
+
},
|
| 207 |
+
"router_aux_loss_coef": 0.001,
|
| 208 |
+
"router_jitter_noise": 0.0,
|
| 209 |
+
"tie_word_embeddings": false,
|
| 210 |
+
"transformers_version": "5.10.1",
|
| 211 |
+
"use_cache": false,
|
| 212 |
+
"use_qk_norm": true,
|
| 213 |
+
"vocab_size": 202048,
|
| 214 |
+
"torch_dtype": "bfloat16"
|
| 215 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<|begin_of_text|>",
|
| 3 |
+
"eos_token": "<|eot|>",
|
| 4 |
+
"pad_token": "<|finetune_right_pad|>"
|
| 5 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:172c9eb4beafc72601690da3ccfcede5c2e6806a8d5ec1fca33e22acea8023a4
|
| 3 |
+
size 27948578
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<|begin_of_text|>",
|
| 4 |
+
"clean_up_tokenization_spaces": false,
|
| 5 |
+
"eos_token": "<|eot|>",
|
| 6 |
+
"is_local": false,
|
| 7 |
+
"local_files_only": true,
|
| 8 |
+
"model_input_names": [
|
| 9 |
+
"input_ids",
|
| 10 |
+
"attention_mask"
|
| 11 |
+
],
|
| 12 |
+
"model_max_length": 10485760,
|
| 13 |
+
"pad_token": "<|finetune_right_pad|>",
|
| 14 |
+
"padding_side": "right",
|
| 15 |
+
"processor_class": "Llama4Processor",
|
| 16 |
+
"tokenizer_class": "TokenizersBackend"
|
| 17 |
+
}
|
trainer_state.json
ADDED
|
@@ -0,0 +1,515 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": null,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 3.0,
|
| 6 |
+
"eval_steps": 12,
|
| 7 |
+
"global_step": 63,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.047619047619047616,
|
| 14 |
+
"grad_norm": 26.258180618286133,
|
| 15 |
+
"learning_rate": 0.0,
|
| 16 |
+
"loss": 18.515625,
|
| 17 |
+
"step": 1
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.09523809523809523,
|
| 21 |
+
"grad_norm": 25.38199806213379,
|
| 22 |
+
"learning_rate": 2.5e-05,
|
| 23 |
+
"loss": 18.5859375,
|
| 24 |
+
"step": 2
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.14285714285714285,
|
| 28 |
+
"grad_norm": 18.595748901367188,
|
| 29 |
+
"learning_rate": 5e-05,
|
| 30 |
+
"loss": 16.6875,
|
| 31 |
+
"step": 3
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.19047619047619047,
|
| 35 |
+
"grad_norm": 9.914112091064453,
|
| 36 |
+
"learning_rate": 7.500000000000001e-05,
|
| 37 |
+
"loss": 12.1171875,
|
| 38 |
+
"step": 4
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 0.23809523809523808,
|
| 42 |
+
"grad_norm": 7.954200267791748,
|
| 43 |
+
"learning_rate": 0.0001,
|
| 44 |
+
"loss": 8.234375,
|
| 45 |
+
"step": 5
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"epoch": 0.2857142857142857,
|
| 49 |
+
"grad_norm": 6.762725353240967,
|
| 50 |
+
"learning_rate": 9.99362213054543e-05,
|
| 51 |
+
"loss": 4.021484375,
|
| 52 |
+
"step": 6
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"epoch": 0.3333333333333333,
|
| 56 |
+
"grad_norm": 4.886335849761963,
|
| 57 |
+
"learning_rate": 9.974506600945618e-05,
|
| 58 |
+
"loss": 1.10595703125,
|
| 59 |
+
"step": 7
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"epoch": 0.38095238095238093,
|
| 63 |
+
"grad_norm": 1.199355125427246,
|
| 64 |
+
"learning_rate": 9.942707596246052e-05,
|
| 65 |
+
"loss": 0.357177734375,
|
| 66 |
+
"step": 8
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"epoch": 0.42857142857142855,
|
| 70 |
+
"grad_norm": 0.6338489651679993,
|
| 71 |
+
"learning_rate": 9.8983152541804e-05,
|
| 72 |
+
"loss": 0.2091064453125,
|
| 73 |
+
"step": 9
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"epoch": 0.47619047619047616,
|
| 77 |
+
"grad_norm": 0.19402951002120972,
|
| 78 |
+
"learning_rate": 9.841455409665323e-05,
|
| 79 |
+
"loss": 0.16455078125,
|
| 80 |
+
"step": 10
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"epoch": 0.5238095238095238,
|
| 84 |
+
"grad_norm": 0.4312855005264282,
|
| 85 |
+
"learning_rate": 9.772289238107715e-05,
|
| 86 |
+
"loss": 0.17724609375,
|
| 87 |
+
"step": 11
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"epoch": 0.5714285714285714,
|
| 91 |
+
"grad_norm": 0.20777462422847748,
|
| 92 |
+
"learning_rate": 9.691012798535524e-05,
|
| 93 |
+
"loss": 0.1539306640625,
|
| 94 |
+
"step": 12
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"epoch": 0.6190476190476191,
|
| 98 |
+
"grad_norm": 0.6411371827125549,
|
| 99 |
+
"learning_rate": 9.59785647784711e-05,
|
| 100 |
+
"loss": 0.1865234375,
|
| 101 |
+
"step": 13
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"epoch": 0.6666666666666666,
|
| 105 |
+
"grad_norm": 0.3755132853984833,
|
| 106 |
+
"learning_rate": 9.493084337754573e-05,
|
| 107 |
+
"loss": 0.154541015625,
|
| 108 |
+
"step": 14
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"epoch": 0.7142857142857143,
|
| 112 |
+
"grad_norm": 0.21818028390407562,
|
| 113 |
+
"learning_rate": 9.376993366272128e-05,
|
| 114 |
+
"loss": 0.142333984375,
|
| 115 |
+
"step": 15
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"epoch": 0.7142857142857143,
|
| 119 |
+
"eval_loss": 0.10693359375,
|
| 120 |
+
"eval_runtime": 2.2629,
|
| 121 |
+
"eval_samples_per_second": 0.442,
|
| 122 |
+
"eval_steps_per_second": 0.442,
|
| 123 |
+
"step": 15
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"epoch": 0.7619047619047619,
|
| 127 |
+
"grad_norm": 0.3487852215766907,
|
| 128 |
+
"learning_rate": 9.249912635871318e-05,
|
| 129 |
+
"loss": 0.1746826171875,
|
| 130 |
+
"step": 16
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"epoch": 0.8095238095238095,
|
| 134 |
+
"grad_norm": 0.16560474038124084,
|
| 135 |
+
"learning_rate": 9.112202370689337e-05,
|
| 136 |
+
"loss": 0.14697265625,
|
| 137 |
+
"step": 17
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"epoch": 0.8571428571428571,
|
| 141 |
+
"grad_norm": 0.19229120016098022,
|
| 142 |
+
"learning_rate": 8.964252925434579e-05,
|
| 143 |
+
"loss": 0.15692138671875,
|
| 144 |
+
"step": 18
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"epoch": 0.9047619047619048,
|
| 148 |
+
"grad_norm": 0.2123524695634842,
|
| 149 |
+
"learning_rate": 8.806483678883803e-05,
|
| 150 |
+
"loss": 0.15576171875,
|
| 151 |
+
"step": 19
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"epoch": 0.9523809523809523,
|
| 155 |
+
"grad_norm": 0.15713752806186676,
|
| 156 |
+
"learning_rate": 8.639341845107433e-05,
|
| 157 |
+
"loss": 0.156982421875,
|
| 158 |
+
"step": 20
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"epoch": 1.0,
|
| 162 |
+
"grad_norm": 0.038992200046777725,
|
| 163 |
+
"learning_rate": 8.463301205792675e-05,
|
| 164 |
+
"loss": 0.14178466796875,
|
| 165 |
+
"step": 21
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"epoch": 1.0476190476190477,
|
| 169 |
+
"grad_norm": 0.09305933862924576,
|
| 170 |
+
"learning_rate": 8.278860767257865e-05,
|
| 171 |
+
"loss": 0.1387939453125,
|
| 172 |
+
"step": 22
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"epoch": 1.0952380952380953,
|
| 176 |
+
"grad_norm": 0.1505240797996521,
|
| 177 |
+
"learning_rate": 8.086543345964832e-05,
|
| 178 |
+
"loss": 0.13616943359375,
|
| 179 |
+
"step": 23
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"epoch": 1.1428571428571428,
|
| 183 |
+
"grad_norm": 0.18524615466594696,
|
| 184 |
+
"learning_rate": 7.886894086538841e-05,
|
| 185 |
+
"loss": 0.16064453125,
|
| 186 |
+
"step": 24
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"epoch": 1.1904761904761905,
|
| 190 |
+
"grad_norm": 0.06549176573753357,
|
| 191 |
+
"learning_rate": 7.680478916496926e-05,
|
| 192 |
+
"loss": 0.131591796875,
|
| 193 |
+
"step": 25
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"epoch": 1.2380952380952381,
|
| 197 |
+
"grad_norm": 0.11226853728294373,
|
| 198 |
+
"learning_rate": 7.46788294206485e-05,
|
| 199 |
+
"loss": 0.1463623046875,
|
| 200 |
+
"step": 26
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"epoch": 1.2857142857142856,
|
| 204 |
+
"grad_norm": 0.23010337352752686,
|
| 205 |
+
"learning_rate": 7.249708789629944e-05,
|
| 206 |
+
"loss": 0.14068603515625,
|
| 207 |
+
"step": 27
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"epoch": 1.2857142857142856,
|
| 211 |
+
"eval_loss": 0.10498046875,
|
| 212 |
+
"eval_runtime": 2.2511,
|
| 213 |
+
"eval_samples_per_second": 0.444,
|
| 214 |
+
"eval_steps_per_second": 0.444,
|
| 215 |
+
"step": 27
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"epoch": 1.3333333333333333,
|
| 219 |
+
"grad_norm": 0.10772109776735306,
|
| 220 |
+
"learning_rate": 7.026574897531137e-05,
|
| 221 |
+
"loss": 0.14404296875,
|
| 222 |
+
"step": 28
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"epoch": 1.380952380952381,
|
| 226 |
+
"grad_norm": 0.03903504088521004,
|
| 227 |
+
"learning_rate": 6.799113763028295e-05,
|
| 228 |
+
"loss": 0.14739990234375,
|
| 229 |
+
"step": 29
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"epoch": 1.4285714285714286,
|
| 233 |
+
"grad_norm": 0.05378051847219467,
|
| 234 |
+
"learning_rate": 6.567970149420018e-05,
|
| 235 |
+
"loss": 0.13970947265625,
|
| 236 |
+
"step": 30
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"epoch": 1.4761904761904763,
|
| 240 |
+
"grad_norm": 0.07061741501092911,
|
| 241 |
+
"learning_rate": 6.333799258392015e-05,
|
| 242 |
+
"loss": 0.1383056640625,
|
| 243 |
+
"step": 31
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"epoch": 1.5238095238095237,
|
| 247 |
+
"grad_norm": 0.07531730085611343,
|
| 248 |
+
"learning_rate": 6.097264872776749e-05,
|
| 249 |
+
"loss": 0.1275634765625,
|
| 250 |
+
"step": 32
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"epoch": 1.5714285714285714,
|
| 254 |
+
"grad_norm": 0.07265225052833557,
|
| 255 |
+
"learning_rate": 5.859037474988874e-05,
|
| 256 |
+
"loss": 0.135009765625,
|
| 257 |
+
"step": 33
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"epoch": 1.619047619047619,
|
| 261 |
+
"grad_norm": 0.045906394720077515,
|
| 262 |
+
"learning_rate": 5.6197923464699875e-05,
|
| 263 |
+
"loss": 0.13372802734375,
|
| 264 |
+
"step": 34
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"epoch": 1.6666666666666665,
|
| 268 |
+
"grad_norm": 0.05023833364248276,
|
| 269 |
+
"learning_rate": 5.3802076535300135e-05,
|
| 270 |
+
"loss": 0.12237548828125,
|
| 271 |
+
"step": 35
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"epoch": 1.7142857142857144,
|
| 275 |
+
"grad_norm": 0.053686026483774185,
|
| 276 |
+
"learning_rate": 5.140962525011126e-05,
|
| 277 |
+
"loss": 0.12164306640625,
|
| 278 |
+
"step": 36
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"epoch": 1.7619047619047619,
|
| 282 |
+
"grad_norm": 0.09860731661319733,
|
| 283 |
+
"learning_rate": 4.902735127223252e-05,
|
| 284 |
+
"loss": 0.14227294921875,
|
| 285 |
+
"step": 37
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"epoch": 1.8095238095238095,
|
| 289 |
+
"grad_norm": 0.05519683286547661,
|
| 290 |
+
"learning_rate": 4.6662007416079864e-05,
|
| 291 |
+
"loss": 0.1280517578125,
|
| 292 |
+
"step": 38
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"epoch": 1.8571428571428572,
|
| 296 |
+
"grad_norm": 0.09527605772018433,
|
| 297 |
+
"learning_rate": 4.432029850579983e-05,
|
| 298 |
+
"loss": 0.1417236328125,
|
| 299 |
+
"step": 39
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"epoch": 1.8571428571428572,
|
| 303 |
+
"eval_loss": 0.08642578125,
|
| 304 |
+
"eval_runtime": 2.2488,
|
| 305 |
+
"eval_samples_per_second": 0.445,
|
| 306 |
+
"eval_steps_per_second": 0.445,
|
| 307 |
+
"step": 39
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"epoch": 1.9047619047619047,
|
| 311 |
+
"grad_norm": 0.07749810069799423,
|
| 312 |
+
"learning_rate": 4.2008862369717074e-05,
|
| 313 |
+
"loss": 0.131103515625,
|
| 314 |
+
"step": 40
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"epoch": 1.9523809523809523,
|
| 318 |
+
"grad_norm": 0.06240750476717949,
|
| 319 |
+
"learning_rate": 3.973425102468864e-05,
|
| 320 |
+
"loss": 0.14178466796875,
|
| 321 |
+
"step": 41
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"epoch": 2.0,
|
| 325 |
+
"grad_norm": 0.05067940428853035,
|
| 326 |
+
"learning_rate": 3.750291210370057e-05,
|
| 327 |
+
"loss": 0.12774658203125,
|
| 328 |
+
"step": 42
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"epoch": 2.0476190476190474,
|
| 332 |
+
"grad_norm": 0.05685904249548912,
|
| 333 |
+
"learning_rate": 3.5321170579351516e-05,
|
| 334 |
+
"loss": 0.12432861328125,
|
| 335 |
+
"step": 43
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"epoch": 2.0952380952380953,
|
| 339 |
+
"grad_norm": 0.0624210424721241,
|
| 340 |
+
"learning_rate": 3.319521083503075e-05,
|
| 341 |
+
"loss": 0.11767578125,
|
| 342 |
+
"step": 44
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"epoch": 2.142857142857143,
|
| 346 |
+
"grad_norm": 0.054149359464645386,
|
| 347 |
+
"learning_rate": 3.113105913461159e-05,
|
| 348 |
+
"loss": 0.13458251953125,
|
| 349 |
+
"step": 45
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"epoch": 2.1904761904761907,
|
| 353 |
+
"grad_norm": 0.059766985476017,
|
| 354 |
+
"learning_rate": 2.9134566540351693e-05,
|
| 355 |
+
"loss": 0.12139892578125,
|
| 356 |
+
"step": 46
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"epoch": 2.238095238095238,
|
| 360 |
+
"grad_norm": 0.055334560573101044,
|
| 361 |
+
"learning_rate": 2.721139232742137e-05,
|
| 362 |
+
"loss": 0.132080078125,
|
| 363 |
+
"step": 47
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"epoch": 2.2857142857142856,
|
| 367 |
+
"grad_norm": 0.049609050154685974,
|
| 368 |
+
"learning_rate": 2.5366987942073267e-05,
|
| 369 |
+
"loss": 0.11822509765625,
|
| 370 |
+
"step": 48
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"epoch": 2.3333333333333335,
|
| 374 |
+
"grad_norm": 0.06382595002651215,
|
| 375 |
+
"learning_rate": 2.3606581548925695e-05,
|
| 376 |
+
"loss": 0.13330078125,
|
| 377 |
+
"step": 49
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"epoch": 2.380952380952381,
|
| 381 |
+
"grad_norm": 0.06832896173000336,
|
| 382 |
+
"learning_rate": 2.1935163211161985e-05,
|
| 383 |
+
"loss": 0.13916015625,
|
| 384 |
+
"step": 50
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"epoch": 2.4285714285714284,
|
| 388 |
+
"grad_norm": 0.041778020560741425,
|
| 389 |
+
"learning_rate": 2.0357470745654214e-05,
|
| 390 |
+
"loss": 0.13079833984375,
|
| 391 |
+
"step": 51
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"epoch": 2.4285714285714284,
|
| 395 |
+
"eval_loss": 0.087890625,
|
| 396 |
+
"eval_runtime": 2.2521,
|
| 397 |
+
"eval_samples_per_second": 0.444,
|
| 398 |
+
"eval_steps_per_second": 0.444,
|
| 399 |
+
"step": 51
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"epoch": 2.4761904761904763,
|
| 403 |
+
"grad_norm": 0.047971971333026886,
|
| 404 |
+
"learning_rate": 1.8877976293106646e-05,
|
| 405 |
+
"loss": 0.1259765625,
|
| 406 |
+
"step": 52
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"epoch": 2.5238095238095237,
|
| 410 |
+
"grad_norm": 0.06257976591587067,
|
| 411 |
+
"learning_rate": 1.7500873641286825e-05,
|
| 412 |
+
"loss": 0.11712646484375,
|
| 413 |
+
"step": 53
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"epoch": 2.571428571428571,
|
| 417 |
+
"grad_norm": 0.05711723119020462,
|
| 418 |
+
"learning_rate": 1.6230066337278724e-05,
|
| 419 |
+
"loss": 0.12890625,
|
| 420 |
+
"step": 54
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"epoch": 2.619047619047619,
|
| 424 |
+
"grad_norm": 0.06507477164268494,
|
| 425 |
+
"learning_rate": 1.5069156622454287e-05,
|
| 426 |
+
"loss": 0.12548828125,
|
| 427 |
+
"step": 55
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"epoch": 2.6666666666666665,
|
| 431 |
+
"grad_norm": 0.04118900001049042,
|
| 432 |
+
"learning_rate": 1.4021435221528906e-05,
|
| 433 |
+
"loss": 0.1136474609375,
|
| 434 |
+
"step": 56
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"epoch": 2.7142857142857144,
|
| 438 |
+
"grad_norm": 0.07443732768297195,
|
| 439 |
+
"learning_rate": 1.3089872014644771e-05,
|
| 440 |
+
"loss": 0.113037109375,
|
| 441 |
+
"step": 57
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"epoch": 2.761904761904762,
|
| 445 |
+
"grad_norm": 0.06563269346952438,
|
| 446 |
+
"learning_rate": 1.2277107618922843e-05,
|
| 447 |
+
"loss": 0.12896728515625,
|
| 448 |
+
"step": 58
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"epoch": 2.8095238095238093,
|
| 452 |
+
"grad_norm": 0.04780431464314461,
|
| 453 |
+
"learning_rate": 1.1585445903346783e-05,
|
| 454 |
+
"loss": 0.117431640625,
|
| 455 |
+
"step": 59
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"epoch": 2.857142857142857,
|
| 459 |
+
"grad_norm": 0.0709613487124443,
|
| 460 |
+
"learning_rate": 1.1016847458196001e-05,
|
| 461 |
+
"loss": 0.13092041015625,
|
| 462 |
+
"step": 60
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"epoch": 2.9047619047619047,
|
| 466 |
+
"grad_norm": 0.10224345326423645,
|
| 467 |
+
"learning_rate": 1.0572924037539496e-05,
|
| 468 |
+
"loss": 0.125,
|
| 469 |
+
"step": 61
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"epoch": 2.9523809523809526,
|
| 473 |
+
"grad_norm": 0.07073601335287094,
|
| 474 |
+
"learning_rate": 1.0254933990543831e-05,
|
| 475 |
+
"loss": 0.13189697265625,
|
| 476 |
+
"step": 62
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"epoch": 3.0,
|
| 480 |
+
"grad_norm": 0.0436314195394516,
|
| 481 |
+
"learning_rate": 1.0063778694545714e-05,
|
| 482 |
+
"loss": 0.117919921875,
|
| 483 |
+
"step": 63
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"epoch": 3.0,
|
| 487 |
+
"eval_loss": 0.08203125,
|
| 488 |
+
"eval_runtime": 2.2583,
|
| 489 |
+
"eval_samples_per_second": 0.443,
|
| 490 |
+
"eval_steps_per_second": 0.443,
|
| 491 |
+
"step": 63
|
| 492 |
+
}
|
| 493 |
+
],
|
| 494 |
+
"logging_steps": 1.0,
|
| 495 |
+
"max_steps": 63,
|
| 496 |
+
"num_input_tokens_seen": 0,
|
| 497 |
+
"num_train_epochs": 3,
|
| 498 |
+
"save_steps": 0,
|
| 499 |
+
"stateful_callbacks": {
|
| 500 |
+
"TrainerControl": {
|
| 501 |
+
"args": {
|
| 502 |
+
"should_epoch_stop": false,
|
| 503 |
+
"should_evaluate": false,
|
| 504 |
+
"should_log": false,
|
| 505 |
+
"should_save": true,
|
| 506 |
+
"should_training_stop": true
|
| 507 |
+
},
|
| 508 |
+
"attributes": {}
|
| 509 |
+
}
|
| 510 |
+
},
|
| 511 |
+
"total_flos": 1.365649123801301e+18,
|
| 512 |
+
"train_batch_size": 1,
|
| 513 |
+
"trial_name": null,
|
| 514 |
+
"trial_params": null
|
| 515 |
+
}
|
training-metrics.png
ADDED
|
Git LFS Details
|
win-rates.png
ADDED
|
Git LFS Details
|