Instructions to use sudip-adaption/adaption_squad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use sudip-adaption/adaption_squad with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("togethercomputer/gemma-3-4b-it") model = PeftModel.from_pretrained(base_model, "sudip-adaption/adaption_squad") - Notebooks
- Google Colab
- Kaggle
Add 11 files
Browse files- .gitattributes +2 -0
- README.md +99 -0
- adapter_config.json +39 -0
- adapter_model.safetensors +3 -0
- chat_template.jinja +47 -0
- config.json +81 -0
- special_tokens_map.json +10 -0
- tokenizer.json +3 -0
- tokenizer_config.json +26 -0
- trainer_state.json +242 -0
- training-metrics.png +3 -0
- win-rates.png +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ 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 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: google/gemma-3-4b-it
|
| 3 |
+
library_name: peft
|
| 4 |
+
license: other
|
| 5 |
+
tags:
|
| 6 |
+
- lora
|
| 7 |
+
- peft
|
| 8 |
+
- adapter
|
| 9 |
+
- adaption
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# adaption_squad
|
| 13 |
+
|
| 14 |
+
## Model Training
|
| 15 |
+
|
| 16 |
+
A LORA adapter for `google/gemma-3-4b-it`. This model was trained with SFT using [Adaption](https://adaptionlabs.ai)'s AutoScientist on the squad dataset.
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
|
| 21 |
+
### AutoScientist Config
|
| 22 |
+
|
| 23 |
+
```json
|
| 24 |
+
{
|
| 25 |
+
"job_id": "8c344f89-f58e-4c8b-88d9-7fd1b5fe68f2",
|
| 26 |
+
"training_experiment_id": "0404a0ec-3d8c-46d3-8189-ab747b9c5bee",
|
| 27 |
+
"original_model_name": "google/gemma-3-4b-it",
|
| 28 |
+
"trained_model_name": "adaption_squad",
|
| 29 |
+
"training_method": "sft",
|
| 30 |
+
"training_type": "lora",
|
| 31 |
+
"data_format": "chat",
|
| 32 |
+
"hyperparams": {
|
| 33 |
+
"lora": "true",
|
| 34 |
+
"lora_r": 16,
|
| 35 |
+
"n_evals": 5,
|
| 36 |
+
"n_epochs": 1,
|
| 37 |
+
"batch_size": "max",
|
| 38 |
+
"lora_alpha": 32,
|
| 39 |
+
"lora_dropout": 0,
|
| 40 |
+
"min_lr_ratio": 0.1,
|
| 41 |
+
"warmup_ratio": 0.1,
|
| 42 |
+
"weight_decay": 0,
|
| 43 |
+
"learning_rate": 0.00001,
|
| 44 |
+
"max_grad_norm": 2,
|
| 45 |
+
"base_model_size": "4B",
|
| 46 |
+
"train_on_inputs": "false",
|
| 47 |
+
"training_method": "sft",
|
| 48 |
+
"lr_scheduler_type": "cosine",
|
| 49 |
+
"scheduler_num_cycles": 0.5,
|
| 50 |
+
"lora_trainable_modules": "all-linear"
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
## Training Data
|
| 56 |
+
|
| 57 |
+
The model was trained on 27,644 rows of adapted data with the following domain distribution: sports (76%), history (10%), geography (5%), entertainment (3%), architecture-design (1%), corporate-business (1%), culture (1%), marketing (1%), governance (1%), art (0%), music (0%), language (0%), travel (0%), medical (0%), academic-education (0%), news (0%), games (0%).
|
| 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 = "google/gemma-3-4b-it"
|
| 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,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "togethercomputer/gemma-3-4b-it",
|
| 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": 32,
|
| 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": 16,
|
| 24 |
+
"rank_pattern": {},
|
| 25 |
+
"revision": null,
|
| 26 |
+
"target_modules": [
|
| 27 |
+
"o_proj",
|
| 28 |
+
"q_proj",
|
| 29 |
+
"up_proj",
|
| 30 |
+
"gate_proj",
|
| 31 |
+
"down_proj",
|
| 32 |
+
"k_proj",
|
| 33 |
+
"v_proj"
|
| 34 |
+
],
|
| 35 |
+
"task_type": "CAUSAL_LM",
|
| 36 |
+
"trainable_token_indices": null,
|
| 37 |
+
"use_dora": false,
|
| 38 |
+
"use_rslora": false
|
| 39 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdbd399cad45449b17e5682ffac9d5b092e954de997a388b687c8f7ae1f0f034
|
| 3 |
+
size 119273568
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{ bos_token }}
|
| 2 |
+
{%- if messages[0]['role'] == 'system' -%}
|
| 3 |
+
{%- if messages[0]['content'] is string -%}
|
| 4 |
+
{%- set first_user_prefix = messages[0]['content'] + '
|
| 5 |
+
|
| 6 |
+
' -%}
|
| 7 |
+
{%- else -%}
|
| 8 |
+
{%- set first_user_prefix = messages[0]['content'][0]['text'] + '
|
| 9 |
+
|
| 10 |
+
' -%}
|
| 11 |
+
{%- endif -%}
|
| 12 |
+
{%- set loop_messages = messages[1:] -%}
|
| 13 |
+
{%- else -%}
|
| 14 |
+
{%- set first_user_prefix = "" -%}
|
| 15 |
+
{%- set loop_messages = messages -%}
|
| 16 |
+
{%- endif -%}
|
| 17 |
+
{%- for message in loop_messages -%}
|
| 18 |
+
{%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%}
|
| 19 |
+
{{ raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") }}
|
| 20 |
+
{%- endif -%}
|
| 21 |
+
{%- if (message['role'] == 'assistant') -%}
|
| 22 |
+
{%- set role = "model" -%}
|
| 23 |
+
{%- else -%}
|
| 24 |
+
{%- set role = message['role'] -%}
|
| 25 |
+
{%- endif -%}
|
| 26 |
+
{{ '<start_of_turn>' + role + '
|
| 27 |
+
' + (first_user_prefix if loop.first else "") }}
|
| 28 |
+
{%- if message['content'] is string -%}
|
| 29 |
+
{{ message['content'] | trim }}
|
| 30 |
+
{%- elif message['content'] is iterable -%}
|
| 31 |
+
{%- for item in message['content'] -%}
|
| 32 |
+
{%- if item['type'] == 'image' -%}
|
| 33 |
+
{{ '<start_of_image>' }}
|
| 34 |
+
{%- elif item['type'] == 'text' -%}
|
| 35 |
+
{{ item['text'] | trim }}
|
| 36 |
+
{%- endif -%}
|
| 37 |
+
{%- endfor -%}
|
| 38 |
+
{%- else -%}
|
| 39 |
+
{{ raise_exception("Invalid content type") }}
|
| 40 |
+
{%- endif -%}
|
| 41 |
+
{{ '<end_of_turn>
|
| 42 |
+
' }}
|
| 43 |
+
{%- endfor -%}
|
| 44 |
+
{%- if add_generation_prompt -%}
|
| 45 |
+
{{'<start_of_turn>model
|
| 46 |
+
'}}
|
| 47 |
+
{%- endif -%}
|
config.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_sliding_window_pattern": 6,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Gemma3ForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"attn_logit_softcapping": null,
|
| 9 |
+
"bos_token_id": 2,
|
| 10 |
+
"dtype": "bfloat16",
|
| 11 |
+
"eos_token_id": 1,
|
| 12 |
+
"final_logit_softcapping": null,
|
| 13 |
+
"head_dim": 256,
|
| 14 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
| 15 |
+
"hidden_size": 2560,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 10240,
|
| 18 |
+
"layer_types": [
|
| 19 |
+
"sliding_attention",
|
| 20 |
+
"sliding_attention",
|
| 21 |
+
"sliding_attention",
|
| 22 |
+
"sliding_attention",
|
| 23 |
+
"sliding_attention",
|
| 24 |
+
"full_attention",
|
| 25 |
+
"sliding_attention",
|
| 26 |
+
"sliding_attention",
|
| 27 |
+
"sliding_attention",
|
| 28 |
+
"sliding_attention",
|
| 29 |
+
"sliding_attention",
|
| 30 |
+
"full_attention",
|
| 31 |
+
"sliding_attention",
|
| 32 |
+
"sliding_attention",
|
| 33 |
+
"sliding_attention",
|
| 34 |
+
"sliding_attention",
|
| 35 |
+
"sliding_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"sliding_attention",
|
| 38 |
+
"sliding_attention",
|
| 39 |
+
"sliding_attention",
|
| 40 |
+
"sliding_attention",
|
| 41 |
+
"sliding_attention",
|
| 42 |
+
"full_attention",
|
| 43 |
+
"sliding_attention",
|
| 44 |
+
"sliding_attention",
|
| 45 |
+
"sliding_attention",
|
| 46 |
+
"sliding_attention",
|
| 47 |
+
"sliding_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"sliding_attention",
|
| 50 |
+
"sliding_attention",
|
| 51 |
+
"sliding_attention",
|
| 52 |
+
"sliding_attention"
|
| 53 |
+
],
|
| 54 |
+
"max_position_embeddings": 131072,
|
| 55 |
+
"mm_tokens_per_image": 256,
|
| 56 |
+
"model_type": "gemma3_text",
|
| 57 |
+
"num_attention_heads": 8,
|
| 58 |
+
"num_hidden_layers": 34,
|
| 59 |
+
"num_key_value_heads": 4,
|
| 60 |
+
"pad_token_id": 0,
|
| 61 |
+
"query_pre_attn_scalar": 256,
|
| 62 |
+
"rms_norm_eps": 1e-06,
|
| 63 |
+
"rope_parameters": {
|
| 64 |
+
"full_attention": {
|
| 65 |
+
"factor": 8.0,
|
| 66 |
+
"rope_theta": 1000000.0,
|
| 67 |
+
"rope_type": "linear"
|
| 68 |
+
},
|
| 69 |
+
"sliding_attention": {
|
| 70 |
+
"rope_theta": 10000.0,
|
| 71 |
+
"rope_type": "default"
|
| 72 |
+
}
|
| 73 |
+
},
|
| 74 |
+
"sliding_window": 1024,
|
| 75 |
+
"tie_word_embeddings": true,
|
| 76 |
+
"transformers_version": "5.10.1",
|
| 77 |
+
"use_bidirectional_attention": false,
|
| 78 |
+
"use_cache": false,
|
| 79 |
+
"vocab_size": 262208,
|
| 80 |
+
"torch_dtype": "bfloat16"
|
| 81 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"boi_token": "<start_of_image>",
|
| 3 |
+
"bos_token": "<bos>",
|
| 4 |
+
"eoi_token": "<end_of_image>",
|
| 5 |
+
"eos_token": "<eos>",
|
| 6 |
+
"image_token": "<image_soft_token>",
|
| 7 |
+
"mask_token": "<mask>",
|
| 8 |
+
"pad_token": "<pad>",
|
| 9 |
+
"unk_token": "<unk>"
|
| 10 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:daab2354f8a74e70d70b4d1f804939b68a8c9624dd06cb7858e52dd8970e9726
|
| 3 |
+
size 33384567
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"boi_token": "<start_of_image>",
|
| 4 |
+
"bos_token": "<bos>",
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eoi_token": "<end_of_image>",
|
| 7 |
+
"eos_token": "<eos>",
|
| 8 |
+
"image_token": "<image_soft_token>",
|
| 9 |
+
"is_local": false,
|
| 10 |
+
"local_files_only": true,
|
| 11 |
+
"mask_token": "<mask>",
|
| 12 |
+
"model_max_length": 131072,
|
| 13 |
+
"model_specific_special_tokens": {
|
| 14 |
+
"boi_token": "<start_of_image>",
|
| 15 |
+
"eoi_token": "<end_of_image>",
|
| 16 |
+
"image_token": "<image_soft_token>"
|
| 17 |
+
},
|
| 18 |
+
"pad_token": "<pad>",
|
| 19 |
+
"padding_side": "right",
|
| 20 |
+
"processor_class": "Gemma3Processor",
|
| 21 |
+
"sp_model_kwargs": null,
|
| 22 |
+
"spaces_between_special_tokens": false,
|
| 23 |
+
"tokenizer_class": "GemmaTokenizer",
|
| 24 |
+
"unk_token": "<unk>",
|
| 25 |
+
"use_default_system_prompt": false
|
| 26 |
+
}
|
trainer_state.json
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": null,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 1.0,
|
| 6 |
+
"eval_steps": 4,
|
| 7 |
+
"global_step": 24,
|
| 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.041666666666666664,
|
| 14 |
+
"grad_norm": 1.7443342208862305,
|
| 15 |
+
"learning_rate": 0.0,
|
| 16 |
+
"loss": 2.9140625,
|
| 17 |
+
"step": 1
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.08333333333333333,
|
| 21 |
+
"grad_norm": 0.6939694881439209,
|
| 22 |
+
"learning_rate": 3.3333333333333333e-06,
|
| 23 |
+
"loss": 1.904296875,
|
| 24 |
+
"step": 2
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.125,
|
| 28 |
+
"grad_norm": 0.9981868267059326,
|
| 29 |
+
"learning_rate": 6.666666666666667e-06,
|
| 30 |
+
"loss": 2.17431640625,
|
| 31 |
+
"step": 3
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.16666666666666666,
|
| 35 |
+
"grad_norm": 1.2372512817382812,
|
| 36 |
+
"learning_rate": 1e-05,
|
| 37 |
+
"loss": 2.482421875,
|
| 38 |
+
"step": 4
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 0.20833333333333334,
|
| 42 |
+
"grad_norm": 1.0146492719650269,
|
| 43 |
+
"learning_rate": 9.94973871801308e-06,
|
| 44 |
+
"loss": 2.31640625,
|
| 45 |
+
"step": 5
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"epoch": 0.25,
|
| 49 |
+
"grad_norm": 1.3084410429000854,
|
| 50 |
+
"learning_rate": 9.800077626037633e-06,
|
| 51 |
+
"loss": 2.517578125,
|
| 52 |
+
"step": 6
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"epoch": 0.2916666666666667,
|
| 56 |
+
"grad_norm": 1.0703275203704834,
|
| 57 |
+
"learning_rate": 9.554359905560887e-06,
|
| 58 |
+
"loss": 2.3740234375,
|
| 59 |
+
"step": 7
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"epoch": 0.3333333333333333,
|
| 63 |
+
"grad_norm": 1.1062793731689453,
|
| 64 |
+
"learning_rate": 9.218074484421977e-06,
|
| 65 |
+
"loss": 2.376953125,
|
| 66 |
+
"step": 8
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"epoch": 0.3333333333333333,
|
| 70 |
+
"eval_loss": 2.390625,
|
| 71 |
+
"eval_runtime": 2.5769,
|
| 72 |
+
"eval_samples_per_second": 0.776,
|
| 73 |
+
"eval_steps_per_second": 0.388,
|
| 74 |
+
"step": 8
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"epoch": 0.375,
|
| 78 |
+
"grad_norm": 1.0547977685928345,
|
| 79 |
+
"learning_rate": 8.79873342323422e-06,
|
| 80 |
+
"loss": 2.29827880859375,
|
| 81 |
+
"step": 9
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"epoch": 0.4166666666666667,
|
| 85 |
+
"grad_norm": 1.1507635116577148,
|
| 86 |
+
"learning_rate": 8.305704108364301e-06,
|
| 87 |
+
"loss": 2.388671875,
|
| 88 |
+
"step": 10
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"epoch": 0.4583333333333333,
|
| 92 |
+
"grad_norm": 1.0763663053512573,
|
| 93 |
+
"learning_rate": 7.75e-06,
|
| 94 |
+
"loss": 2.345703125,
|
| 95 |
+
"step": 11
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"epoch": 0.5,
|
| 99 |
+
"grad_norm": 0.8644738793373108,
|
| 100 |
+
"learning_rate": 7.144034609648779e-06,
|
| 101 |
+
"loss": 2.1279296875,
|
| 102 |
+
"step": 12
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"epoch": 0.5,
|
| 106 |
+
"eval_loss": 2.2890625,
|
| 107 |
+
"eval_runtime": 2.5807,
|
| 108 |
+
"eval_samples_per_second": 0.775,
|
| 109 |
+
"eval_steps_per_second": 0.387,
|
| 110 |
+
"step": 12
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"epoch": 0.5416666666666666,
|
| 114 |
+
"grad_norm": 0.9719507694244385,
|
| 115 |
+
"learning_rate": 6.501344202803415e-06,
|
| 116 |
+
"loss": 2.2490234375,
|
| 117 |
+
"step": 13
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"epoch": 0.5833333333333334,
|
| 121 |
+
"grad_norm": 0.8876709938049316,
|
| 122 |
+
"learning_rate": 5.83628542113891e-06,
|
| 123 |
+
"loss": 2.150390625,
|
| 124 |
+
"step": 14
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"epoch": 0.625,
|
| 128 |
+
"grad_norm": 0.6461179852485657,
|
| 129 |
+
"learning_rate": 5.163714578861091e-06,
|
| 130 |
+
"loss": 1.770751953125,
|
| 131 |
+
"step": 15
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"epoch": 0.6666666666666666,
|
| 135 |
+
"grad_norm": 0.9092628359794617,
|
| 136 |
+
"learning_rate": 4.4986557971965865e-06,
|
| 137 |
+
"loss": 2.205078125,
|
| 138 |
+
"step": 16
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"epoch": 0.6666666666666666,
|
| 142 |
+
"eval_loss": 2.19140625,
|
| 143 |
+
"eval_runtime": 2.5791,
|
| 144 |
+
"eval_samples_per_second": 0.775,
|
| 145 |
+
"eval_steps_per_second": 0.388,
|
| 146 |
+
"step": 16
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"epoch": 0.7083333333333334,
|
| 150 |
+
"grad_norm": 0.8737649917602539,
|
| 151 |
+
"learning_rate": 3.855965390351223e-06,
|
| 152 |
+
"loss": 2.1943359375,
|
| 153 |
+
"step": 17
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"epoch": 0.75,
|
| 157 |
+
"grad_norm": 0.700472891330719,
|
| 158 |
+
"learning_rate": 3.2500000000000015e-06,
|
| 159 |
+
"loss": 1.80035400390625,
|
| 160 |
+
"step": 18
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"epoch": 0.7916666666666666,
|
| 164 |
+
"grad_norm": 1.0030174255371094,
|
| 165 |
+
"learning_rate": 2.6942958916356997e-06,
|
| 166 |
+
"loss": 2.23828125,
|
| 167 |
+
"step": 19
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"epoch": 0.8333333333333334,
|
| 171 |
+
"grad_norm": 0.8105897903442383,
|
| 172 |
+
"learning_rate": 2.2012665767657825e-06,
|
| 173 |
+
"loss": 1.911865234375,
|
| 174 |
+
"step": 20
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"epoch": 0.8333333333333334,
|
| 178 |
+
"eval_loss": 2.14453125,
|
| 179 |
+
"eval_runtime": 2.5866,
|
| 180 |
+
"eval_samples_per_second": 0.773,
|
| 181 |
+
"eval_steps_per_second": 0.387,
|
| 182 |
+
"step": 20
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"epoch": 0.875,
|
| 186 |
+
"grad_norm": 0.8769823312759399,
|
| 187 |
+
"learning_rate": 1.7819255155780241e-06,
|
| 188 |
+
"loss": 2.140625,
|
| 189 |
+
"step": 21
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"epoch": 0.9166666666666666,
|
| 193 |
+
"grad_norm": 0.7764416337013245,
|
| 194 |
+
"learning_rate": 1.4456400944391147e-06,
|
| 195 |
+
"loss": 2.0595703125,
|
| 196 |
+
"step": 22
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"epoch": 0.9583333333333334,
|
| 200 |
+
"grad_norm": 0.8468369245529175,
|
| 201 |
+
"learning_rate": 1.1999223739623667e-06,
|
| 202 |
+
"loss": 2.0947265625,
|
| 203 |
+
"step": 23
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"epoch": 1.0,
|
| 207 |
+
"grad_norm": 1.2951644659042358,
|
| 208 |
+
"learning_rate": 1.0502612819869219e-06,
|
| 209 |
+
"loss": 2.4521484375,
|
| 210 |
+
"step": 24
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"epoch": 1.0,
|
| 214 |
+
"eval_loss": 2.13671875,
|
| 215 |
+
"eval_runtime": 2.5792,
|
| 216 |
+
"eval_samples_per_second": 0.775,
|
| 217 |
+
"eval_steps_per_second": 0.388,
|
| 218 |
+
"step": 24
|
| 219 |
+
}
|
| 220 |
+
],
|
| 221 |
+
"logging_steps": 1.0,
|
| 222 |
+
"max_steps": 24,
|
| 223 |
+
"num_input_tokens_seen": 0,
|
| 224 |
+
"num_train_epochs": 1,
|
| 225 |
+
"save_steps": 0,
|
| 226 |
+
"stateful_callbacks": {
|
| 227 |
+
"TrainerControl": {
|
| 228 |
+
"args": {
|
| 229 |
+
"should_epoch_stop": false,
|
| 230 |
+
"should_evaluate": false,
|
| 231 |
+
"should_log": false,
|
| 232 |
+
"should_save": true,
|
| 233 |
+
"should_training_stop": true
|
| 234 |
+
},
|
| 235 |
+
"attributes": {}
|
| 236 |
+
}
|
| 237 |
+
},
|
| 238 |
+
"total_flos": 4.866689140302807e+17,
|
| 239 |
+
"train_batch_size": 1,
|
| 240 |
+
"trial_name": null,
|
| 241 |
+
"trial_params": null
|
| 242 |
+
}
|
training-metrics.png
ADDED
|
Git LFS Details
|
win-rates.png
ADDED
|