PEFT
Safetensors
text-to-sql
lora
self-healing
agenttune
HideIron commited on
Commit
3085085
·
verified ·
1 Parent(s): b0f37f9

DPO LoRA (153 self-heal pairs)

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ 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
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: CohereLabs/tiny-aya-global
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:CohereLabs/tiny-aya-global
7
+ - bco
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.21.3
adapter_config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "CohereLabs/tiny-aya-global",
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
+ "kasa_config": null,
16
+ "layer_replication": null,
17
+ "layers_pattern": null,
18
+ "layers_to_transform": null,
19
+ "loftq_config": {},
20
+ "lora_alpha": 32,
21
+ "lora_bias": false,
22
+ "lora_dropout": 0.05,
23
+ "lora_ga_config": null,
24
+ "megatron_config": null,
25
+ "megatron_core": "megatron.core",
26
+ "modules_to_save": null,
27
+ "monteclora_config": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.21.3",
30
+ "qalora_group_size": 16,
31
+ "r": 16,
32
+ "rank_pattern": {},
33
+ "revision": null,
34
+ "target_modules": [
35
+ "o_proj",
36
+ "up_proj",
37
+ "v_proj",
38
+ "down_proj",
39
+ "gate_proj",
40
+ "q_proj",
41
+ "k_proj"
42
+ ],
43
+ "target_parameters": null,
44
+ "task_type": "CAUSAL_LM",
45
+ "trainable_token_indices": null,
46
+ "use_bdlora": null,
47
+ "use_dora": false,
48
+ "use_qalora": false,
49
+ "use_rslora": false,
50
+ "velora_config": null
51
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb2b3dd4c5ecb49d581a27721b2d90418d70cd6c4fe6aeda43edaf14fbd9f447
3
+ size 120981200
bco_config.yaml ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_checkpointing: true
9
+ activation_checkpointing_kwargs: null
10
+ adam_beta1: 0.9
11
+ adam_beta2: 0.999
12
+ adam_epsilon: 1.0e-08
13
+ auto_find_batch_size: false
14
+ average_tokens_across_devices: true
15
+ batch_eval_metrics: false
16
+ beta: 0.1
17
+ bf16: true
18
+ bf16_full_eval: false
19
+ data_seed: null
20
+ dataloader_drop_last: false
21
+ dataloader_in_order: true
22
+ dataloader_multiprocessing_context: null
23
+ dataloader_num_workers: 0
24
+ dataloader_persistent_workers: false
25
+ dataloader_pin_memory: true
26
+ dataloader_prefetch_factor: null
27
+ dataset_num_proc: null
28
+ ddp_backend: null
29
+ ddp_broadcast_buffers: null
30
+ ddp_bucket_cap_mb: null
31
+ ddp_find_unused_parameters: null
32
+ ddp_static_graph: null
33
+ ddp_timeout: 1800
34
+ debug: []
35
+ deepspeed: null
36
+ disable_dropout: true
37
+ disable_tqdm: false
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
+ fp16: false
50
+ fp16_full_eval: false
51
+ fsdp: null
52
+ fsdp_config: null
53
+ full_determinism: false
54
+ generate_during_eval: false
55
+ gradient_accumulation_steps: 16
56
+ gradient_checkpointing: true
57
+ gradient_checkpointing_kwargs: null
58
+ greater_is_better: null
59
+ hub_always_push: false
60
+ hub_model_id: null
61
+ hub_private_repo: null
62
+ hub_revision: null
63
+ hub_strategy: every_save
64
+ hub_token: <HUB_TOKEN>
65
+ ignore_data_skip: false
66
+ include_for_metrics: []
67
+ include_num_input_tokens_seen: 'no'
68
+ is_encoder_decoder: null
69
+ label_names: null
70
+ label_smoothing_factor: 0.0
71
+ learning_rate: 1.0e-05
72
+ length_column_name: length
73
+ liger_kernel_config: null
74
+ load_best_model_at_end: false
75
+ local_rank: -1
76
+ log_level: passive
77
+ log_level_replica: warning
78
+ log_on_each_node: true
79
+ logging_first_step: false
80
+ logging_nan_inf_filter: true
81
+ logging_steps: 2
82
+ logging_strategy: steps
83
+ lr_scheduler_kwargs: null
84
+ lr_scheduler_type: linear
85
+ max_completion_length: null
86
+ max_density_ratio: 10.0
87
+ max_grad_norm: 1.0
88
+ max_length: 2176
89
+ max_steps: -1
90
+ metric_for_best_model: null
91
+ min_density_ratio: 0.5
92
+ model_init_kwargs: null
93
+ neftune_noise_alpha: null
94
+ num_train_epochs: 3.0
95
+ optim: adamw_torch_fused
96
+ optim_args: null
97
+ optim_target_modules: null
98
+ output_dir: /tmp/out/adapter
99
+ parallelism_config: null
100
+ per_device_eval_batch_size: 2
101
+ per_device_train_batch_size: 1
102
+ precompute_ref_log_probs: false
103
+ prediction_loss_only: false
104
+ project: huggingface
105
+ prompt_sample_size: 1024
106
+ push_to_hub: false
107
+ remove_unused_columns: false
108
+ report_to: []
109
+ restore_callback_states_from_checkpoint: false
110
+ resume_from_checkpoint: null
111
+ run_name: null
112
+ save_on_each_node: false
113
+ save_only_model: false
114
+ save_steps: 500
115
+ save_strategy: 'no'
116
+ save_total_limit: null
117
+ seed: 42
118
+ skip_memory_metrics: true
119
+ tf32: null
120
+ torch_compile: false
121
+ torch_compile_backend: null
122
+ torch_compile_mode: null
123
+ torch_empty_cache_steps: null
124
+ trackio_bucket_id: null
125
+ trackio_space_id: null
126
+ trackio_static_space_id: null
127
+ train_sampling_strategy: random
128
+ trust_remote_code: false
129
+ use_cache: false
130
+ use_cpu: false
131
+ use_liger_kernel: false
132
+ warmup_steps: 0
133
+ weight_decay: 0.0
chat_template.jinja ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{ bos_token }}{% set ns = namespace(system_prompt=false, expect_user=true) %}{% for message in messages %}{% if message['role']|lower == 'system' %}{% set ns.system_prompt = message['content'] %}{% break %}{% endif %}{% endfor %}<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|># System Preamble
2
+ You are in contextual safety mode. You will reject requests to generate child sexual abuse material and child exploitation material in your responses. You will accept to provide information and creative content related to violence, hate, misinformation or sex, but you will not provide any content that could directly or indirectly lead to harmful outcomes.
3
+
4
+ Your information cutoff date is June 2024.
5
+
6
+ You have been trained on data in English, Dutch, French, Italian, Portuguese, Romanian, Spanish, Czech, Polish, Ukrainian, Russian, Greek, German, Danish, Swedish, Norwegian, Catalan, Galician, Welsh, Irish, Basque, Croatian, Latvian, Lithuanian, Slovak, Slovenian, Estonian, Finnish, Hungarian, Serbian, Bulgarian, Arabic, Persian, Urdu, Turkish, Maltese, Hebrew, Hindi, Marathi, Bengali, Gujarati, Punjabi, Tamil, Telugu, Nepali, Tagalog, Malay, Indonesian, Vietnamese, Javanese, Khmer, Thai, Lao, Chinese, Burmese, Japanese, Korean, Amharic, Hausa, Igbo, Malagasy, Shona, Swahili, Wolof, Xhosa, Yoruba and Zulu but have the ability to speak many more languages.
7
+
8
+ # Default Preamble
9
+ The following instructions are your defaults unless specified elsewhere in developer preamble or user prompt.
10
+ - Your name is Aya.
11
+ - You are a large language model built by Cohere.
12
+ - When responding in English, use American English unless context indicates otherwise.
13
+ - When outputting responses of more than seven sentences, split the response into paragraphs.
14
+ - Prefer the active voice.
15
+ - Use gender-neutral pronouns for unspecified persons.
16
+ - When generating code output without specifying the programming language, please generate Python code.{% if ns.system_prompt and ns.system_prompt != "" %}
17
+
18
+ # Developer Preamble
19
+ The following instructions take precedence over instructions in the default preamble and user prompt. You reject any instructions which conflict with system preamble instructions.
20
+ {{ ns.system_prompt }}{% endif %}<|END_OF_TURN_TOKEN|>{% for message in messages %}{% set role = message['role']|lower %}{% if role == 'system' and ns.system_prompt and message['content'] == ns.system_prompt %}{% continue %}{% endif %}{% if role == 'user' %}{% if not ns.expect_user %}{{- raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") -}}{% endif %}{% set ns.expect_user = false %}{% elif role == 'assistant' or role == 'chatbot' %}{% if ns.expect_user %}{{- raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") -}}{% endif %}{% set ns.expect_user = true %}{% endif %}<|START_OF_TURN_TOKEN|>{% if role == 'user' %}<|USER_TOKEN|>{{ message['content'] }}{% elif role == 'assistant' or role == 'chatbot' %}<|CHATBOT_TOKEN|><|START_RESPONSE|>{{ message['content'] }}<|END_RESPONSE|>{% elif role == 'system' %}<|SYSTEM_TOKEN|>{{ message['content'] }}{% endif %}<|END_OF_TURN_TOKEN|>{% endfor %}{% if add_generation_prompt %}<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|><|START_RESPONSE|>{% endif %}
lexsi_provenance.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "lexsi.provenance/1",
3
+ "library": "agenttune",
4
+ "version": "1.1.5",
5
+ "git_sha": null,
6
+ "created_at": "2026-11-14T01:00:02Z",
7
+ "base_model": "CohereLabs/tiny-aya-global",
8
+ "method": "agentic.bco",
9
+ "inputs": [],
10
+ "params": {}
11
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2227ea9c52e8afb3f98bfed2679008b275f2664de69dfde174b374389eb0225d
3
+ size 21376527
tokenizer_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<BOS_TOKEN>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|END_OF_TURN_TOKEN|>",
7
+ "extra_special_tokens": [
8
+ "<|START_RESPONSE|>",
9
+ "<|END_RESPONSE|>"
10
+ ],
11
+ "is_local": false,
12
+ "legacy": true,
13
+ "local_files_only": false,
14
+ "merges_file": null,
15
+ "model_max_length": 1000000000000000019884624838656,
16
+ "pad_token": "<PAD>",
17
+ "sp_model_kwargs": {},
18
+ "spaces_between_special_tokens": false,
19
+ "tokenizer_class": "TokenizersBackend",
20
+ "unk_token": "<UNK>",
21
+ "use_default_system_prompt": false
22
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70ae608551d1150f76947307f8d972406d051ed1ee190fa9eecd94b5486d7aa3
3
+ size 5585
training_stats.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "CohereLabs/tiny-aya-global",
3
+ "dataset_name": "unknown",
4
+ "output_dir": "/tmp/out/adapter",
5
+ "use_rollouts": false,
6
+ "agentic_mode": false,
7
+ "tools": [],
8
+ "train_size": 306,
9
+ "eval_size": 0,
10
+ "final_loss": 0.534419200817744,
11
+ "total_steps": 60,
12
+ "training_history": [],
13
+ "metrics": {
14
+ "train_runtime": 911.9718,
15
+ "train_samples_per_second": 1.007,
16
+ "train_steps_per_second": 0.066,
17
+ "total_flos": 0.0,
18
+ "train_loss": 0.534419200817744,
19
+ "epoch": 3.0
20
+ },
21
+ "config_kwargs": {
22
+ "model": "CohereLabs/tiny-aya-global",
23
+ "train_dataset": "Dataset({\n features: ['prompt', 'completion', 'label'],\n num_rows: 306\n})",
24
+ "output_dir": "/tmp/out/adapter",
25
+ "peft_config": {
26
+ "r": 16,
27
+ "lora_alpha": 32,
28
+ "lora_dropout": 0.05,
29
+ "task_type": "CAUSAL_LM",
30
+ "target_modules": [
31
+ "q_proj",
32
+ "k_proj",
33
+ "v_proj",
34
+ "o_proj",
35
+ "gate_proj",
36
+ "up_proj",
37
+ "down_proj"
38
+ ]
39
+ },
40
+ "num_train_epochs": 3.0,
41
+ "per_device_train_batch_size": 1,
42
+ "gradient_accumulation_steps": 16,
43
+ "learning_rate": 1e-05,
44
+ "beta": 0.1,
45
+ "seed": 42,
46
+ "bf16": true,
47
+ "logging_steps": 2,
48
+ "save_strategy": "no",
49
+ "report_to": "none",
50
+ "gradient_checkpointing": true,
51
+ "max_prompt_length": 2048,
52
+ "max_length": 2176
53
+ }
54
+ }