Skip to content

Implement attentive pooling for finetuning #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 111 commits into
base: master
Choose a base branch
from
Draft

Implement attentive pooling for finetuning #168

wants to merge 111 commits into from

Conversation

ryspark
Copy link
Contributor

@ryspark ryspark commented Jul 15, 2025

See the corresponding PR in rslearn. Implements a simple attention mechanism on top of the shared helios encoder. Should be merged after #165.

Breaking change: the helios encoder now returns a full M x B x C x H x W x T tensor, where M is the fused modality and bandset dimension, B is batch, C is channel, H/W are spatial, and T is temporal. The pooling layers in rslearn handle the dimension reduction via averaging or attention. Otherwise, backwards compatible with older checkpoints, since a pooling layer is automatically inserted if one isn't found.

yawenzzzz and others added 30 commits May 8, 2025 15:49
There are several other changes:
- Upgrade beaker-py to 2.x (queues are not supported in older version).
- Update helios.Dockerfile to use pytorch 2.7.0 to reduce build time.
- Update one_off_projects/convert_satlas_webmercator_to_rslearn/lib/__init__.py for new rslearn VectorFormat.encode_vector API.
- Remove manage_scratch_dir_on_data_disk option since it's not needed anymore (since the Docker volumes are now on the big /data disk across all Beaker nodes).
I also updated the launcher code to accept specifying a list of configs. This enables
reducing duplication between some of the config files, although makes it more complicated
to start the experiments since you need to specify a list of configs to get the right
combination (this is documented in the README files within each task dir in data/helios
though).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants