-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warm the cache for starter checkpoints
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM mosaicml/pytorch:2.1.2_cu121-python3.10-ubuntu20.04 | ||
|
||
# warm up huggingface cache | ||
RUN pushd /root/.cache \ | ||
curl "https://storage.googleapis.com/dirkgr-public/huggingface_cache.tar.gz" | tar -xzf - \ | ||
popd | ||
ENV HF_DATASETS_OFFLINE=1 | ||
|
||
# warm up cache of checkpoints | ||
RUN pip install --no-cache cached_path | ||
RUN python -c "import cached_path; cached_path.cached_path('r2://olmo-checkpoints/ai2-llm/olmo-medium/hrshlkzq/step119000-unsharded/model.pt')" | ||
RUN python -c "import cached_path; cached_path.cached_path('r2://olmo-checkpoints/ai2-llm/olmo-medium/j18wauyq/step238000-unsharded/model.pt')" | ||
RUN python -c "import cached_path; cached_path.cached_path('r2://olmo-checkpoints/ai2-llm/olmo-medium/4xel5n7e/step358000-unsharded/model.pt')" | ||
RUN python -c "import cached_path; cached_path.cached_path('r2://olmo-checkpoints/ai2-llm/olmo-medium/xtruaap8/step477000-unsharded/model.pt')" | ||
RUN python -c "import cached_path; cached_path.cached_path('r2://olmo-checkpoints/ai2-llm/olmo-medium/hrshlkzq/step119000-unsharded/train.pt')" | ||
RUN python -c "import cached_path; cached_path.cached_path('r2://olmo-checkpoints/ai2-llm/olmo-medium/j18wauyq/step238000-unsharded/train.pt')" | ||
RUN python -c "import cached_path; cached_path.cached_path('r2://olmo-checkpoints/ai2-llm/olmo-medium/4xel5n7e/step358000-unsharded/train.pt')" | ||
RUN python -c "import cached_path; cached_path.cached_path('r2://olmo-checkpoints/ai2-llm/olmo-medium/xtruaap8/step477000-unsharded/train.pt')" |