Transformers
Safetensors
trl
grpo
arabic-poetry
classical-arabic
lora
AhmadAbbass commited on
Commit
a357739
·
verified ·
1 Parent(s): de15e4e

Upload best checkpoint export from shaer_grpo_20260412_155553

Browse files
best-checkpoint/README.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Best Checkpoint Export (800)
2
+
3
+ - source run: `shaer_grpo_20260412_155553`
4
+ - source checkpoint: `checkpoint-800`
5
+
6
+ This export keeps the inference-relevant best-checkpoint files plus trainer metadata.
7
+ Optimizer and scheduler state are intentionally excluded from this paper-facing Hub export.
best-checkpoint/adapter_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Navid-AI/Yehia-7B-preview",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": false,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 128,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.05,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "qalora_group_size": 16,
24
+ "r": 64,
25
+ "rank_pattern": {},
26
+ "revision": null,
27
+ "target_modules": [
28
+ "down_proj",
29
+ "o_proj",
30
+ "up_proj",
31
+ "v_proj",
32
+ "q_proj",
33
+ "gate_proj",
34
+ "k_proj"
35
+ ],
36
+ "target_parameters": null,
37
+ "task_type": "CAUSAL_LM",
38
+ "trainable_token_indices": null,
39
+ "use_dora": false,
40
+ "use_qalora": false,
41
+ "use_rslora": true
42
+ }
best-checkpoint/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2e27a027a2f568163d06febc92161c08c59c86d414f4ed4b44f00e41f49b507
3
+ size 639691872
best-checkpoint/chat_template.jinja ADDED
@@ -0,0 +1 @@
 
 
1
+ {% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\n' + system_message + '\n<</SYS>>\n\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + ' [INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}
best-checkpoint/grpo_resume_manifest.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "train",
3
+ "run_id": "shaer_grpo_20260412_155553",
4
+ "run_dir": "/root/workspace/Shaer/grpo/outputs/train/shaer_grpo_20260412_155553",
5
+ "created_at_utc": "2026-04-12T15:58:06Z",
6
+ "chain_id": "shaer_grpo_20260412_155553",
7
+ "root_run_id": "shaer_grpo_20260412_155553",
8
+ "parent_run_id": "",
9
+ "parent_run_dir": "",
10
+ "run_sequence_index": 0,
11
+ "dataset_id": "Shaer-AI/ashaar-enhanced-desc-baseform-final-sft-lte20-min500-splits-grpo-meter-count-v1",
12
+ "dataset_source_id": "Shaer-AI/ashaar-with-enhanced-descriptions-baseform-final-sft-lte20-min500-splits",
13
+ "phase1_max_bayts": "20",
14
+ "allowed_meters": [],
15
+ "base_model_id": "Navid-AI/Yehia-7B-preview",
16
+ "sft_adapter_repo": "Shaer-AI/Shaer-adapters",
17
+ "sft_adapter_mode": "fresh_sft/train",
18
+ "reward_weights": {
19
+ "meter": 0.0,
20
+ "count_adherence": 0.0,
21
+ "arabic_clean": 0.0,
22
+ "hard_gate": 0.0,
23
+ "arabic_floor": 0.0,
24
+ "count_floor": 0.0,
25
+ "lexical_plausibility": 0.0,
26
+ "judge_quality": 0.0,
27
+ "repeat_penalty": 0.0,
28
+ "repeat_floor": 0.0,
29
+ "near_duplicate_penalty": 0.0,
30
+ "opening_diversity": 0.0,
31
+ "distinct_2": 0.0,
32
+ "total_composite": 1.0
33
+ },
34
+ "model_meta": {
35
+ "adapter_path": "/root/.cache/huggingface/hub/models--Shaer-AI--Shaer-adapters/snapshots/0df03eedae8d0e6a37be2165852e619f20a966a4/adapters/fresh_sft/train/latest",
36
+ "load_in_4bit_requested": true,
37
+ "load_in_4bit_effective": false,
38
+ "vllm_colocate_runtime": true,
39
+ "total_params": 7160467456,
40
+ "trainable_params": 159907840,
41
+ "trainable_ratio": 0.022332039211491392,
42
+ "source": "snapshot",
43
+ "mode": "fresh_sft/train",
44
+ "snapshot_root": "/root/.cache/huggingface/hub/models--Shaer-AI--Shaer-adapters/snapshots/0df03eedae8d0e6a37be2165852e619f20a966a4",
45
+ "manifest_path": "manifests/fresh_sft/train/latest.json",
46
+ "adapter_repo": "Shaer-AI/Shaer-adapters"
47
+ },
48
+ "timestamp_utc": "2026-04-12T18:57:41Z",
49
+ "config_fingerprint": "429b334e6c80dfa9b81f2594e6165bdb27e9289404e07f5b1493fe2fe6227203",
50
+ "global_step": 800,
51
+ "output_repo": "Shaer-AI/Shaer-adapters-grpo-friend-v1-easyfirst"
52
+ }
best-checkpoint/special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
best-checkpoint/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
best-checkpoint/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:feff3deb3537c4a47b77585053ad2aa00484da7907b188e0111cbed1f4592e67
3
+ size 1228714
best-checkpoint/tokenizer_config.json ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "3": {
31
+ "content": "0",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": false
37
+ },
38
+ "4": {
39
+ "content": "1",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": false
45
+ },
46
+ "5": {
47
+ "content": "2",
48
+ "lstrip": false,
49
+ "normalized": false,
50
+ "rstrip": false,
51
+ "single_word": false,
52
+ "special": false
53
+ },
54
+ "6": {
55
+ "content": "3",
56
+ "lstrip": false,
57
+ "normalized": false,
58
+ "rstrip": false,
59
+ "single_word": false,
60
+ "special": false
61
+ },
62
+ "7": {
63
+ "content": "4",
64
+ "lstrip": false,
65
+ "normalized": false,
66
+ "rstrip": false,
67
+ "single_word": false,
68
+ "special": false
69
+ },
70
+ "8": {
71
+ "content": "5",
72
+ "lstrip": false,
73
+ "normalized": false,
74
+ "rstrip": false,
75
+ "single_word": false,
76
+ "special": false
77
+ },
78
+ "9": {
79
+ "content": "6",
80
+ "lstrip": false,
81
+ "normalized": false,
82
+ "rstrip": false,
83
+ "single_word": false,
84
+ "special": false
85
+ },
86
+ "10": {
87
+ "content": "7",
88
+ "lstrip": false,
89
+ "normalized": false,
90
+ "rstrip": false,
91
+ "single_word": false,
92
+ "special": false
93
+ },
94
+ "11": {
95
+ "content": "8",
96
+ "lstrip": false,
97
+ "normalized": false,
98
+ "rstrip": false,
99
+ "single_word": false,
100
+ "special": false
101
+ },
102
+ "12": {
103
+ "content": "9",
104
+ "lstrip": false,
105
+ "normalized": false,
106
+ "rstrip": false,
107
+ "single_word": false,
108
+ "special": false
109
+ },
110
+ "13": {
111
+ "content": "٠",
112
+ "lstrip": false,
113
+ "normalized": false,
114
+ "rstrip": false,
115
+ "single_word": false,
116
+ "special": false
117
+ },
118
+ "14": {
119
+ "content": "١",
120
+ "lstrip": false,
121
+ "normalized": false,
122
+ "rstrip": false,
123
+ "single_word": false,
124
+ "special": false
125
+ },
126
+ "15": {
127
+ "content": "٢",
128
+ "lstrip": false,
129
+ "normalized": false,
130
+ "rstrip": false,
131
+ "single_word": false,
132
+ "special": false
133
+ },
134
+ "16": {
135
+ "content": "٣",
136
+ "lstrip": false,
137
+ "normalized": false,
138
+ "rstrip": false,
139
+ "single_word": false,
140
+ "special": false
141
+ },
142
+ "17": {
143
+ "content": "٤",
144
+ "lstrip": false,
145
+ "normalized": false,
146
+ "rstrip": false,
147
+ "single_word": false,
148
+ "special": false
149
+ },
150
+ "18": {
151
+ "content": "٥",
152
+ "lstrip": false,
153
+ "normalized": false,
154
+ "rstrip": false,
155
+ "single_word": false,
156
+ "special": false
157
+ },
158
+ "19": {
159
+ "content": "٦",
160
+ "lstrip": false,
161
+ "normalized": false,
162
+ "rstrip": false,
163
+ "single_word": false,
164
+ "special": false
165
+ },
166
+ "20": {
167
+ "content": "٧",
168
+ "lstrip": false,
169
+ "normalized": false,
170
+ "rstrip": false,
171
+ "single_word": false,
172
+ "special": false
173
+ },
174
+ "21": {
175
+ "content": "٨",
176
+ "lstrip": false,
177
+ "normalized": false,
178
+ "rstrip": false,
179
+ "single_word": false,
180
+ "special": false
181
+ },
182
+ "22": {
183
+ "content": "٩",
184
+ "lstrip": false,
185
+ "normalized": false,
186
+ "rstrip": false,
187
+ "single_word": false,
188
+ "special": false
189
+ }
190
+ },
191
+ "bos_token": "<s>",
192
+ "clean_up_tokenization_spaces": false,
193
+ "eos_token": "</s>",
194
+ "extra_special_tokens": {},
195
+ "legacy": false,
196
+ "max_length": null,
197
+ "model_max_length": 1000000000000000019884624838656,
198
+ "pad_to_multiple_of": null,
199
+ "pad_token": "</s>",
200
+ "pad_token_type_id": 0,
201
+ "padding_side": "left",
202
+ "sp_model_kwargs": {},
203
+ "spaces_between_special_tokens": false,
204
+ "tokenizer_class": "LlamaTokenizer",
205
+ "unk_token": "<unk>",
206
+ "use_default_system_prompt": false
207
+ }
best-checkpoint/trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
 
best-checkpoint/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26626425c8ddad2150d27d71e703ee3a08cc95b0e1c29869764ee3f35d0cf1cc
3
+ size 7569