Add Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp step 26703 weights
Browse files- Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703/README.md +25 -0
- Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703/config.json +142 -0
- Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703/manifest.json +33 -0
- Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703/model.safetensors +3 -0
- Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703/tokenizer/special_tokens_map.json +8 -0
- Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703/tokenizer/tokenizer.json +0 -0
- Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703/tokenizer/tokenizer_config.json +45 -0
Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp — step 26703
|
| 2 |
+
|
| 3 |
+
Final model weights; 671,227,392 parameters; 7,000,031,232 consumed training input tokens.
|
| 4 |
+
|
| 5 |
+
Native Megatron tensor names, shapes, dtypes and values are preserved. Every tensor was checked for finite values and exact serialization equality; strict native loading passed on CPU. This is a weights-only export, not a training-resume bundle or Transformers AutoModel export.
|
| 6 |
+
|
| 7 |
+
Use loopTF-workspace loading revision `57b880dff6611944aa58ab587930322694b3c47d`. The tokenizer files are in `tokenizer/`; training settings and any available final validation metrics are in `config.json`. Exporting does not run evaluation.
|
| 8 |
+
|
| 9 |
+
```python
|
| 10 |
+
import json
|
| 11 |
+
from pathlib import Path
|
| 12 |
+
from types import SimpleNamespace
|
| 13 |
+
from safetensors.torch import load_file
|
| 14 |
+
from loop_transformer_backends.benchmarks.models import build_native
|
| 15 |
+
|
| 16 |
+
folder = Path('/path/to/downloaded/step_folder')
|
| 17 |
+
config = json.loads((folder / 'config.json').read_text())
|
| 18 |
+
state = load_file(str(folder / 'model.safetensors'), device='cpu')
|
| 19 |
+
model, metadata = build_native({
|
| 20 |
+
'args': SimpleNamespace(**config['native_loading_args']),
|
| 21 |
+
'model': state | config['non_tensor_state_dict_entries'],
|
| 22 |
+
'iteration': config['iteration'],
|
| 23 |
+
})
|
| 24 |
+
model.eval()
|
| 25 |
+
```
|
Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703/config.json
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architecture": "lookahead",
|
| 3 |
+
"checkpoint_format": "safetensors_native_megatron_state_dict",
|
| 4 |
+
"checkpoint_iteration": 26703,
|
| 5 |
+
"execution_architecture": "lookahead",
|
| 6 |
+
"final_checkpoint": true,
|
| 7 |
+
"final_validation": null,
|
| 8 |
+
"iteration": 26703,
|
| 9 |
+
"loading_code_revision": "57b880dff6611944aa58ab587930322694b3c47d",
|
| 10 |
+
"loading_note": "Native loopTF weights; use the project adapter, not Transformers AutoModel. Optimizer, scheduler, RNG and dataloader state are excluded.",
|
| 11 |
+
"lookahead_config": {
|
| 12 |
+
"allow_objective_change_on_resume": false,
|
| 13 |
+
"attention_backend": "sdpa_auto",
|
| 14 |
+
"auxiliary_loss_passes": "final",
|
| 15 |
+
"auxiliary_loss_weighting": "sum",
|
| 16 |
+
"cache_layer_indices": null,
|
| 17 |
+
"checkpoint_refiner": false,
|
| 18 |
+
"draft_loss_weight": 0.0,
|
| 19 |
+
"feedback_loss_weight": 1.0,
|
| 20 |
+
"future_gradient_mode": "all",
|
| 21 |
+
"future_loss_weight": 0.0,
|
| 22 |
+
"mode": "parallel",
|
| 23 |
+
"normalize_feedback_embedding": false,
|
| 24 |
+
"normalize_feedback_output": false,
|
| 25 |
+
"num_passes": 3,
|
| 26 |
+
"num_refiner_layers": 3,
|
| 27 |
+
"pseudo_initializer": "A2",
|
| 28 |
+
"pseudo_temperature": 1.0,
|
| 29 |
+
"pseudo_top_k": 128,
|
| 30 |
+
"refined_future_loss_weight": 0.0,
|
| 31 |
+
"refiner_activation": "swiglu",
|
| 32 |
+
"refiner_gate_bias": -2.0,
|
| 33 |
+
"refiner_intermediate_size": 5632,
|
| 34 |
+
"refiner_memory": true,
|
| 35 |
+
"refiner_memory_only": true,
|
| 36 |
+
"refiner_variant": "R0"
|
| 37 |
+
},
|
| 38 |
+
"model_config": {
|
| 39 |
+
"attention_dropout": 0.0,
|
| 40 |
+
"attn_implementation": "sdpa",
|
| 41 |
+
"backbone_profile": "paper2604_vanilla",
|
| 42 |
+
"gradient_checkpointing": false,
|
| 43 |
+
"hf_config_overrides": {},
|
| 44 |
+
"hidden_size": 1408,
|
| 45 |
+
"initializer_range": 0.02,
|
| 46 |
+
"intermediate_size": 5632,
|
| 47 |
+
"max_position_embeddings": 2048,
|
| 48 |
+
"model_type": "full_bandwidth",
|
| 49 |
+
"num_attention_heads": 11,
|
| 50 |
+
"num_hidden_layers": 20,
|
| 51 |
+
"num_key_value_heads": 11,
|
| 52 |
+
"padded_vocab_size": 32064,
|
| 53 |
+
"paper_allow_ffn_override": false,
|
| 54 |
+
"paper_full_attention_interval": 6,
|
| 55 |
+
"paper_sliding_window": 2048,
|
| 56 |
+
"pretrained_model_name_or_path": null,
|
| 57 |
+
"revision": null,
|
| 58 |
+
"rms_norm_eps": 1e-06,
|
| 59 |
+
"rope_theta": 10000,
|
| 60 |
+
"tie_word_embeddings": false,
|
| 61 |
+
"trust_remote_code": false,
|
| 62 |
+
"vocab_size": 32001
|
| 63 |
+
},
|
| 64 |
+
"native_loading_args": {
|
| 65 |
+
"architecture": "lookahead",
|
| 66 |
+
"attention_dropout": 0.0,
|
| 67 |
+
"backbone_profile": "paper2604_vanilla",
|
| 68 |
+
"context_parallel_size": 1,
|
| 69 |
+
"ffn_hidden_size": 5632,
|
| 70 |
+
"hidden_size": 1408,
|
| 71 |
+
"init_method_std": 0.02,
|
| 72 |
+
"layernorm_epsilon": 1e-06,
|
| 73 |
+
"lookahead_a2_embedding_bag": true,
|
| 74 |
+
"lookahead_allow_objective_change_on_resume": false,
|
| 75 |
+
"lookahead_attention_backend": "sdpa_auto",
|
| 76 |
+
"lookahead_auxiliary_loss_passes": "final",
|
| 77 |
+
"lookahead_auxiliary_loss_weighting": "sum",
|
| 78 |
+
"lookahead_cache_layers": null,
|
| 79 |
+
"lookahead_checkpoint_refiner": false,
|
| 80 |
+
"lookahead_compile_blocks": true,
|
| 81 |
+
"lookahead_draft_loss_weight": 0.0,
|
| 82 |
+
"lookahead_feedback_loss_weight": 1.0,
|
| 83 |
+
"lookahead_full_attention_interval": 6,
|
| 84 |
+
"lookahead_future_gradient_mode": "all",
|
| 85 |
+
"lookahead_future_loss_weight": 0.0,
|
| 86 |
+
"lookahead_gradient_checkpointing": false,
|
| 87 |
+
"lookahead_mode": "parallel",
|
| 88 |
+
"lookahead_normalize_feedback_embedding": false,
|
| 89 |
+
"lookahead_normalize_feedback_output": false,
|
| 90 |
+
"lookahead_num_passes": 3,
|
| 91 |
+
"lookahead_pseudo_initializer": "A2",
|
| 92 |
+
"lookahead_pseudo_temperature": 1.0,
|
| 93 |
+
"lookahead_pseudo_top_k": 128,
|
| 94 |
+
"lookahead_refined_future_loss_weight": 0.0,
|
| 95 |
+
"lookahead_refiner_ffn_size": 5632,
|
| 96 |
+
"lookahead_refiner_gate_bias": -2.0,
|
| 97 |
+
"lookahead_refiner_memory": true,
|
| 98 |
+
"lookahead_refiner_memory_only": true,
|
| 99 |
+
"lookahead_refiner_variant": "R0",
|
| 100 |
+
"lookahead_sliding_window": 2048,
|
| 101 |
+
"lookahead_z_loss_coefficient": 0.0,
|
| 102 |
+
"num_attention_heads": 11,
|
| 103 |
+
"num_layers": 20,
|
| 104 |
+
"num_query_groups": 11,
|
| 105 |
+
"padded_vocab_size": 32064,
|
| 106 |
+
"pipeline_model_parallel_size": 1,
|
| 107 |
+
"rotary_base": 10000,
|
| 108 |
+
"seq_length": 2048,
|
| 109 |
+
"tensor_model_parallel_size": 1,
|
| 110 |
+
"untie_embeddings_and_output_weights": true,
|
| 111 |
+
"vocab_size": 32001
|
| 112 |
+
},
|
| 113 |
+
"non_tensor_state_dict_entries": {},
|
| 114 |
+
"parameter_counts": {
|
| 115 |
+
"total_parameters": 671227392,
|
| 116 |
+
"total_trainable": 671227392
|
| 117 |
+
},
|
| 118 |
+
"tensor_count": 199,
|
| 119 |
+
"tensor_dtypes": {
|
| 120 |
+
"torch.bfloat16": 148,
|
| 121 |
+
"torch.float32": 51
|
| 122 |
+
},
|
| 123 |
+
"tokenizer": {
|
| 124 |
+
"active_vocab_size": 32001,
|
| 125 |
+
"path": "tokenizer"
|
| 126 |
+
},
|
| 127 |
+
"training": {
|
| 128 |
+
"consumed_train_samples": 3417984,
|
| 129 |
+
"final_checkpoint": true,
|
| 130 |
+
"global_batch_size": 128,
|
| 131 |
+
"input_tokens": 7000031232,
|
| 132 |
+
"iteration": 26703,
|
| 133 |
+
"planned_input_tokens": 7000031232,
|
| 134 |
+
"seed": 42,
|
| 135 |
+
"sequence_length": 2048,
|
| 136 |
+
"train_iters": 26703
|
| 137 |
+
},
|
| 138 |
+
"training_code_revision": "f37eb269641895368bceffe45f0d17e5a99ba719",
|
| 139 |
+
"training_run": "Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp",
|
| 140 |
+
"training_tokens": 7000031232,
|
| 141 |
+
"wandb_run_id": "9brnbryp"
|
| 142 |
+
}
|
Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703/manifest.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"checkpoint_iteration": 26703,
|
| 3 |
+
"files": {
|
| 4 |
+
"README.md": {
|
| 5 |
+
"sha256": "e934e8fcb7e6e9df1bb74eb9806841c08eef66a2cfdffbfa49ce29b24d28d65d",
|
| 6 |
+
"size": 1301
|
| 7 |
+
},
|
| 8 |
+
"config.json": {
|
| 9 |
+
"sha256": "86463bc969f388c69ac184fe1fec7604f025c36518f8ecf8c9bc5fde249c9877",
|
| 10 |
+
"size": 4829
|
| 11 |
+
},
|
| 12 |
+
"model.safetensors": {
|
| 13 |
+
"sha256": "06d23b4724a64234838b8a6dbc0a341fdcd99361e58d6618d5bf605e0acfb2e0",
|
| 14 |
+
"size": 1342621256
|
| 15 |
+
},
|
| 16 |
+
"tokenizer/special_tokens_map.json": {
|
| 17 |
+
"sha256": "99e1ac71ff7f0e3e60e45169cdfd7e8540b8c234e7146100e60a02c4751553ee",
|
| 18 |
+
"size": 134
|
| 19 |
+
},
|
| 20 |
+
"tokenizer/tokenizer.json": {
|
| 21 |
+
"sha256": "60c0314d888788ac33de8cb7262be527cffb0af30f0516cc3dd16b2b378bc6cb",
|
| 22 |
+
"size": 3619206
|
| 23 |
+
},
|
| 24 |
+
"tokenizer/tokenizer_config.json": {
|
| 25 |
+
"sha256": "77f3faab79c4008cb57c4baab3c75b69ef088c5fb15e8f7af59471fe37abc001",
|
| 26 |
+
"size": 988
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
"path_in_repo": "Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703",
|
| 30 |
+
"repo_id": "Siyuc/loopTF-workspace",
|
| 31 |
+
"repo_type": "model",
|
| 32 |
+
"schema_version": 1
|
| 33 |
+
}
|
Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06d23b4724a64234838b8a6dbc0a341fdcd99361e58d6618d5bf605e0acfb2e0
|
| 3 |
+
size 1342621256
|
Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703/tokenizer/special_tokens_map.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|assistant_end|>"
|
| 4 |
+
],
|
| 5 |
+
"bos_token": "<s>",
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"unk_token": "<unk>"
|
| 8 |
+
}
|
Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703/tokenizer/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Lookahead-K3-LA2-A2-R0-D0-P0-F0-seed42-refinerMemoryOnly-7b-compiled-a2bag-MB4--9brnbryp/step_26703/tokenizer/tokenizer_config.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "<unk>",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": true,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"1": {
|
| 12 |
+
"content": "<s>",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": true,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"2": {
|
| 20 |
+
"content": "</s>",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": true,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"32000": {
|
| 28 |
+
"content": "<|assistant_end|>",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"additional_special_tokens": [
|
| 37 |
+
"<|assistant_end|>"
|
| 38 |
+
],
|
| 39 |
+
"bos_token": "<s>",
|
| 40 |
+
"clean_up_tokenization_spaces": false,
|
| 41 |
+
"eos_token": "</s>",
|
| 42 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 43 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 44 |
+
"unk_token": "<unk>"
|
| 45 |
+
}
|