Mosaicml

Latest version: v0.27.0

Safety actively analyzes 682487 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 15

0.13.4

**Full Changelog**: https://github.com/mosaicml/composer/compare/v0.13.3...v0.13.4

0.13.3

Bug Fixes
* add sentencepiece support by dakinggg in 2093

What's Changed
* Bump version to 0.13.3 by bandish-shah in 2115
* add missing import by dakinggg in 2113
* add sentencepiece support by dakinggg in 2093
* Pin mcli version until API change is resolved by dakinggg in 2111

**Full Changelog**: https://github.com/mosaicml/composer/compare/v0.13.2...v0.13.3

0.13.2

Bug Fixes
* test and fix composer package name usage in composer_collect_env (2049)
* Backward Compat with Torchmetrics by mvpatel2000 (2046)
* Fix OCIObjectStore save_overwrite=False bug (2053)
* busy wait for the rank 0 download (2071)
* Skip extra downloads when not using a format string (2073)

What's Changed
* Pin transformers package to <4.27 by dakinggg in 2076
* Bump version to v0.13.2 (2068) by bandish-shah
* Skip extra downloads when not using a format string by dakinggg in 2073
* add support for autoresume + FSDP + sharding by dakinggg in 2072
* busy wait for the rank 0 download by dakinggg in 2071
* Revert "Checkpoints Simplified (2059)" by dakinggg in 2070
* Add `device` and `dtype` back to `LPLayerNorm` (2067) by abhi-mosaic
* Checkpoints Simplified by mvpatel2000 in 2059
* Allow `LPLayerNorm` and `LPGroupNorm` to support `self.bias` or `self.weight` = None (2044) by abhi-mosaic
* Add `NO_REENTRANT` activation checkpointing (2042) by bmosaicml
* pin torchmetrics by mvpatel2000 in 2065
* Update docs with non-rank zero logs instructions by hanlint in 2058
* Fix OCIObjectStore save_overwrite=False bug by eracah in 2053
* Busy wait for local rank 0 download to avoid timeout on large file download by dakinggg in 2054
* Raise error if attempting to export FSDP model by hanlint in 2051
* Revert "Checkpoints Simplified (2041)" by dakinggg in 2056
* Delete composer package GPU workflow by dakinggg in 2055
* Add composer PyPI package tests to daily workflow (2052) by bandish-shah
* Checkpoints Simplified by mvpatel2000 in 2041
* update fsdp mixed precision by vchiley in 2047
* Backward Compat with Torchmetrics by mvpatel2000 in 2046
* Update FSDP meta weight tying tests to include precision testing by bcui19 in 2050
* Log nodename information in composer by eracah in 2043
* test and fix composer package name usage in composer_collect_env by dakinggg in 2049
* Adjust how HuggingFaceModel handles embedding resizing by dakinggg in 2027
* Adds a PR guidelines section to contributing.md by dakinggg in 1993
* Bump pypandoc from 1.10 to 1.11 (2038) by dependabot[bot]
* Bump pytest from 7.2.1 to 7.2.2 (2039) by dependabot[bot]
* Use follow in mcp script by mvpatel2000 in 2022

**Full Changelog**: https://github.com/mosaicml/composer/compare/v0.13.1...v0.13.2

0.13.1

**Note:** The `mosaicml==0.13.0` PyPi package was yanked due to some minor packaging issues discovered after release. The package was re-released as Composer v0.13.1, thus these release notes contain details for both v0.13.0 and v0.13.1.

New Features

1. **🤙 New and Updated Callbacks**

* *New `HealthChecker` Callback (2002)*

The callback will log a warning if the GPUs on a given node appear to be in poor health (low utilization). The callback can also be configured to send a Slack message!

python
from composer import Trainer
from composer.callbacks import HealthChecker

Warn if GPU utilization difference drops below 10%
health_checker = HealthChecker(
threshold = 10
)

Construct Trainer
trainer = Trainer(
...,
callbacks=health_checker,
)

Train!
trainer.fit()


* *Updated `MemoryMonitor` to use GigaBytes (GB) units (1940)*

* *New `RuntimeEstimator` Callback (1991)*

Estimate the remaining runtime of your job! Approximates the time remaining by observing the throughput and comparing to the number of batches remaining.

python
from composer import Trainer
from composer.callbacks import RuntimeEstimator

Construct trainer with RuntimeEstimator callback
trainer = Trainer(
...,
callbacks=RuntimeEestimator(),
)

Train!
trainer.fit()


* *Updated `SpeedMonitor` throughput metrics (1987)*

