BRlkl commited on
Commit
d0b005b
·
verified ·
1 Parent(s): 92ef562

Update workspace checkpoint for t5gemma2-thoughtloop-pre-sft-simple-transcript (step-500)

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
chat_template.jinja ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '
2
+ ' + message['content'] | trim + '<end_of_turn>
3
+ ' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model
4
+ '}}{% endif %}
initial_latent_z.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e21ddd9890092f2f1f2e46edc61943f0d18d72a482801f6420d6ae5e99abb3f
3
+ size 4194384
metrics.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "phase_key": "simple_multiturn_transcript",
3
+ "global_step": 500,
4
+ "epoch": 2
5
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79b91ca600ca326d38670c4d9f9cb1b6dbf710e2c73f6a95c67c1ad34c13ebc0
3
+ size 7672677808
sft_b200.yaml ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ datasets:
2
+ - name: chatalpaca_multiturn_enriched
3
+ repo_id: BRlkl/chatalpaca-multiturn-enriched-2.1
4
+ source_split: train
5
+ format: messages_all_turns
6
+ validation_ratio: 0.005
7
+ split_seed: 17
8
+ min_turns: 2
9
+ max_turns: 7
10
+ max_message_chars: 6000
11
+ use_base_chat_template: true
12
+
13
+ model:
14
+ base_model_name: google/t5gemma-xl-xl-prefixlm-it
15
+ initial_model_path:
16
+ dtype: bfloat16
17
+ attn_implementation: sdpa
18
+ disable_cudnn_sdp: true
19
+ disable_mha_fastpath: true
20
+ magicnorm_eps: 1.0e-6
21
+ z_slots: 512
22
+ num_time_tokens: 0
23
+ use_explicit_time_features: false
24
+ gate_attention_heads: 4
25
+ max_observation_tokens: 1024
26
+ max_decoder_tokens: 1024
27
+ thought_loop_proposal_mode: observation_hidden_compression
28
+ preserve_observation_encoder_manifold: true
29
+ observation_encoder_use_state_context: true
30
+ latent_attention_mask_mode: full
31
+ hard_state_replace: true
32
+
33
+ training:
34
+ seed: 17
35
+ num_workers: 2
36
+ gradient_checkpointing: true
37
+ mixed_precision: bf16
38
+ max_grad_norm: 1.0
39
+ weight_decay: 0.01
40
+ backbone_learning_rate: 1.0e-5
41
+ new_module_learning_rate: 1.0e-4
42
+ constant_learning_rate: true
43
+ adam_beta1: 0.9
44
+ adam_beta2: 0.95
45
+ adam_epsilon: 1.0e-8
46
+ fused_adamw: true
47
+ freeze_gate_head: true
48
+ assistant_feedback_mode: teacher_forced
49
+ log_every_steps: 1
50
+ eval_every_steps: 200
51
+ checkpoint_every_steps: 500
52
+ eval_max_batches: 16
53
+ validation_behavior_max_batches: 4
54
+ max_train_examples:
55
+ max_validation_examples:
56
+ supervise_first_turn_response_only: false
57
+ freeze_decoder_except_cross_attention: false
58
+ enable_cumulative_probe_horizon_curriculum: false
59
+
60
+ response_loss_weight: 0.0
61
+ current_user_reconstruction_loss_weight: 0.0
62
+ probe_loss_weight: 1.0
63
+ probe_use_self_generated_prefix_loss: false
64
+ past_response_contrastive_loss_weight: 0.0
65
+ enable_past_response_contrastive_loss: false
66
+ past_response_contrastive_margin: 0.5
67
+ past_response_contrastive_pool:
68
+ include_previous_assistant_responses: true
69
+ include_current_user_reconstruction_target: true
70
+ include_previous_user_reconstruction_targets: false
71
+ include_current_transcript_probe_target: true
72
+ include_previous_transcript_probe_targets: false
73
+ probe_question_text: "What is everything we have talked about so far? Give exact conversation transcript verbatim in following format: [User 1]: X [Assistant 1]: Y [User 2]: A etc"
74
+ current_user_reconstruction_question_text: "What did me (the user) just ask you? give verbatim message I just previously sent"
75
+
76
+ feedback_generation_max_new_tokens: 1024
77
+ feedback_generation_extra_new_tokens: 16
78
+ validation_response_max_new_tokens: 1024
79
+ validation_response_extra_new_tokens: 16
80
+ validation_probe_max_new_tokens: 1024
81
+ validation_probe_extra_new_tokens: 16
82
+
83
+ wandb_train_metric_keys:
84
+ - train/loss_total
85
+ - train/loss_response
86
+ - train/loss_current_user_reconstruction
87
+ - train/loss_probe
88
+ - train/loss_past_response_contrastive
89
+ - train/response_first_content_token_exact_match
90
+ - train/current_user_reconstruction_first_content_token_exact_match
91
+ - train/probe_first_content_token_exact_match
92
+ wandb_validation_metric_keys:
93
+ - validation/loss_total
94
+ - validation/loss_response
95
+ - validation/loss_current_user_reconstruction
96
+ - validation/loss_probe
97
+ - validation/loss_past_response_contrastive
98
+ - validation/goal_loss
99
+ - validation/response_similarity
100
+ - validation/response_reconstruction_similarity
101
+ - validation/probe_transcript_similarity
102
+ - validation/response_first_content_token_exact_match
103
+ - validation/current_user_reconstruction_first_content_token_exact_match
104
+ - validation/probe_first_content_token_exact_match
105
+
106
+ checkpoint_selection_metric: validation/goal_loss
107
+ checkpoint_selection_mode: min
108
+ validation_response_exact_miss_penalty: 1.0
109
+ validation_reconstruction_similarity_miss_penalty: 1.0
110
+ validation_probe_exact_miss_penalty: 1.0
111
+ validation_probe_similarity_miss_penalty: 2.0
112
+
113
+ phase:
114
+ micro_batch_size: 6
115
+ eval_batch_size: 1
116
+ gradient_accumulation_steps: 2
117
+ num_train_epochs: 6
118
+ warmup_ratio: 0.03
119
+ shuffle_train: true
120
+
121
+ cache:
122
+ preprocessed_root: cache/preprocessed_pre_sft_multiturn_simple_transcript
123
+
124
+ paths:
125
+ run_root: runs_pre_sft_multiturn_simple_transcript
126
+ export_root: exports_multiturn_simple_transcript
127
+
128
+ inference:
129
+ format: predictive_state_multiturn
130
+ use_base_chat_template: true
131
+
132
+ wandb:
133
+ enabled: true
134
+ project: samantha-pre-sft
135
+ run_name: t5gemma2-thoughtloop-pre-sft-simple-transcript
136
+
137
+ hub:
138
+ model_repo_id: BRlkl/prefix_1024_all
139
+ private: false
sft_config.json ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "datasets": [
3
+ {
4
+ "name": "chatalpaca_multiturn_enriched",
5
+ "repo_id": "BRlkl/chatalpaca-multiturn-enriched-2.1",
6
+ "source_split": "train",
7
+ "format": "messages_all_turns",
8
+ "validation_ratio": 0.005,
9
+ "split_seed": 17,
10
+ "min_turns": 2,
11
+ "max_turns": 7,
12
+ "max_message_chars": 6000,
13
+ "use_base_chat_template": true
14
+ }
15
+ ],
16
+ "model": {
17
+ "base_model_name": "google/t5gemma-xl-xl-prefixlm-it",
18
+ "initial_model_path": null,
19
+ "dtype": "bfloat16",
20
+ "attn_implementation": "sdpa",
21
+ "disable_cudnn_sdp": true,
22
+ "disable_mha_fastpath": true,
23
+ "magicnorm_eps": 1e-06,
24
+ "z_slots": 512,
25
+ "num_time_tokens": 0,
26
+ "use_explicit_time_features": false,
27
+ "gate_attention_heads": 4,
28
+ "max_observation_tokens": 1024,
29
+ "max_decoder_tokens": 1024,
30
+ "thought_loop_proposal_mode": "observation_hidden_compression",
31
+ "preserve_observation_encoder_manifold": true,
32
+ "observation_encoder_use_state_context": true,
33
+ "latent_attention_mask_mode": "full",
34
+ "hard_state_replace": true,
35
+ "gate_decision_temperature": 1.0,
36
+ "initial_gate_decision_threshold_logit": 0.0
37
+ },
38
+ "training": {
39
+ "seed": 17,
40
+ "num_workers": 2,
41
+ "gradient_checkpointing": true,
42
+ "mixed_precision": "bf16",
43
+ "max_grad_norm": 1.0,
44
+ "weight_decay": 0.01,
45
+ "backbone_learning_rate": 1e-05,
46
+ "new_module_learning_rate": 0.0001,
47
+ "constant_learning_rate": true,
48
+ "adam_beta1": 0.9,
49
+ "adam_beta2": 0.95,
50
+ "adam_epsilon": 1e-08,
51
+ "fused_adamw": true,
52
+ "freeze_gate_head": true,
53
+ "assistant_feedback_mode": "teacher_forced",
54
+ "log_every_steps": 1,
55
+ "eval_every_steps": 200,
56
+ "checkpoint_every_steps": 500,
57
+ "eval_max_batches": 16,
58
+ "validation_behavior_max_batches": 4,
59
+ "max_train_examples": null,
60
+ "max_validation_examples": null,
61
+ "supervise_first_turn_response_only": false,
62
+ "freeze_decoder_except_cross_attention": false,
63
+ "enable_cumulative_probe_horizon_curriculum": false,
64
+ "response_loss_weight": 0.0,
65
+ "current_user_reconstruction_loss_weight": 0.0,
66
+ "probe_loss_weight": 1.0,
67
+ "probe_use_self_generated_prefix_loss": false,
68
+ "past_response_contrastive_loss_weight": 0.0,
69
+ "enable_past_response_contrastive_loss": false,
70
+ "past_response_contrastive_margin": 0.5,
71
+ "past_response_contrastive_pool": {
72
+ "include_previous_assistant_responses": true,
73
+ "include_current_user_reconstruction_target": true,
74
+ "include_previous_user_reconstruction_targets": false,
75
+ "include_current_transcript_probe_target": true,
76
+ "include_previous_transcript_probe_targets": false
77
+ },
78
+ "probe_question_text": "What is everything we have talked about so far? Give exact conversation transcript verbatim in following format: [User 1]: X [Assistant 1]: Y [User 2]: A etc",
79
+ "current_user_reconstruction_question_text": "What did me (the user) just ask you? give verbatim message I just previously sent",
80
+ "feedback_generation_max_new_tokens": 1024,
81
+ "feedback_generation_extra_new_tokens": 16,
82
+ "validation_response_max_new_tokens": 1024,
83
+ "validation_response_extra_new_tokens": 16,
84
+ "validation_probe_max_new_tokens": 1024,
85
+ "validation_probe_extra_new_tokens": 16,
86
+ "wandb_train_metric_keys": [
87
+ "train/loss_total",
88
+ "train/loss_response",
89
+ "train/loss_current_user_reconstruction",
90
+ "train/loss_probe",
91
+ "train/loss_past_response_contrastive",
92
+ "train/response_first_content_token_exact_match",
93
+ "train/current_user_reconstruction_first_content_token_exact_match",
94
+ "train/probe_first_content_token_exact_match"
95
+ ],
96
+ "wandb_validation_metric_keys": [
97
+ "validation/loss_total",
98
+ "validation/loss_response",
99
+ "validation/loss_current_user_reconstruction",
100
+ "validation/loss_probe",
101
+ "validation/loss_past_response_contrastive",
102
+ "validation/goal_loss",
103
+ "validation/response_similarity",
104
+ "validation/response_reconstruction_similarity",
105
+ "validation/probe_transcript_similarity",
106
+ "validation/response_first_content_token_exact_match",
107
+ "validation/current_user_reconstruction_first_content_token_exact_match",
108
+ "validation/probe_first_content_token_exact_match"
109
+ ],
110
+ "checkpoint_selection_metric": "validation/goal_loss",
111
+ "checkpoint_selection_mode": "min",
112
+ "validation_response_exact_miss_penalty": 1.0,
113
+ "validation_reconstruction_similarity_miss_penalty": 1.0,
114
+ "validation_probe_exact_miss_penalty": 1.0,
115
+ "validation_probe_similarity_miss_penalty": 2.0
116
+ },
117
+ "phase": {
118
+ "micro_batch_size": 6,
119
+ "eval_batch_size": 1,
120
+ "gradient_accumulation_steps": 2,
121
+ "num_train_epochs": 6,
122
+ "warmup_ratio": 0.03,
123
+ "shuffle_train": true
124
+ },
125
+ "cache": {
126
+ "preprocessed_root": "cache/preprocessed_pre_sft_multiturn_simple_transcript"
127
+ },
128
+ "paths": {
129
+ "run_root": "runs_pre_sft_multiturn_simple_transcript",
130
+ "export_root": "exports_multiturn_simple_transcript"
131
+ },
132
+ "inference": {
133
+ "format": "predictive_state_multiturn",
134
+ "use_base_chat_template": true,
135
+ "gate_probability_threshold": 0.5,
136
+ "learned_gate_decision_threshold_logit": 0.0
137
+ },
138
+ "wandb": {
139
+ "enabled": true,
140
+ "project": "samantha-pre-sft",
141
+ "run_name": "t5gemma2-thoughtloop-pre-sft-simple-transcript"
142
+ },
143
+ "hub": {
144
+ "model_repo_id": "BRlkl/prefix_1024_all",
145
+ "private": false
146
+ }
147
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:923de64f4705efd22f6880dc5e6a9b2993de2706a03d0d48773e0173e32a074f
3
+ size 34362428
tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<bos>",
4
+ "clean_up_tokenization_spaces": false,
5
+ "eos_token": "<eos>",
6
+ "is_local": false,
7
+ "local_files_only": false,
8
+ "mask_token": "<mask>",
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": "<pad>",
11
+ "padding_side": "right",
12
+ "sp_model_kwargs": {},
13
+ "spaces_between_special_tokens": false,
14
+ "tokenizer_class": "GemmaTokenizer",
15
+ "unk_token": "<unk>",
16
+ "use_default_system_prompt": false
17
+ }
training_state.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f56f81ca1f974b0744418eaa75c87de0370fa79b7d16c773669b254d2ce3339
3
+ size 15076924303