Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/shared_sharded_dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ rclone copy r2-source:mixed-dataset-migration/anneal/ r2-dest:<your-bucket-name>
```

##### Copy specific shards (Partial Migration for Testing)
If you want to test with just the first shard:
If you want to test with the current anneal shard:
```bash
# Copy first training shard and its sample IDs
rclone copy r2-source:mixed-dataset-migration/anneal/anneal_000000.npy r2-dest:<your-bucket-name>/anneal/ --progress
rclone copy r2-source:mixed-dataset-migration/anneal/sample_ids_anneal_000000.npy r2-dest:<your-bucket-name>/anneal/ --progress
# Copy anneal shard 2 and its sample IDs
rclone copy r2-source:mixed-dataset-migration/anneal/anneal_000002.npy r2-dest:<your-bucket-name>/anneal/ --progress
rclone copy r2-source:mixed-dataset-migration/anneal/sample_ids_anneal_000002.npy r2-dest:<your-bucket-name>/anneal/ --progress
```

After migration, update your environment variables to point to your bucket:
Expand Down
2 changes: 1 addition & 1 deletion hparams/hparams.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"start_global_step": 6100,
"warmup_inner_steps": 200,
"decay_outer_steps": 550,
"peak_lr_factor": 0.3,
"peak_lr_factor": 0.25,
"eta_min_factor": 0.0,
"file_prefix": "anneal"
},
Expand Down
4 changes: 2 additions & 2 deletions neurons/miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,9 @@ async def run(self):
self.outer_steps_per_shard,
self.shard_reset_outer_step,
)
# In anneal mode, always use shard 0
# In anneal mode, always use shard 2
if self.dataset_manager.anneal_mode:
current_shard = 0
current_shard = 2
current_shard_epoch = 0
tplr.logger.info(
f"Starting with global_step={self.global_step} (actual outer steps)"
Expand Down
4 changes: 2 additions & 2 deletions neurons/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1263,9 +1263,9 @@ async def run(self):
self.outer_steps_per_shard,
self.shard_reset_outer_step,
)
# In anneal mode, always use shard 0
# In anneal mode, always use shard 2
if self.dataset_manager.anneal_mode:
current_shard = 0
current_shard = 2
shard_epoch = 0

# Initialize datasets (only rank 0 downloads, handled internally by dataset_manager)
Expand Down
2 changes: 1 addition & 1 deletion src/tplr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# mypy: ignore-errors
# type: ignore

__version__ = "2.1.23"
__version__ = "2.1.24"

# Import package.
from .chain import *
Expand Down
2 changes: 1 addition & 1 deletion src/tplr/sharded_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ async def initialize_datasets(self, current_shard_index: int) -> None:

self.active_dataset = await self.create_dataset(current_shard_index)

# In anneal mode, don't prepare next shard (we stay on shard 0)
# In anneal mode, don't prepare next shard (we stay on one shard)
if self.anneal_mode:
self.upcoming_dataset = asyncio.create_task(asyncio.sleep(0))
return
Expand Down