Skip to content

Commit 90089cd

Browse files
committed
Merge branch 'main' into dev
2 parents 6096af4 + 7714b13 commit 90089cd

File tree

10 files changed

+378
-448
lines changed

10 files changed

+378
-448
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ MASTER_PORT ?= 26000 # port for distributed tests
55
PYTHON ?= python
66
PYTEST ?= pytest
77
EXTRA_ARGS ?= # extra arguments for pytest
8+
PYRIGHT_PYTHON_FORCE_VERSION ?= 1.1.224
89

910
# Force append the duration flag to extra args
1011
override EXTRA_ARGS += --duration $(DURATION)
@@ -22,7 +23,7 @@ lint:
2223
$(PYTHON) -m isort -c --diff $(dirs)
2324
$(PYTHON) -m yapf -dr $(dirs)
2425
$(PYTHON) -m docformatter -r --wrap-summaries 120 --wrap-descriptions 120 $(dirs)
25-
pyright $(dirs)
26+
PYRIGHT_PYTHON_FORCE_VERSION=$(PYRIGHT_PYTHON_FORCE_VERSION) pyright $(dirs)
2627

2728
test:
2829
$(PYTHON) -m $(PYTEST) tests/ $(EXTRA_ARGS)

composer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
from composer.models import ComposerModel as ComposerModel
2424
from composer.trainer import Trainer as Trainer
2525

26-
__version__ = "0.3.1"
26+
__version__ = "0.4.0"

composer/loggers/wandb_logger.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ def state_dict(self) -> StateDict:
8181

8282
# Storing these fields in the state dict to support run resuming in the future.
8383
if self._enabled:
84+
if wandb.run is None:
85+
raise ValueError("wandb must be initialized before serialization.")
8486
return {
8587
"name": wandb.run.name,
8688
"project": wandb.run.project,

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Using Composer, you can:
1515
Composer features:
1616

1717
- 20+ efficient training methods for training a better language and vision models! Don't waste hours trying to reproduce research papers when Composer has done the work for you.
18-
- Easy-to-use Trainer interface written to be as performant as possible, and `integrated best practices<https://www.mosaicml.com/blog/best-practices-dec-2021>`.
18+
- Easy-to-use Trainer interface written to be as performant as possible, and `integrated best practices <https://www.mosaicml.com/blog/best-practices-dec-2021>`_.
1919
- Easy-to-use Functional forms that allow you to integrate efficient training methods into your training loop!
2020
- Strong, `reproducible` baselines to get you started as 💨 fast 💨 as possible
2121

meta.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
package:
44
name: mosaicml
5-
version: "0.3.1"
5+
version: "0.4.0"
66

77
source:
88
git_url: https://github.com/mosaicml/composer.git
9-
# TODO change to "v0.3.1"
9+
# TODO change to "v0.4.0"
1010
git_rev: "dev"
1111
git_depth: 1
1212

@@ -56,7 +56,7 @@ test:
5656
- pytest-timeout >=1.4.2
5757
- testbook >=0.4.2
5858
# Including all run_constrained requirements in the test requirements, so those tests will not be import-skipped
59-
- pip # Since deepspeed and timm are not available on anaconda, they are installed via pip.
59+
- pip # Since deepspeed and timm are not available on anaconda, they are installed via pip.
6060
- wandb >=0.12.2
6161
- monai >=0.7.0
6262
- scikit-learn >=1.0.1
@@ -74,7 +74,7 @@ test:
7474
- composer
7575
- tests
7676
commands:
77-
- pip install deepspeed>=0.5.5 timm>=0.5.4 # deepspeed is not available on conda, and timm has a conda version conflict
77+
- pip install deepspeed>=0.5.5 timm>=0.5.4 # deepspeed is not available on conda, and timm has a conda version conflict
7878
- make test DURATION=all EXTRA_ARGS="-m 'not notebooks and not gpu'"
7979
- make test-dist DURATION=all WORLD_SIZE=2 EXTRA_ARGS="-m 'not notebooks and not gpu'"
8080

0 commit comments

Comments
 (0)