Instructions to use ram-lexsi/agenttune-testrun-DPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ram-lexsi/agenttune-testrun-DPO with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ram-lexsi/agenttune-testrun-DPO", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- README.md +73 -0
- adapter_config.json +45 -0
- adapter_model.safetensors +3 -0
- chat_template.jinja +6 -0
- checkpoint-5/README.md +209 -0
- checkpoint-5/adapter_config.json +45 -0
- checkpoint-5/adapter_model.safetensors +3 -0
- checkpoint-5/chat_template.jinja +6 -0
- checkpoint-5/optimizer.pt +3 -0
- checkpoint-5/rng_state.pth +3 -0
- checkpoint-5/scheduler.pt +3 -0
- checkpoint-5/tokenizer.json +0 -0
- checkpoint-5/tokenizer_config.json +19 -0
- checkpoint-5/trainer_state.json +124 -0
- checkpoint-5/training_args.bin +3 -0
- dpo_config.yaml +143 -0
- tokenizer.json +0 -0
- tokenizer_config.json +19 -0
- training_args.bin +3 -0
- training_stats.json +83 -0
README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: HuggingFaceTB/SmolLM2-360M-Instruct
|
| 3 |
+
library_name: peft
|
| 4 |
+
model_name: out_dpo
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:HuggingFaceTB/SmolLM2-360M-Instruct
|
| 7 |
+
- dpo
|
| 8 |
+
- lora
|
| 9 |
+
- transformers
|
| 10 |
+
- trl
|
| 11 |
+
licence: license
|
| 12 |
+
pipeline_tag: text-generation
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Model Card for out_dpo
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned version of [HuggingFaceTB/SmolLM2-360M-Instruct](https://huggingface.co/HuggingFaceTB/SmolLM2-360M-Instruct).
|
| 18 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 19 |
+
|
| 20 |
+
## Quick start
|
| 21 |
+
|
| 22 |
+
```python
|
| 23 |
+
from transformers import pipeline
|
| 24 |
+
|
| 25 |
+
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
| 26 |
+
generator = pipeline("text-generation", model="None", device="cuda")
|
| 27 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
| 28 |
+
print(output["generated_text"])
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## Training procedure
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
This model was trained with DPO, a method introduced in [Direct Preference Optimization: Your Language Model is Secretly a Reward Model](https://huggingface.co/papers/2305.18290).
|
| 38 |
+
|
| 39 |
+
### Framework versions
|
| 40 |
+
|
| 41 |
+
- PEFT 0.20.0
|
| 42 |
+
- TRL: 1.7.1
|
| 43 |
+
- Transformers: 5.16.1
|
| 44 |
+
- Pytorch: 2.11.0+cu128
|
| 45 |
+
- Datasets: 5.0.1
|
| 46 |
+
- Tokenizers: 0.23.1
|
| 47 |
+
|
| 48 |
+
## Citations
|
| 49 |
+
|
| 50 |
+
Cite DPO as:
|
| 51 |
+
|
| 52 |
+
```bibtex
|
| 53 |
+
@inproceedings{rafailov2023direct,
|
| 54 |
+
title = {{Direct Preference Optimization: Your Language Model is Secretly a Reward Model}},
|
| 55 |
+
author = {Rafael Rafailov and Archit Sharma and Eric Mitchell and Christopher D. Manning and Stefano Ermon and Chelsea Finn},
|
| 56 |
+
year = 2023,
|
| 57 |
+
booktitle = {Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023},
|
| 58 |
+
url = {http://papers.nips.cc/paper_files/paper/2023/hash/a85b405ed65c6477a4fe8302b5e06ce7-Abstract-Conference.html},
|
| 59 |
+
editor = {Alice Oh and Tristan Naumann and Amir Globerson and Kate Saenko and Moritz Hardt and Sergey Levine},
|
| 60 |
+
}
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
Cite TRL as:
|
| 64 |
+
|
| 65 |
+
```bibtex
|
| 66 |
+
@software{vonwerra2020trl,
|
| 67 |
+
title = {{TRL: Transformers Reinforcement Learning}},
|
| 68 |
+
author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
|
| 69 |
+
license = {Apache-2.0},
|
| 70 |
+
url = {https://github.com/huggingface/trl},
|
| 71 |
+
year = {2020}
|
| 72 |
+
}
|
| 73 |
+
```
|
adapter_config.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "HuggingFaceTB/SmolLM2-360M-Instruct",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 16,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.0,
|
| 22 |
+
"lora_ga_config": null,
|
| 23 |
+
"megatron_config": null,
|
| 24 |
+
"megatron_core": "megatron.core",
|
| 25 |
+
"modules_to_save": null,
|
| 26 |
+
"monteclora_config": null,
|
| 27 |
+
"peft_type": "LORA",
|
| 28 |
+
"peft_version": "0.20.0",
|
| 29 |
+
"qalora_group_size": 16,
|
| 30 |
+
"r": 8,
|
| 31 |
+
"rank_pattern": {},
|
| 32 |
+
"revision": null,
|
| 33 |
+
"target_modules": [
|
| 34 |
+
"q_proj",
|
| 35 |
+
"v_proj"
|
| 36 |
+
],
|
| 37 |
+
"target_parameters": null,
|
| 38 |
+
"task_type": "CAUSAL_LM",
|
| 39 |
+
"trainable_token_indices": null,
|
| 40 |
+
"use_bdlora": null,
|
| 41 |
+
"use_dora": false,
|
| 42 |
+
"use_qalora": false,
|
| 43 |
+
"use_rslora": false,
|
| 44 |
+
"velora_config": null
|
| 45 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c5a35c6e17b374794dbe53dea3228d6711883c462a170b9aeed823e1da7e0ad5
|
| 3 |
+
size 3293480
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system
|
| 2 |
+
You are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>
|
| 3 |
+
' }}{% endif %}{{'<|im_start|>' + message['role'] + '
|
| 4 |
+
' + message['content'] + '<|im_end|>' + '
|
| 5 |
+
'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
|
| 6 |
+
' }}{% endif %}
|
checkpoint-5/README.md
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: HuggingFaceTB/SmolLM2-360M-Instruct
|
| 3 |
+
library_name: peft
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:HuggingFaceTB/SmolLM2-360M-Instruct
|
| 7 |
+
- dpo
|
| 8 |
+
- lora
|
| 9 |
+
- transformers
|
| 10 |
+
- trl
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Model Card for Model ID
|
| 14 |
+
|
| 15 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
## Model Details
|
| 20 |
+
|
| 21 |
+
### Model Description
|
| 22 |
+
|
| 23 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
- **Developed by:** [More Information Needed]
|
| 28 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 29 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 30 |
+
- **Model type:** [More Information Needed]
|
| 31 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 32 |
+
- **License:** [More Information Needed]
|
| 33 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 34 |
+
|
| 35 |
+
### Model Sources [optional]
|
| 36 |
+
|
| 37 |
+
<!-- Provide the basic links for the model. -->
|
| 38 |
+
|
| 39 |
+
- **Repository:** [More Information Needed]
|
| 40 |
+
- **Paper [optional]:** [More Information Needed]
|
| 41 |
+
- **Demo [optional]:** [More Information Needed]
|
| 42 |
+
|
| 43 |
+
## Uses
|
| 44 |
+
|
| 45 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 46 |
+
|
| 47 |
+
### Direct Use
|
| 48 |
+
|
| 49 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 50 |
+
|
| 51 |
+
[More Information Needed]
|
| 52 |
+
|
| 53 |
+
### Downstream Use [optional]
|
| 54 |
+
|
| 55 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 56 |
+
|
| 57 |
+
[More Information Needed]
|
| 58 |
+
|
| 59 |
+
### Out-of-Scope Use
|
| 60 |
+
|
| 61 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 62 |
+
|
| 63 |
+
[More Information Needed]
|
| 64 |
+
|
| 65 |
+
## Bias, Risks, and Limitations
|
| 66 |
+
|
| 67 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 68 |
+
|
| 69 |
+
[More Information Needed]
|
| 70 |
+
|
| 71 |
+
### Recommendations
|
| 72 |
+
|
| 73 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 74 |
+
|
| 75 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 76 |
+
|
| 77 |
+
## How to Get Started with the Model
|
| 78 |
+
|
| 79 |
+
Use the code below to get started with the model.
|
| 80 |
+
|
| 81 |
+
[More Information Needed]
|
| 82 |
+
|
| 83 |
+
## Training Details
|
| 84 |
+
|
| 85 |
+
### Training Data
|
| 86 |
+
|
| 87 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 88 |
+
|
| 89 |
+
[More Information Needed]
|
| 90 |
+
|
| 91 |
+
### Training Procedure
|
| 92 |
+
|
| 93 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 94 |
+
|
| 95 |
+
#### Preprocessing [optional]
|
| 96 |
+
|
| 97 |
+
[More Information Needed]
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
#### Training Hyperparameters
|
| 101 |
+
|
| 102 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 103 |
+
|
| 104 |
+
#### Speeds, Sizes, Times [optional]
|
| 105 |
+
|
| 106 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 107 |
+
|
| 108 |
+
[More Information Needed]
|
| 109 |
+
|
| 110 |
+
## Evaluation
|
| 111 |
+
|
| 112 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 113 |
+
|
| 114 |
+
### Testing Data, Factors & Metrics
|
| 115 |
+
|
| 116 |
+
#### Testing Data
|
| 117 |
+
|
| 118 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 119 |
+
|
| 120 |
+
[More Information Needed]
|
| 121 |
+
|
| 122 |
+
#### Factors
|
| 123 |
+
|
| 124 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 125 |
+
|
| 126 |
+
[More Information Needed]
|
| 127 |
+
|
| 128 |
+
#### Metrics
|
| 129 |
+
|
| 130 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 131 |
+
|
| 132 |
+
[More Information Needed]
|
| 133 |
+
|
| 134 |
+
### Results
|
| 135 |
+
|
| 136 |
+
[More Information Needed]
|
| 137 |
+
|
| 138 |
+
#### Summary
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
## Model Examination [optional]
|
| 143 |
+
|
| 144 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 145 |
+
|
| 146 |
+
[More Information Needed]
|
| 147 |
+
|
| 148 |
+
## Environmental Impact
|
| 149 |
+
|
| 150 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 151 |
+
|
| 152 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 153 |
+
|
| 154 |
+
- **Hardware Type:** [More Information Needed]
|
| 155 |
+
- **Hours used:** [More Information Needed]
|
| 156 |
+
- **Cloud Provider:** [More Information Needed]
|
| 157 |
+
- **Compute Region:** [More Information Needed]
|
| 158 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 159 |
+
|
| 160 |
+
## Technical Specifications [optional]
|
| 161 |
+
|
| 162 |
+
### Model Architecture and Objective
|
| 163 |
+
|
| 164 |
+
[More Information Needed]
|
| 165 |
+
|
| 166 |
+
### Compute Infrastructure
|
| 167 |
+
|
| 168 |
+
[More Information Needed]
|
| 169 |
+
|
| 170 |
+
#### Hardware
|
| 171 |
+
|
| 172 |
+
[More Information Needed]
|
| 173 |
+
|
| 174 |
+
#### Software
|
| 175 |
+
|
| 176 |
+
[More Information Needed]
|
| 177 |
+
|
| 178 |
+
## Citation [optional]
|
| 179 |
+
|
| 180 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 181 |
+
|
| 182 |
+
**BibTeX:**
|
| 183 |
+
|
| 184 |
+
[More Information Needed]
|
| 185 |
+
|
| 186 |
+
**APA:**
|
| 187 |
+
|
| 188 |
+
[More Information Needed]
|
| 189 |
+
|
| 190 |
+
## Glossary [optional]
|
| 191 |
+
|
| 192 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 193 |
+
|
| 194 |
+
[More Information Needed]
|
| 195 |
+
|
| 196 |
+
## More Information [optional]
|
| 197 |
+
|
| 198 |
+
[More Information Needed]
|
| 199 |
+
|
| 200 |
+
## Model Card Authors [optional]
|
| 201 |
+
|
| 202 |
+
[More Information Needed]
|
| 203 |
+
|
| 204 |
+
## Model Card Contact
|
| 205 |
+
|
| 206 |
+
[More Information Needed]
|
| 207 |
+
### Framework versions
|
| 208 |
+
|
| 209 |
+
- PEFT 0.20.0
|
checkpoint-5/adapter_config.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "HuggingFaceTB/SmolLM2-360M-Instruct",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 16,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.0,
|
| 22 |
+
"lora_ga_config": null,
|
| 23 |
+
"megatron_config": null,
|
| 24 |
+
"megatron_core": "megatron.core",
|
| 25 |
+
"modules_to_save": null,
|
| 26 |
+
"monteclora_config": null,
|
| 27 |
+
"peft_type": "LORA",
|
| 28 |
+
"peft_version": "0.20.0",
|
| 29 |
+
"qalora_group_size": 16,
|
| 30 |
+
"r": 8,
|
| 31 |
+
"rank_pattern": {},
|
| 32 |
+
"revision": null,
|
| 33 |
+
"target_modules": [
|
| 34 |
+
"q_proj",
|
| 35 |
+
"v_proj"
|
| 36 |
+
],
|
| 37 |
+
"target_parameters": null,
|
| 38 |
+
"task_type": "CAUSAL_LM",
|
| 39 |
+
"trainable_token_indices": null,
|
| 40 |
+
"use_bdlora": null,
|
| 41 |
+
"use_dora": false,
|
| 42 |
+
"use_qalora": false,
|
| 43 |
+
"use_rslora": false,
|
| 44 |
+
"velora_config": null
|
| 45 |
+
}
|
checkpoint-5/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c5a35c6e17b374794dbe53dea3228d6711883c462a170b9aeed823e1da7e0ad5
|
| 3 |
+
size 3293480
|
checkpoint-5/chat_template.jinja
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system
|
| 2 |
+
You are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>
|
| 3 |
+
' }}{% endif %}{{'<|im_start|>' + message['role'] + '
|
| 4 |
+
' + message['content'] + '<|im_end|>' + '
|
| 5 |
+
'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
|
| 6 |
+
' }}{% endif %}
|
checkpoint-5/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b54be39162bc90c6ed57e85b5ac6e053dc2c3f4023c998f2490f6d58f929df7
|
| 3 |
+
size 6661707
|
checkpoint-5/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:45166ae03051a68ef058e9ed1d9918787ca21ad038be4d1bdc35ef2bf3e09921
|
| 3 |
+
size 14645
|
checkpoint-5/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4dc0694ce15b957c118c95c4d8af3aa9c5fa70bea18680bf07ee1c8844e5fb2d
|
| 3 |
+
size 1465
|
checkpoint-5/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-5/tokenizer_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<|im_start|>",
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|im_end|>",
|
| 7 |
+
"errors": "replace",
|
| 8 |
+
"extra_special_tokens": [
|
| 9 |
+
"<|im_start|>",
|
| 10 |
+
"<|im_end|>"
|
| 11 |
+
],
|
| 12 |
+
"is_local": false,
|
| 13 |
+
"local_files_only": false,
|
| 14 |
+
"model_max_length": 8192,
|
| 15 |
+
"pad_token": "<|im_end|>",
|
| 16 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 17 |
+
"unk_token": "<|endoftext|>",
|
| 18 |
+
"vocab_size": 49152
|
| 19 |
+
}
|
checkpoint-5/trainer_state.json
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": null,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 1.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 5,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"entropy": 2.05056069791317,
|
| 14 |
+
"epoch": 0.2,
|
| 15 |
+
"grad_norm": 3.576743949906813e-07,
|
| 16 |
+
"learning_rate": 0.0,
|
| 17 |
+
"logits/chosen": -1.970146747398138,
|
| 18 |
+
"logits/rejected": -1.970146747398138,
|
| 19 |
+
"logps/chosen": -18.030120849609375,
|
| 20 |
+
"logps/rejected": -18.030120849609375,
|
| 21 |
+
"loss": 0.6931471824645996,
|
| 22 |
+
"mean_token_accuracy": 0.8783265054225922,
|
| 23 |
+
"num_tokens": 2172.0,
|
| 24 |
+
"rewards/accuracies": 0.0,
|
| 25 |
+
"rewards/chosen": 0.0,
|
| 26 |
+
"rewards/margins": 0.0,
|
| 27 |
+
"rewards/rejected": 0.0,
|
| 28 |
+
"step": 1
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"entropy": 1.8472362160682678,
|
| 32 |
+
"epoch": 0.4,
|
| 33 |
+
"grad_norm": 3.372371963905607e-07,
|
| 34 |
+
"learning_rate": 1e-07,
|
| 35 |
+
"logits/chosen": -1.6947472581937175,
|
| 36 |
+
"logits/rejected": -1.6947472581937175,
|
| 37 |
+
"logps/chosen": -29.89427399635315,
|
| 38 |
+
"logps/rejected": -29.89427399635315,
|
| 39 |
+
"loss": 0.6931471824645996,
|
| 40 |
+
"mean_token_accuracy": 0.7170108556747437,
|
| 41 |
+
"num_tokens": 4280.0,
|
| 42 |
+
"rewards/accuracies": 0.0,
|
| 43 |
+
"rewards/chosen": 0.0,
|
| 44 |
+
"rewards/margins": 0.0,
|
| 45 |
+
"rewards/rejected": 0.0,
|
| 46 |
+
"step": 2
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"entropy": 1.994214117527008,
|
| 50 |
+
"epoch": 0.6,
|
| 51 |
+
"grad_norm": 3.646446486982313e-07,
|
| 52 |
+
"learning_rate": 2e-07,
|
| 53 |
+
"logits/chosen": -2.1313482575829665,
|
| 54 |
+
"logits/rejected": -2.1313482575829665,
|
| 55 |
+
"logps/chosen": -12.822995781898499,
|
| 56 |
+
"logps/rejected": -12.822995781898499,
|
| 57 |
+
"loss": 0.6931471824645996,
|
| 58 |
+
"mean_token_accuracy": 0.8758726269006729,
|
| 59 |
+
"num_tokens": 6450.0,
|
| 60 |
+
"rewards/accuracies": 0.0,
|
| 61 |
+
"rewards/chosen": 0.0,
|
| 62 |
+
"rewards/margins": 0.0,
|
| 63 |
+
"rewards/rejected": 0.0,
|
| 64 |
+
"step": 3
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"entropy": 2.7409143149852753,
|
| 68 |
+
"epoch": 0.8,
|
| 69 |
+
"grad_norm": 2.2604422156291548e-07,
|
| 70 |
+
"learning_rate": 3e-07,
|
| 71 |
+
"logits/chosen": -3.046862468220829,
|
| 72 |
+
"logits/rejected": -3.046862468220829,
|
| 73 |
+
"logps/chosen": -16.68446946144104,
|
| 74 |
+
"logps/rejected": -16.68446946144104,
|
| 75 |
+
"loss": 0.6931471824645996,
|
| 76 |
+
"mean_token_accuracy": 0.6849128678441048,
|
| 77 |
+
"num_tokens": 8154.0,
|
| 78 |
+
"rewards/accuracies": 0.0,
|
| 79 |
+
"rewards/chosen": 0.0,
|
| 80 |
+
"rewards/margins": 0.0,
|
| 81 |
+
"rewards/rejected": 0.0,
|
| 82 |
+
"step": 4
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"entropy": 1.3964595794677734,
|
| 86 |
+
"epoch": 1.0,
|
| 87 |
+
"grad_norm": 4.3739885313698323e-07,
|
| 88 |
+
"learning_rate": 4e-07,
|
| 89 |
+
"logits/chosen": -2.213178881348543,
|
| 90 |
+
"logits/rejected": -2.213178881348543,
|
| 91 |
+
"logps/chosen": -44.113500118255615,
|
| 92 |
+
"logps/rejected": -44.1134991645813,
|
| 93 |
+
"loss": 0.6931471824645996,
|
| 94 |
+
"mean_token_accuracy": 0.7640228718519211,
|
| 95 |
+
"num_tokens": 10660.0,
|
| 96 |
+
"rewards/accuracies": 0.0,
|
| 97 |
+
"rewards/chosen": 0.0009971618565032259,
|
| 98 |
+
"rewards/margins": 0.0,
|
| 99 |
+
"rewards/rejected": 0.0009971618565032259,
|
| 100 |
+
"step": 5
|
| 101 |
+
}
|
| 102 |
+
],
|
| 103 |
+
"logging_steps": 1,
|
| 104 |
+
"max_steps": 5,
|
| 105 |
+
"num_input_tokens_seen": 0,
|
| 106 |
+
"num_train_epochs": 1,
|
| 107 |
+
"save_steps": 500,
|
| 108 |
+
"stateful_callbacks": {
|
| 109 |
+
"TrainerControl": {
|
| 110 |
+
"args": {
|
| 111 |
+
"should_epoch_stop": false,
|
| 112 |
+
"should_evaluate": false,
|
| 113 |
+
"should_log": false,
|
| 114 |
+
"should_save": true,
|
| 115 |
+
"should_training_stop": true
|
| 116 |
+
},
|
| 117 |
+
"attributes": {}
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
"total_flos": 6230855308800.0,
|
| 121 |
+
"train_batch_size": 2,
|
| 122 |
+
"trial_name": null,
|
| 123 |
+
"trial_params": null
|
| 124 |
+
}
|
checkpoint-5/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5222b4de83f63eaf6e8119ce1e054c34d2f3447d2e9eada52d9ae1668f2b99d3
|
| 3 |
+
size 5841
|
dpo_config.yaml
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
accelerator_config:
|
| 2 |
+
dispatch_batches: null
|
| 3 |
+
even_batches: true
|
| 4 |
+
gradient_accumulation_kwargs: null
|
| 5 |
+
non_blocking: false
|
| 6 |
+
split_batches: false
|
| 7 |
+
use_seedable_sampler: true
|
| 8 |
+
activation_offloading: false
|
| 9 |
+
adam_beta1: 0.9
|
| 10 |
+
adam_beta2: 0.999
|
| 11 |
+
adam_epsilon: 1.0e-08
|
| 12 |
+
auto_find_batch_size: false
|
| 13 |
+
average_tokens_across_devices: true
|
| 14 |
+
batch_eval_metrics: false
|
| 15 |
+
beta: 0.1
|
| 16 |
+
bf16: true
|
| 17 |
+
bf16_full_eval: false
|
| 18 |
+
data_seed: 42
|
| 19 |
+
dataloader_drop_last: false
|
| 20 |
+
dataloader_in_order: true
|
| 21 |
+
dataloader_multiprocessing_context: null
|
| 22 |
+
dataloader_num_workers: 0
|
| 23 |
+
dataloader_persistent_workers: false
|
| 24 |
+
dataloader_pin_memory: true
|
| 25 |
+
dataloader_prefetch_factor: null
|
| 26 |
+
dataset_num_proc: null
|
| 27 |
+
ddp_backend: null
|
| 28 |
+
ddp_broadcast_buffers: null
|
| 29 |
+
ddp_bucket_cap_mb: null
|
| 30 |
+
ddp_find_unused_parameters: null
|
| 31 |
+
ddp_static_graph: null
|
| 32 |
+
ddp_timeout: 1800
|
| 33 |
+
debug: []
|
| 34 |
+
deepspeed: null
|
| 35 |
+
disable_dropout: true
|
| 36 |
+
disable_tqdm: false
|
| 37 |
+
discopop_tau: 0.05
|
| 38 |
+
do_eval: false
|
| 39 |
+
do_predict: false
|
| 40 |
+
do_train: false
|
| 41 |
+
enable_jit_checkpoint: false
|
| 42 |
+
eval_accumulation_steps: null
|
| 43 |
+
eval_delay: 0
|
| 44 |
+
eval_do_concat_batches: true
|
| 45 |
+
eval_on_start: false
|
| 46 |
+
eval_steps: null
|
| 47 |
+
eval_strategy: 'no'
|
| 48 |
+
eval_use_gather_object: false
|
| 49 |
+
f_alpha_divergence_coef: 0.5
|
| 50 |
+
f_divergence_type: reverse_kl
|
| 51 |
+
fp16: false
|
| 52 |
+
fp16_full_eval: false
|
| 53 |
+
fsdp: null
|
| 54 |
+
fsdp_config: null
|
| 55 |
+
full_determinism: false
|
| 56 |
+
gradient_accumulation_steps: 4
|
| 57 |
+
gradient_checkpointing: true
|
| 58 |
+
gradient_checkpointing_kwargs: null
|
| 59 |
+
greater_is_better: null
|
| 60 |
+
hub_always_push: false
|
| 61 |
+
hub_model_id: null
|
| 62 |
+
hub_private_repo: null
|
| 63 |
+
hub_revision: null
|
| 64 |
+
hub_strategy: every_save
|
| 65 |
+
hub_token: <HUB_TOKEN>
|
| 66 |
+
ignore_data_skip: false
|
| 67 |
+
include_for_metrics: []
|
| 68 |
+
include_num_input_tokens_seen: 'no'
|
| 69 |
+
label_names: null
|
| 70 |
+
label_smoothing: 0.0
|
| 71 |
+
label_smoothing_factor: 0.0
|
| 72 |
+
ld_alpha: null
|
| 73 |
+
learning_rate: 1.0e-06
|
| 74 |
+
length_column_name: length
|
| 75 |
+
liger_kernel_config: null
|
| 76 |
+
load_best_model_at_end: false
|
| 77 |
+
local_rank: -1
|
| 78 |
+
log_level: passive
|
| 79 |
+
log_level_replica: warning
|
| 80 |
+
log_on_each_node: true
|
| 81 |
+
logging_first_step: false
|
| 82 |
+
logging_nan_inf_filter: true
|
| 83 |
+
logging_steps: 1
|
| 84 |
+
logging_strategy: steps
|
| 85 |
+
loss_type:
|
| 86 |
+
- sigmoid
|
| 87 |
+
loss_weights: null
|
| 88 |
+
lr_scheduler_kwargs: null
|
| 89 |
+
lr_scheduler_type: linear
|
| 90 |
+
max_grad_norm: 1.0
|
| 91 |
+
max_length: 1024
|
| 92 |
+
max_steps: -1
|
| 93 |
+
metric_for_best_model: null
|
| 94 |
+
model_init_kwargs: null
|
| 95 |
+
neftune_noise_alpha: null
|
| 96 |
+
num_train_epochs: 1
|
| 97 |
+
optim: adamw_torch
|
| 98 |
+
optim_args: null
|
| 99 |
+
optim_target_modules: null
|
| 100 |
+
output_dir: ./out_dpo
|
| 101 |
+
pad_to_multiple_of: null
|
| 102 |
+
pad_token: <PAD_TOKEN>
|
| 103 |
+
padding_free: false
|
| 104 |
+
parallelism_config: null
|
| 105 |
+
per_device_eval_batch_size: 8
|
| 106 |
+
per_device_train_batch_size: 2
|
| 107 |
+
precompute_ref_batch_size: null
|
| 108 |
+
precompute_ref_log_probs: false
|
| 109 |
+
prediction_loss_only: false
|
| 110 |
+
project: huggingface
|
| 111 |
+
push_to_hub: false
|
| 112 |
+
ref_model_mixup_alpha: 0.6
|
| 113 |
+
ref_model_sync_steps: 512
|
| 114 |
+
remove_unused_columns: false
|
| 115 |
+
report_to: []
|
| 116 |
+
restore_callback_states_from_checkpoint: false
|
| 117 |
+
resume_from_checkpoint: null
|
| 118 |
+
run_name: null
|
| 119 |
+
save_on_each_node: false
|
| 120 |
+
save_only_model: false
|
| 121 |
+
save_steps: 500
|
| 122 |
+
save_strategy: steps
|
| 123 |
+
save_total_limit: null
|
| 124 |
+
seed: 42
|
| 125 |
+
skip_memory_metrics: true
|
| 126 |
+
sync_ref_model: false
|
| 127 |
+
tf32: null
|
| 128 |
+
torch_compile: false
|
| 129 |
+
torch_compile_backend: null
|
| 130 |
+
torch_compile_mode: null
|
| 131 |
+
torch_empty_cache_steps: null
|
| 132 |
+
trackio_bucket_id: null
|
| 133 |
+
trackio_space_id: null
|
| 134 |
+
trackio_static_space_id: null
|
| 135 |
+
train_sampling_strategy: random
|
| 136 |
+
truncation_mode: keep_start
|
| 137 |
+
trust_remote_code: false
|
| 138 |
+
use_cache: false
|
| 139 |
+
use_cpu: false
|
| 140 |
+
use_liger_kernel: false
|
| 141 |
+
use_weighting: false
|
| 142 |
+
warmup_steps: 10
|
| 143 |
+
weight_decay: 0.0
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<|im_start|>",
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|im_end|>",
|
| 7 |
+
"errors": "replace",
|
| 8 |
+
"extra_special_tokens": [
|
| 9 |
+
"<|im_start|>",
|
| 10 |
+
"<|im_end|>"
|
| 11 |
+
],
|
| 12 |
+
"is_local": false,
|
| 13 |
+
"local_files_only": false,
|
| 14 |
+
"model_max_length": 8192,
|
| 15 |
+
"pad_token": "<|im_end|>",
|
| 16 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 17 |
+
"unk_token": "<|endoftext|>",
|
| 18 |
+
"vocab_size": 49152
|
| 19 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5222b4de83f63eaf6e8119ce1e054c34d2f3447d2e9eada52d9ae1668f2b99d3
|
| 3 |
+
size 5841
|
training_stats.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "HuggingFaceTB/SmolLM2-360M-Instruct",
|
| 3 |
+
"dataset_name": "unknown",
|
| 4 |
+
"output_dir": "./out_dpo",
|
| 5 |
+
"use_rollouts": true,
|
| 6 |
+
"agentic_mode": true,
|
| 7 |
+
"tools": [
|
| 8 |
+
"query_inventory"
|
| 9 |
+
],
|
| 10 |
+
"train_size": 40,
|
| 11 |
+
"eval_size": 0,
|
| 12 |
+
"final_loss": 0.6931471824645996,
|
| 13 |
+
"total_steps": 5,
|
| 14 |
+
"training_history": [],
|
| 15 |
+
"metrics": {
|
| 16 |
+
"train_runtime": 184.4542,
|
| 17 |
+
"train_samples_per_second": 0.217,
|
| 18 |
+
"train_steps_per_second": 0.027,
|
| 19 |
+
"total_flos": 6230855308800.0,
|
| 20 |
+
"train_loss": 0.6931471824645996,
|
| 21 |
+
"epoch": 1.0
|
| 22 |
+
},
|
| 23 |
+
"config_kwargs": {
|
| 24 |
+
"model": "HuggingFaceTB/SmolLM2-360M-Instruct",
|
| 25 |
+
"dataset_config": null,
|
| 26 |
+
"split": "train",
|
| 27 |
+
"max_samples": 40,
|
| 28 |
+
"column_mapping": null,
|
| 29 |
+
"system_prompt": "You are the Dallas DC planner. Call query_inventory with a read-only SQL SELECT against customers, orders, order_lines, inventory. Join when a ticket names a customer or order id. After the tool returns, reply with the numeric answer only.",
|
| 30 |
+
"enable_thinking": false,
|
| 31 |
+
"reward_funcs": "<callable: combined_reward(reward_tool_used+reward_correct_answer)>",
|
| 32 |
+
"tools": [
|
| 33 |
+
"<function query_inventory at 0x7f35c5b43100>"
|
| 34 |
+
],
|
| 35 |
+
"rollout_backend": null,
|
| 36 |
+
"max_steps_per_turn": 8,
|
| 37 |
+
"engine_kwargs": {},
|
| 38 |
+
"peft_config": {
|
| 39 |
+
"r": 8,
|
| 40 |
+
"lora_alpha": 16,
|
| 41 |
+
"lora_dropout": 0.0,
|
| 42 |
+
"bias": "none",
|
| 43 |
+
"task_type": "CAUSAL_LM"
|
| 44 |
+
},
|
| 45 |
+
"output_dir": "./out_dpo",
|
| 46 |
+
"num_train_epochs": 1,
|
| 47 |
+
"per_device_train_batch_size": 2,
|
| 48 |
+
"gradient_accumulation_steps": 4,
|
| 49 |
+
"learning_rate": 1e-06,
|
| 50 |
+
"warmup_ratio": 0.03,
|
| 51 |
+
"warmup_steps": 10,
|
| 52 |
+
"weight_decay": 0.0,
|
| 53 |
+
"lr_scheduler_type": "linear",
|
| 54 |
+
"max_grad_norm": 1.0,
|
| 55 |
+
"seed": 42,
|
| 56 |
+
"data_seed": 42,
|
| 57 |
+
"optim": "adamw_torch",
|
| 58 |
+
"num_generations": 2,
|
| 59 |
+
"max_prompt_length": 256,
|
| 60 |
+
"max_completion_length": 128,
|
| 61 |
+
"temperature": 0.7,
|
| 62 |
+
"top_p": 0.95,
|
| 63 |
+
"beta": 0.1,
|
| 64 |
+
"use_vllm": false,
|
| 65 |
+
"vllm_mode": "colocate",
|
| 66 |
+
"log_completions": true,
|
| 67 |
+
"chat_template_kwargs": {
|
| 68 |
+
"enable_thinking": false
|
| 69 |
+
},
|
| 70 |
+
"logging_steps": 1,
|
| 71 |
+
"save_steps": 500,
|
| 72 |
+
"eval_strategy": "no",
|
| 73 |
+
"report_to": "none",
|
| 74 |
+
"push_to_hub": false,
|
| 75 |
+
"bf16": true,
|
| 76 |
+
"fp16": false,
|
| 77 |
+
"gradient_checkpointing": true,
|
| 78 |
+
"dataloader_num_workers": 0,
|
| 79 |
+
"remove_unused_columns": false,
|
| 80 |
+
"use_rollouts": true,
|
| 81 |
+
"train_dataset": "Dataset({\n features: ['prompt', 'answer'],\n num_rows: 40\n})"
|
| 82 |
+
}
|
| 83 |
+
}
|