Skip to content

Commit 080cdc6

Browse files
authored
Merge pull request #236 from allenai/henryh/helios-to-olmoearth_pretrain
Update to latest commit of Olmoearth_pretrain
2 parents 1c2c836 + 1e2ddc8 commit 080cdc6

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.github/workflows/build_test.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ jobs:
5555
sudo rm -rf /opt/ghc
5656
sudo rm -rf /usr/local/share/boost
5757
58-
# Add deploy key and clone Helios repository.
59-
- name: Start ssh-agent and add helios deploy key
58+
# Add deploy key and clone olmoearth_pretrain repository.
59+
- name: Start ssh-agent and add olmoearth_pretrain deploy key
6060
uses: webfactory/[email protected]
6161
with:
6262
ssh-private-key: ${{ secrets.DEPLOY_KEY_FOR_HELIOS_CLONE }}
63-
- name: Clone helios and update requirements-extra.txt.
63+
- name: Clone olmoearth_pretrain and update requirements-extra.txt.
6464
run: |
6565
mkdir docker_build
66-
git clone [email protected]:allenai/helios.git docker_build/helios
67-
git -C docker_build/helios checkout f0a63f190b0f99d9c503249daf7e3e47bbd4792a
68-
echo "helios @ /opt/rslearn_projects/docker_build/helios/" >> requirements-extra.txt
66+
git clone [email protected]:allenai/olmoearth_pretrain.git docker_build/olmoearth_pretrain
67+
git -C docker_build/olmoearth_pretrain checkout 0cd82b4784bc2f246a23f6da98a9bab27761c1ba
68+
echo "olmoearth_pretrain @ /opt/rslearn_projects/docker_build/olmoearth_pretrain/" >> requirements-extra.txt
6969
7070
# Same thing for olmoearth_run repository.
7171
- name: Start ssh-agent and add olmoearth_run deploy key

requirements-helios.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
helios @ git+https://github.com/allenai/helios.git@f0a63f190b0f99d9c503249daf7e3e47bbd4792a
1+
olmoearth_pretrain @ git+https://github.com/allenai/olmoearth_pretrain.git@0cd82b4784bc2f246a23f6da98a9bab27761c1ba

rslp/helios/model.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
import torch
88
from einops import rearrange
9-
from helios.data.constants import Modality
10-
from helios.nn.flexihelios import Encoder, TokensAndMasks
11-
from helios.train.masking import MaskedHeliosSample, MaskValue
129
from olmo_core.config import Config
1310
from olmo_core.distributed.checkpoint import load_model_and_optim_state
11+
from olmoearth_pretrain.data.constants import Modality
12+
from olmoearth_pretrain.nn.flexihelios import Encoder, TokensAndMasks
13+
from olmoearth_pretrain.train.masking import MaskedOlmoEarthSample, MaskValue
1414
from upath import UPath
1515

1616
from rslp.log_utils import get_logger
@@ -53,7 +53,7 @@ def __init__(
5353
selector: an optional sequence of attribute names or list indices to select
5454
the sub-module that should be applied on the input images.
5555
forward_kwargs: additional arguments to pass to forward pass besides the
56-
MaskedHeliosSample.
56+
MaskedOlmoEarthSample.
5757
random_initialization: whether to skip loading the checkpoint so the
5858
weights are randomly initialized. In this case, the checkpoint is only
5959
used to define the model architecture.
@@ -148,7 +148,7 @@ def forward(self, inputs: list[dict[str, Any]]) -> list[torch.Tensor]:
148148
timestamps[:, :, 2] = 2024 # year
149149
kwargs["timestamps"] = timestamps
150150

151-
sample = MaskedHeliosSample(**kwargs)
151+
sample = MaskedOlmoEarthSample(**kwargs)
152152

153153
# Decide context based on self.autocast_dtype.
154154
if self.autocast_dtype is None:

rslp/helios/norm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import json
44
from typing import Any
55

6-
from helios.data.normalize import load_computed_config
6+
from olmoearth_pretrain.data.normalize import load_computed_config
77
from rslearn.train.transforms.transform import Transform
88

99
from rslp.log_utils import get_logger

0 commit comments

Comments
 (0)