Expands throughput metrics to track relative to several different time units and per device:
* `throughput/batches_per_sec` and `throughput/device/batches_per_sec`
* `throughput/tokens_per_sec` and `throughput/device/tokens_per_sec`
* `throughput/flops_per_sec` and `throughput/device/flops_per_sec`
* `throughput/device/samples_per_sec`

Also adds `throughput/device/mfu` metric to compute per device MFU. Simply enable the `SpeedMonitor` callback per usual to log these new metrics! Please see [SpeedMonitor](https://docs.mosaicml.com/en/latest/api_reference/generated/composer.callbacks.SpeedMonitor.html#composer.callbacks.SpeedMonitor) documentation for more information.


1. **⣿ FSDP Sharded Checkpoints (1902)**

Users can now specify the `state_dict_type` in the `fsdp_config` dictionary to enable sharded checkpoints. For example:

python
from composer import Trainer

fsdp_confnig = {
'sharding_strategy': 'FULL_SHARD',
'state_dict_type': 'local',
}

trainer = Trainer(
...,
fsdp_config=fsdp_config,
save_folder='checkpoints',
save_filename='ba{batch}_rank{rank}.pt',
save_interval='10ba',
)


Please see the [PyTorch FSDP](https://pytorch.org/docs/stable/fsdp.html#torch.distributed.fsdp.FullyShardedDataParallel.state_dict) docs and Composer's [Distributed Training notes](https://docs.mosaicml.com/en/latest/notes/distributed_training.html#saving-and-loading-sharded-checkpoints-with-fsdp) for more information.

1. **🤗 HuggingFace Improvements**

* Update `HuggingFaceModel` class to support encoder-decoder batches without `decoder_input_ids` (1950)
* Allow evaluation metrics to be passed to `HuggingFaceModel` directly (1971)
* Add a utility function to load a Composer checkpoint of a `HuggingFaceModel` and write out the expected `config.json` and `pytorch_model.bin` in the HuggingFace pretrained folder (1974)

1. **🛟 Nvidia H100 Alpha Support - Added `amp_fp8` data type**

In preparation for H100's arrival, we've added the `amp_fp8` precision type. Currently setting `amp_fp8` specifies a new precision context using `transformer_engine.pytorch.fp8_autocast.` For more details, please see Nvidia's new [Transformer Engine](https://docs.nvidia.com/deeplearning/transformer-engine/user-guide/index.html) and the specific [fp8 recipe](https://docs.nvidia.com/deeplearning/transformer-engine/user-guide/examples/fp8_primer.html#id1) we utilize.

python
from composer import Trainer

trainer = Trainer(
...,
precision='amp_fp8',
)


API changes

* The `torchmetrics` package has been upgraded to 0.11.x.

The `torchmetrics.Accuracy` metric now requires a `task` argument which can take on a value of `binary`, `multiclass` or `multilabel`. Please see [Torchmetrics Accuracy](https://torchmetrics.readthedocs.io/en/v0.11.3/classification/accuracy.html) docs for details.

Additonally, since specifying `value='multiclass'` requires an additional field of `num_classes` to be specified, we've had to update `ComposerClassifier` to accept the additional `num_classes` argument. Please see PR's 2017 and 2025 for additional details

* Surgery algorithms used in functional form return a value of `None` (1543)

Deprecations

* Deprecate HFCrossEntropy and Perplexity (1857)
* Remove Jenkins CI (1943, 1954)
* Change Deprecation Warnings to Warnings for specifying `ProgressBarLogger` and `ConsoleLogger` to loggers (1846)

Bug Fixes

* Fixed an issue introduced in 0.12.1 where `HuggingFaceModel` crashes if `config.return_dict = False` (1948)
* Refactor EMA to improve memory efficiency (1941)
* Make wandb checkpoint logging compatible with wandb model registry (1973)
* Fix ICL race conditions (1978)
* Update `epoch` metric name to `trainer/epoch` (1986)
* reset scaler (1999)
* Bug/sync optimization logger across ranks (1970)
* Update Docker images to fix resolve vulnerability scan issues (2007)
* Fix eval duplicate logging issue (2018)
* extend test and patch bug (2028)
* Protect for missing slack_sdk import (2031)

Known Issues

* Docker Image Security Vulnerability
* [CVE-2022-45907](https://github.com/advisories/GHSA-47fc-vmwq-366v): The `mosaicml/pytorch:1.12.1*`, `mosaicml/pytorch:1.11.0*`, `mosaicml/pytorch_vision:1.12.1*` and `mosaicml/pytorch_vision:1.11.0*` images are impacted and currently supported for legacy use cases. **We recommend users upgrade to images with PyTorch >1.13. The affected images will be removed in the next Composer release.**

What's Changed
* Raise error if max duration is in epochs and dataloader is infinite by dakinggg in https://github.com/mosaicml/composer/pull/1942
* Bump traitlets from 5.8.0 to 5.9.0 by dependabot in https://github.com/mosaicml/composer/pull/1946
* Deprecate HFCrossEntropy and Perplexity by dakinggg in https://github.com/mosaicml/composer/pull/1857
* Change functional surgery method return values to None by nik-mosaic in https://github.com/mosaicml/composer/pull/1543
* Retire Jenkins by bandish-shah in https://github.com/mosaicml/composer/pull/1943
* Update MCP GHA Name by mvpatel2000 in https://github.com/mosaicml/composer/pull/1951
* update memory monitor by mvpatel2000 in https://github.com/mosaicml/composer/pull/1940
* Move ffcv up in test order by dskhudia in https://github.com/mosaicml/composer/pull/1953
* Fix memory monitor test by mvpatel2000 in https://github.com/mosaicml/composer/pull/1957
* Fix model surgery failure due to functional API change by nik-mosaic in https://github.com/mosaicml/composer/pull/1949
* Change how we check for forwards args in models for HF models by bcui19 in https://github.com/mosaicml/composer/pull/1955
* add return dict false test and bug fix by dakinggg in https://github.com/mosaicml/composer/pull/1948
* remove jenkins ci by mvpatel2000 in https://github.com/mosaicml/composer/pull/1954
* add support for enc-dec batches without decoder_input_ids by dakinggg in https://github.com/mosaicml/composer/pull/1950
* Refactor EMA to improve memory efficiency by coryMosaicML in https://github.com/mosaicml/composer/pull/1941
* Add warning for untrusted checkpoints by mvpatel2000 in https://github.com/mosaicml/composer/pull/1959
* permit opt tokenizer by bmosaicml in https://github.com/mosaicml/composer/pull/1958
* GHA Docker build flow for PR's by bandish-shah in https://github.com/mosaicml/composer/pull/1883
* Update download badge link to pepy by karan6181 in https://github.com/mosaicml/composer/pull/1966
* Update python version in setup.py and fixed pypi download badge by karan6181 in https://github.com/mosaicml/composer/pull/1969
* allow eval metrics to be passed in to HuggingFaceModel directly by dakinggg in https://github.com/mosaicml/composer/pull/1971
* Make wandb checkpoint logging compatible with wandb model registry by growlix in https://github.com/mosaicml/composer/pull/1973
* Add support for FP8 on H100 using NVidia's TransformerEngine by dskhudia in https://github.com/mosaicml/composer/pull/1965
* Util for writing HuggingFace save_pretrained from a composer checkpoint by dakinggg in https://github.com/mosaicml/composer/pull/1974
* Enable sharded checkpoint save and load (support local, sharded, and full state dicts for FSDP) by eracah in https://github.com/mosaicml/composer/pull/1902
* Bump custom-inherit from 2.4.0 to 2.4.1 by dependabot in https://github.com/mosaicml/composer/pull/1981
* Bump gitpython from 3.1.30 to 3.1.31 by dependabot in https://github.com/mosaicml/composer/pull/1982
* Fix ICL race conditions by dakinggg in https://github.com/mosaicml/composer/pull/1978
* add map location to huggingface utils by dakinggg in https://github.com/mosaicml/composer/pull/1980
* fix log epoch by mvpatel2000 in https://github.com/mosaicml/composer/pull/1986
* GHA release workflow, refactor PR and Daily workflows by bandish-shah in https://github.com/mosaicml/composer/pull/1968
* Remove python-version input from Daily CPU tests by bandish-shah in https://github.com/mosaicml/composer/pull/1989
* Add some logic to pass the correct github ref to mcp script by bandish-shah in https://github.com/mosaicml/composer/pull/1990
* Fix typo in docstring for eval with missing space by mvpatel2000 in https://github.com/mosaicml/composer/pull/1992
* Fix failing sharded_checkpoint tests that fail when pytorch 1.13 is not installed by eracah in https://github.com/mosaicml/composer/pull/1988
* Add merge_group event trigger to GHA daily workflow by bandish-shah in https://github.com/mosaicml/composer/pull/1996
* Runtime estimator by mvpatel2000 in https://github.com/mosaicml/composer/pull/1991
* Reset scaler state by mvpatel2000 in https://github.com/mosaicml/composer/pull/1999
* Speed monitor refactor by mvpatel2000 in https://github.com/mosaicml/composer/pull/1987
* Test hf fsdp by dakinggg in https://github.com/mosaicml/composer/pull/1972
* Bug/sync optimization logger across ranks by bmosaicml in https://github.com/mosaicml/composer/pull/1970
* Fix optimizer monitor test gating with FSDP by mvpatel2000 in https://github.com/mosaicml/composer/pull/2000
* Low precision groupnorm by mvpatel2000 in https://github.com/mosaicml/composer/pull/1976
* Bump coverage[toml] from 7.1.0 to 7.2.1 by dependabot in https://github.com/mosaicml/composer/pull/2008
* Update docs to include runtime estimator by mvpatel2000 in https://github.com/mosaicml/composer/pull/2009
* Tag surgery algorithms LPLN and LPGN by mvpatel2000 in https://github.com/mosaicml/composer/pull/2011
* Update SpeedMonitor short-description for docs table by mvpatel2000 in https://github.com/mosaicml/composer/pull/2010
* Update Low Precision LayerNorm arguments by nik-mosaic in https://github.com/mosaicml/composer/pull/1994
* Medical Segmentation Example Typo by mvpatel2000 in https://github.com/mosaicml/composer/pull/2014
* Update wallclock logging to default hours by mvpatel2000 in https://github.com/mosaicml/composer/pull/2005
* Add HealthChecker Callback by hanlint in https://github.com/mosaicml/composer/pull/2002
* Allow FX graph mode post-training dynamic quantisation of BlurConv2d operations. by BrettRyland in https://github.com/mosaicml/composer/pull/1995
* Add multi-gpu testing to test_algorithm_resumption by eracah in https://github.com/mosaicml/composer/pull/2016
* Add backwards compatible checkpoint loading for EMA by coryMosaicML in https://github.com/mosaicml/composer/pull/2012
* fsdp with custom process groups by vchiley in https://github.com/mosaicml/composer/pull/2006
* Patch Speed Monitor MFU by mvpatel2000 in https://github.com/mosaicml/composer/pull/2013
* Remove runtime estimator state dict by mvpatel2000 in https://github.com/mosaicml/composer/pull/2015
* Update Docker images to fix resolve vulnerability scan issues by bandish-shah in https://github.com/mosaicml/composer/pull/2007
* Change Deprecation Warnings to Warnings for specifying ProgressBarLogger and ConsoleLogger to loggers by eracah in https://github.com/mosaicml/composer/pull/1846
* Fix eval duplicate logging issue by mvpatel2000 in https://github.com/mosaicml/composer/pull/2018
* Add workflow_dispatch trigger to pr-docker workflow by bandish-shah in https://github.com/mosaicml/composer/pull/2019
* Bump streaming version to less than 0.4.0 by karan6181 in https://github.com/mosaicml/composer/pull/2020
* Upgrade ipython installed in Docker images by bandish-shah in https://github.com/mosaicml/composer/pull/2021
* Upgrade torchmetrics by nik-mosaic in https://github.com/mosaicml/composer/pull/2017
* Complete upgrade of torchmetrics accuracy by nik-mosaic in https://github.com/mosaicml/composer/pull/2025
* Bump version to v0.13.0 by bandish-shah in https://github.com/mosaicml/composer/pull/2024

New Contributors
* BrettRyland made their first contribution in https://github.com/mosaicml/composer/pull/1995

**Full Changelog**: https://github.com/mosaicml/composer/compare/v0.12.1...v0.13.1

0.13.0

**This release has been yanked due to a minor packaging issue, please skip directly to Composer v0.13.1**

What's Changed
* Raise error if max duration is in epochs and dataloader is infinite by dakinggg in https://github.com/mosaicml/composer/pull/1942
* Bump traitlets from 5.8.0 to 5.9.0 by dependabot in https://github.com/mosaicml/composer/pull/1946
* Deprecate HFCrossEntropy and Perplexity by dakinggg in https://github.com/mosaicml/composer/pull/1857
* Change functional surgery method return values to None by nik-mosaic in https://github.com/mosaicml/composer/pull/1543
* Retire Jenkins by bandish-shah in https://github.com/mosaicml/composer/pull/1943
* Update MCP GHA Name by mvpatel2000 in https://github.com/mosaicml/composer/pull/1951
* update memory monitor by mvpatel2000 in https://github.com/mosaicml/composer/pull/1940
* Move ffcv up in test order by dskhudia in https://github.com/mosaicml/composer/pull/1953
* Fix memory monitor test by mvpatel2000 in https://github.com/mosaicml/composer/pull/1957
* Fix model surgery failure due to functional API change by nik-mosaic in https://github.com/mosaicml/composer/pull/1949
* Change how we check for forwards args in models for HF models by bcui19 in https://github.com/mosaicml/composer/pull/1955
* add return dict false test and bug fix by dakinggg in https://github.com/mosaicml/composer/pull/1948
* remove jenkins ci by mvpatel2000 in https://github.com/mosaicml/composer/pull/1954
* add support for enc-dec batches without decoder_input_ids by dakinggg in https://github.com/mosaicml/composer/pull/1950
* Refactor EMA to improve memory efficiency by coryMosaicML in https://github.com/mosaicml/composer/pull/1941
* Add warning for untrusted checkpoints by mvpatel2000 in https://github.com/mosaicml/composer/pull/1959
* permit opt tokenizer by bmosaicml in https://github.com/mosaicml/composer/pull/1958
* GHA Docker build flow for PR's by bandish-shah in https://github.com/mosaicml/composer/pull/1883
* Update download badge link to pepy by karan6181 in https://github.com/mosaicml/composer/pull/1966
* Update python version in setup.py and fixed pypi download badge by karan6181 in https://github.com/mosaicml/composer/pull/1969
* allow eval metrics to be passed in to HuggingFaceModel directly by dakinggg in https://github.com/mosaicml/composer/pull/1971
* Make wandb checkpoint logging compatible with wandb model registry by growlix in https://github.com/mosaicml/composer/pull/1973
* Add support for FP8 on H100 using NVidia's TransformerEngine by dskhudia in https://github.com/mosaicml/composer/pull/1965
* Util for writing HuggingFace save_pretrained from a composer checkpoint by dakinggg in https://github.com/mosaicml/composer/pull/1974
* Enable sharded checkpoint save and load (support local, sharded, and full state dicts for FSDP) by eracah in https://github.com/mosaicml/composer/pull/1902
* Bump custom-inherit from 2.4.0 to 2.4.1 by dependabot in https://github.com/mosaicml/composer/pull/1981
* Bump gitpython from 3.1.30 to 3.1.31 by dependabot in https://github.com/mosaicml/composer/pull/1982
* Fix ICL race conditions by dakinggg in https://github.com/mosaicml/composer/pull/1978
* add map location to huggingface utils by dakinggg in https://github.com/mosaicml/composer/pull/1980
* fix log epoch by mvpatel2000 in https://github.com/mosaicml/composer/pull/1986
* GHA release workflow, refactor PR and Daily workflows by bandish-shah in https://github.com/mosaicml/composer/pull/1968
* Remove python-version input from Daily CPU tests by bandish-shah in https://github.com/mosaicml/composer/pull/1989
* Add some logic to pass the correct github ref to mcp script by bandish-shah in https://github.com/mosaicml/composer/pull/1990
* Fix typo in docstring for eval with missing space by mvpatel2000 in https://github.com/mosaicml/composer/pull/1992
* Fix failing sharded_checkpoint tests that fail when pytorch 1.13 is not installed by eracah in https://github.com/mosaicml/composer/pull/1988
* Add merge_group event trigger to GHA daily workflow by bandish-shah in https://github.com/mosaicml/composer/pull/1996
* Runtime estimator by mvpatel2000 in https://github.com/mosaicml/composer/pull/1991
* Reset scaler state by mvpatel2000 in https://github.com/mosaicml/composer/pull/1999
* Speed monitor refactor by mvpatel2000 in https://github.com/mosaicml/composer/pull/1987
* Test hf fsdp by dakinggg in https://github.com/mosaicml/composer/pull/1972
* Bug/sync optimization logger across ranks by bmosaicml in https://github.com/mosaicml/composer/pull/1970
* Fix optimizer monitor test gating with FSDP by mvpatel2000 in https://github.com/mosaicml/composer/pull/2000
* Low precision groupnorm by mvpatel2000 in https://github.com/mosaicml/composer/pull/1976
* Bump coverage[toml] from 7.1.0 to 7.2.1 by dependabot in https://github.com/mosaicml/composer/pull/2008
* Update docs to include runtime estimator by mvpatel2000 in https://github.com/mosaicml/composer/pull/2009
* Tag surgery algorithms LPLN and LPGN by mvpatel2000 in https://github.com/mosaicml/composer/pull/2011
* Update SpeedMonitor short-description for docs table by mvpatel2000 in https://github.com/mosaicml/composer/pull/2010
* Update Low Precision LayerNorm arguments by nik-mosaic in https://github.com/mosaicml/composer/pull/1994
* Medical Segmentation Example Typo by mvpatel2000 in https://github.com/mosaicml/composer/pull/2014
* Update wallclock logging to default hours by mvpatel2000 in https://github.com/mosaicml/composer/pull/2005
* Add HealthChecker Callback by hanlint in https://github.com/mosaicml/composer/pull/2002
* Allow FX graph mode post-training dynamic quantisation of BlurConv2d operations. by BrettRyland in https://github.com/mosaicml/composer/pull/1995
* Add multi-gpu testing to test_algorithm_resumption by eracah in https://github.com/mosaicml/composer/pull/2016
* Add backwards compatible checkpoint loading for EMA by coryMosaicML in https://github.com/mosaicml/composer/pull/2012
* fsdp with custom process groups by vchiley in https://github.com/mosaicml/composer/pull/2006
* Patch Speed Monitor MFU by mvpatel2000 in https://github.com/mosaicml/composer/pull/2013
* Remove runtime estimator state dict by mvpatel2000 in https://github.com/mosaicml/composer/pull/2015
* Update Docker images to fix resolve vulnerability scan issues by bandish-shah in https://github.com/mosaicml/composer/pull/2007
* Change Deprecation Warnings to Warnings for specifying ProgressBarLogger and ConsoleLogger to loggers by eracah in https://github.com/mosaicml/composer/pull/1846
* Fix eval duplicate logging issue by mvpatel2000 in https://github.com/mosaicml/composer/pull/2018
* Add workflow_dispatch trigger to pr-docker workflow by bandish-shah in https://github.com/mosaicml/composer/pull/2019
* Bump streaming version to less than 0.4.0 by karan6181 in https://github.com/mosaicml/composer/pull/2020
* Upgrade ipython installed in Docker images by bandish-shah in https://github.com/mosaicml/composer/pull/2021
* Upgrade torchmetrics by nik-mosaic in https://github.com/mosaicml/composer/pull/2017
* Complete upgrade of torchmetrics accuracy by nik-mosaic in https://github.com/mosaicml/composer/pull/2025
* Bump version to v0.13.0 by bandish-shah in https://github.com/mosaicml/composer/pull/2024

New Contributors
* BrettRyland made their first contribution in https://github.com/mosaicml/composer/pull/1995

**Full Changelog**: https://github.com/mosaicml/composer/compare/v0.12.1...v0.13.0

0.12.1

Not secure
New Features

1. **📚 In-Context Learning (1876)**

With Composer and MosaicML Cloud you can now evaluate LLMs on in-context learning tasks (LAMBADA, HellaSwag, PIQA, and more) hundreds of times faster than other evaluation harnesses. Please see our "[Blazingly Fast LLM Evaluation for In-Context Learning](https://www.mosaicml.com/blog/llm-evaluation-for-icl)" blog post for more details!

1. **💾 Added support for Coreweave [Object Storage](https://docs.coreweave.com/storage/object-storage) (#1915)**

Coreweave object store is compatible with `boto3`. Uploading objects to Coreweave object store is almost exactly like writing to using S3, except an `endpoint_url` must be set via the `S3_ENDPOINT_URL`environment variable. For example:

python
import os
os.environ['S3_ENDPOINT_URL'] = 'https://object.las1.coreweave.com'

from composer.trainer import Trainer

Save checkpoints every epoch to s3://my_bucket/checkpoints
trainer = Trainer(
model=model,
train_dataloader=train_dataloader,
max_duration='10ep',
save_folder='s3://my_bucket/checkpoints',
save_interval='1ep',
save_overwrite=True,
save_filename='ep{epoch}.pt',
save_num_checkpoints_to_keep=0, delete all checkpoints locally
)

trainer.fit()


Please see our [checkpointing documentation](https://docs.mosaicml.com/en/stable/trainer/checkpointing.html#uploading-checkpoints-to-object-store) for more details.

1. **🪵 Automatic logging of Trainer hparams (1855)**

Hyperparameter arguments passed to the `Trainer` are now automatically logged. Simply set the `Trainer` argument `auto_log_hparams=True`.

Bug Fixes

* Update Docker images to use ‘posix_prefix’ paths (1854)
* Disable new notebook in CI (1875)
* [Fix] Enable logging of metrics from Callbacks to ConsoleLogging (1884)
* Ensure loggers run init event before callbacks in Engine (1890)
* Raise an error in FSDP meta tensor initialization if there's no initialization functions, fix associated flaky FSDP test (1905)
* Add primitive list support (1906)
* Add logic for shifting labels before computing metrics (1913)
* Fixes mis specified dependency (1919)
* pin setuptools in build requirements (1926)
* Pin pip<23 in Docker images (1936)
* Fix bug in trainer.eval and add test cases for test_console_logger (1937)

What's Changed
* Rename GradMonitor -> OptimizerMonitor; add functionality to log optimizer-specific metrics to assist loss spike investigation by bmosaicml in https://github.com/mosaicml/composer/pull/1743
* Add GCS uri support for loading and saving checkpoints by eracah in https://github.com/mosaicml/composer/pull/1833
* HF factory function tests by dakinggg in https://github.com/mosaicml/composer/pull/1832
* Fix doc issue, Trainer hparam log_to_console defaults to False by eracah in https://github.com/mosaicml/composer/pull/1840
* Removed YAHP references from Docs by bandish-shah in https://github.com/mosaicml/composer/pull/1841
* Typo by nguyenhoan1988 in https://github.com/mosaicml/composer/pull/1843
* Fix source code links in docs by bandish-shah in https://github.com/mosaicml/composer/pull/1844
* add importorskip by dakinggg in https://github.com/mosaicml/composer/pull/1847
* Update Docker images to use ‘posix_prefix’ paths by mvpatel2000 in https://github.com/mosaicml/composer/pull/1854
* Fix typo by standardAI in https://github.com/mosaicml/composer/pull/1849
* ConsoleLogger: log first batch and first epoch when using console_log_interval by eracah in https://github.com/mosaicml/composer/pull/1860
* Simpler auto log hparams by eracah in https://github.com/mosaicml/composer/pull/1855
* Fix typos by cclauss in https://github.com/mosaicml/composer/pull/1850
* Bump sphinxext-opengraph from 0.7.3 to 0.7.4 by dependabot in https://github.com/mosaicml/composer/pull/1851
* Bump coverage[toml] from 6.5.0 to 7.0.1 by dependabot in https://github.com/mosaicml/composer/pull/1853
* Bump traitlets from 5.7.0 to 5.8.0 by dependabot in https://github.com/mosaicml/composer/pull/1852
* Bump ipython from 7.32.0 to 8.8.0 by dependabot in https://github.com/mosaicml/composer/pull/1865
* Update monai requirement from <0.10,>=0.9.1 to >=0.9.1,<1.2 by dependabot in https://github.com/mosaicml/composer/pull/1869
* Bump sphinxcontrib-katex from 0.9.3 to 0.9.4 by dependabot in https://github.com/mosaicml/composer/pull/1868
* Bump coverage[toml] from 7.0.1 to 7.0.4 by dependabot in https://github.com/mosaicml/composer/pull/1867
* Upgrade docker images to `torch==1.13.1` by abhi-mosaic in https://github.com/mosaicml/composer/pull/1863
* add more useful info to state by dakinggg in https://github.com/mosaicml/composer/pull/1848
* Feature/lambada evaluator by bmosaicml in https://github.com/mosaicml/composer/pull/1845
* multi-node distributed training, submitit & composer integration demo by YilunKuang in https://github.com/mosaicml/composer/pull/1753
* Daily tests by mvpatel2000 in https://github.com/mosaicml/composer/pull/1870
* Disable new notebook in CI by mvpatel2000 in https://github.com/mosaicml/composer/pull/1875
* Update deepspeed by mvpatel2000 in https://github.com/mosaicml/composer/pull/1864
* fix fail fast in daily by mvpatel2000 in https://github.com/mosaicml/composer/pull/1880
* Fix getting started docs by mvpatel2000 in https://github.com/mosaicml/composer/pull/1878
* Speed up test_lm_task_evaluation by mvpatel2000 in https://github.com/mosaicml/composer/pull/1879
* Fix unprotected import by mvpatel2000 in https://github.com/mosaicml/composer/pull/1874
* add ignore_modules to fsdp by vchiley in https://github.com/mosaicml/composer/pull/1877
* Change vision image by mvpatel2000 in https://github.com/mosaicml/composer/pull/1881
* Fix eval_forward in the ComposerModel ABC by eracah in https://github.com/mosaicml/composer/pull/1871
* Fix fsdp weight tying by bcui19 in https://github.com/mosaicml/composer/pull/1856
* Bump pytest from 7.2.0 to 7.2.1 by dependabot in https://github.com/mosaicml/composer/pull/1886
* Bump ipykernel from 6.19.2 to 6.20.1 by dependabot in https://github.com/mosaicml/composer/pull/1887
* Bump gitpython from 3.1.28 to 3.1.30 by dependabot in https://github.com/mosaicml/composer/pull/1888
* Update Vision Image in Pytest by mvpatel2000 in https://github.com/mosaicml/composer/pull/1882
* Streaming data tests by dakinggg in https://github.com/mosaicml/composer/pull/1842
* Add NLP Algorithms Tests by nik-mosaic in https://github.com/mosaicml/composer/pull/1839
* rename HF notebook by dakinggg in https://github.com/mosaicml/composer/pull/1873
* Ensure loggers run init event before callbacks in Engine by eracah in https://github.com/mosaicml/composer/pull/1890
* [Fix] Enable logging of metrics from Callbacks to ConsoleLogging by eracah in https://github.com/mosaicml/composer/pull/1884
* Updating how we load metrics in a state_dict so we don't add extra memory overhead by bcui19 in https://github.com/mosaicml/composer/pull/1892
* Getting daily tests passing by dakinggg in https://github.com/mosaicml/composer/pull/1893
* Bump nbsphinx from 0.8.10 to 0.8.12 by dependabot in https://github.com/mosaicml/composer/pull/1897
* Fix docker image by mvpatel2000 in https://github.com/mosaicml/composer/pull/1894
* Add primitive list support by mvpatel2000 in https://github.com/mosaicml/composer/pull/1906
* Raise an error in FSDP `meta` tensor initialization if there's no initialization functions, fix associated flaky FSDP test by bcui19 in https://github.com/mosaicml/composer/pull/1905
* Gpu Test by mvpatel2000 in https://github.com/mosaicml/composer/pull/1907
* Update docker with FFCV fix by mvpatel2000 in https://github.com/mosaicml/composer/pull/1908
* Restore GPU tests by mvpatel2000 in https://github.com/mosaicml/composer/pull/1909
* Update workflow names by mvpatel2000 in https://github.com/mosaicml/composer/pull/1910
* Enable daily gpu tests by mvpatel2000 in https://github.com/mosaicml/composer/pull/1911
* Tweak daily GPU tests by mvpatel2000 in https://github.com/mosaicml/composer/pull/1912
* Daily GPU Tests -- Change to Git Commit by mvpatel2000 in https://github.com/mosaicml/composer/pull/1914
* Add logic for shifting labels before computing metrics by alextrott16 in https://github.com/mosaicml/composer/pull/1913
* Add coreweave object store support. by eracah in https://github.com/mosaicml/composer/pull/1915
* Fixes mis specified dependency by dakinggg in https://github.com/mosaicml/composer/pull/1919
* Bump coverage[toml] from 7.0.4 to 7.1.0 by dependabot in https://github.com/mosaicml/composer/pull/1923
* Update importlib-metadata requirement from <6,>=5.0.0 to >=5.0.0,<7 by dependabot in https://github.com/mosaicml/composer/pull/1921
* pin setuptools in build requirements by dakinggg in https://github.com/mosaicml/composer/pull/1926
* Remove synthetic testing infrastructure for HF/NLP by dakinggg in https://github.com/mosaicml/composer/pull/1895
* Add upgrade flags to pip installs by dakinggg in https://github.com/mosaicml/composer/pull/1916
* Temporarily pin pip to <23 by dakinggg in https://github.com/mosaicml/composer/pull/1930
* add link protection by mvpatel2000 in https://github.com/mosaicml/composer/pull/1927
* Cleaning up error checking for FSDP sharding strategies with fp32 precision by bcui19 in https://github.com/mosaicml/composer/pull/1925
* Fix mcp script to avoid follow by mvpatel2000 in https://github.com/mosaicml/composer/pull/1932
* Emit Eval progress in console logging by eracah in https://github.com/mosaicml/composer/pull/1917
* Remove Fused LayerNorm deprecation by nik-mosaic in https://github.com/mosaicml/composer/pull/1931
* Add EFA Support for Multinode in AWS by mvpatel2000 in https://github.com/mosaicml/composer/pull/1891
* remove jenkins gpu tests by mvpatel2000 in https://github.com/mosaicml/composer/pull/1933
* Typo due to stale MCLI docs by mvpatel2000 in https://github.com/mosaicml/composer/pull/1934
* Pin pip<23 in Docker images by bandish-shah in https://github.com/mosaicml/composer/pull/1936
* Fix bug in trainer.eval and add test cases for test_console_logger by eracah in https://github.com/mosaicml/composer/pull/1937
* Add few shot and multiple choice to ICL evaluation by bmosaicml in https://github.com/mosaicml/composer/pull/1876
* Disable test_streaming_datasets in pytest-daily by bandish-shah in https://github.com/mosaicml/composer/pull/1939

New Contributors
* bmosaicml made their first contribution in https://github.com/mosaicml/composer/pull/1743
* nguyenhoan1988 made their first contribution in https://github.com/mosaicml/composer/pull/1843
* standardAI made their first contribution in https://github.com/mosaicml/composer/pull/1849
* cclauss made their first contribution in https://github.com/mosaicml/composer/pull/1850
* YilunKuang made their first contribution in https://github.com/mosaicml/composer/pull/1753
* vchiley made their first contribution in https://github.com/mosaicml/composer/pull/1877

**Full Changelog**: https://github.com/mosaicml/composer/compare/v0.12.0...v0.12.1

Page 8 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.