Skip to content

Commit

Permalink
add 2.1 images (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg authored Oct 6, 2023
1 parent cb1d94a commit d3c3305
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
base_image: mosaicml/pytorch:1.13.1_cu117-python3.10-ubuntu20.04
- name: '2.0.1_cu118'
base_image: mosaicml/pytorch:2.0.1_cu118-python3.10-ubuntu20.04
- name: '2.1.0_cu121'
base_image: mosaicml/pytorch:2.1.0_cu121-python3.10-ubuntu20.04

steps:
- name: Maximize Build Space on Worker
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr-cpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ jobs:
container: mosaicml/pytorch:2.0.1_cpu-python3.10-ubuntu20.04
markers: 'not gpu'
pytest_command: 'coverage run -m pytest'
- name: 'cpu-2.1.0'
container: mosaicml/pytorch:2.1.0_cpu-python3.10-ubuntu20.04
markers: 'not gpu'
pytest_command: 'coverage run -m pytest'
name: ${{ matrix.name }}
if: github.repository_owner == 'mosaicml'
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr-gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ jobs:
container: mosaicml/pytorch:2.0.1_cu117-python3.10-ubuntu20.04
markers: 'gpu'
pytest_command: 'coverage run -m pytest'
- name: 'gpu-2.1.0'
container: mosaicml/pytorch:2.1.0_cu121-python3.10-ubuntu20.04
markers: 'gpu'
pytest_command: 'coverage run -m pytest'
name: ${{ matrix.name }}
if: github.repository_owner == 'mosaicml'
with:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_lion8b.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def _set_state_dict_type(model: nn.Module):

# load state dict into the new optimizer
opt_state_dict_slice = FSDP.optim_state_dict_to_load(
opt_state_dict, mod_new, opt_new)
optim_state_dict=opt_state_dict, model=mod_new, optim=opt_new)
opt_new.load_state_dict(opt_state_dict_slice)

new_opt_state_dict = FSDP.optim_state_dict(mod_new, opt_new)
Expand Down

0 comments on commit d3c3305

Please sign in to comment.