Composer

Latest version: v0.27.0

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

Scan your dependencies

Page 1 of 11

2.3.0

Composer now supports the recently-released PyTorch [version 2.3.0](https://dev-discuss.pytorch.org/t/pytorch-2-3-0-general-availability/2033)! Please raise any issues with us so we can address them.

Bug Fixes
* Fixing checks for device microbatch size for sequence parallelism in [3200](https://github.com/mosaicml/composer/pull/3200)
* Fixing token logging in [3206](https://github.com/mosaicml/composer/pull/3206)
* Search for run name in MLFlowLogger in [3215](https://github.com/mosaicml/composer/pull/3215)
* Fix FQN names with activation checkpointing in [3210](https://github.com/mosaicml/composer/pull/3210)
* Strict weight matching for checkpoint loading in [3219](https://github.com/mosaicml/composer/pull/3219)

What's Changed
* Bump transformers by dakinggg in https://github.com/mosaicml/composer/pull/3197
* Add deprecation warnings for ICL datasets/helper functions/metrics by bmosaicml in https://github.com/mosaicml/composer/pull/3125
* Bump traitlets from 5.14.2 to 5.14.3 by dependabot in https://github.com/mosaicml/composer/pull/3204
* Raise LR schedule warnings only when necessary by snarayan21 in https://github.com/mosaicml/composer/pull/3207
* Add torch 2.3 support by mvpatel2000 in https://github.com/mosaicml/composer/pull/3209
* Add torch 2.3 CI/CD by mvpatel2000 in https://github.com/mosaicml/composer/pull/3211
* Fix daily test images by mvpatel2000 in https://github.com/mosaicml/composer/pull/3212
* Try FAv2 2.5.7 from source by mvpatel2000 in https://github.com/mosaicml/composer/pull/3213
* Update tests by mvpatel2000 in https://github.com/mosaicml/composer/pull/3217
* Fix torch 2.3 GPU tests by mvpatel2000 in https://github.com/mosaicml/composer/pull/3218
* Use flash-attn 2.5.8 with no build isolation in docker images by snarayan21 in https://github.com/mosaicml/composer/pull/3224
* Add a torch.cuda.empty_cache() in utils.save_checkpoint by bfontain in https://github.com/mosaicml/composer/pull/3216
* Require 2 steps for GS object store by mvpatel2000 in https://github.com/mosaicml/composer/pull/3228
* Add `rename_metrics` to Mlflow logger by hanlint in https://github.com/mosaicml/composer/pull/3225
* Fix daily tests by mvpatel2000 in https://github.com/mosaicml/composer/pull/3229
* Change precision for daily tests by mvpatel2000 in https://github.com/mosaicml/composer/pull/3231
* Create new Mlflow run by default and introduce `run_group` by chenmoneygithub in https://github.com/mosaicml/composer/pull/3208
* Fix daily test pt 4 by mvpatel2000 in https://github.com/mosaicml/composer/pull/3233
* Deprecate and bump version to 0.22 by mvpatel2000 in https://github.com/mosaicml/composer/pull/3230
* Fix daily tests v5 by mvpatel2000 in https://github.com/mosaicml/composer/pull/3234
* Fix daily v6 by mvpatel2000 in https://github.com/mosaicml/composer/pull/3235
* fix daily tests v7 by mvpatel2000 in https://github.com/mosaicml/composer/pull/3236
* Raise the daily test timeout by dakinggg in https://github.com/mosaicml/composer/pull/3241
* Accelerate GPU tests by mvpatel2000 in https://github.com/mosaicml/composer/pull/3237
* Make sharded checkpoint loading backwards-compatible by snarayan21 in https://github.com/mosaicml/composer/pull/3240


**Full Changelog**: https://github.com/mosaicml/composer/compare/v0.21.3...v0.22.0

1.0

0.27.0

What's New
1. Torch 2.5.1 Compatibility (https://github.com/mosaicml/composer/pull/3701)
We've added support for torch 2.5.1, including checkpointing bug fixes from PyTorch.

2. Add batch/microbatch transforms (https://github.com/mosaicml/composer/pull/3703)
Sped up device transformations by doing batch transform on CPU and microbatch transforms on GPU

What's Changed
* Metrics dedup for MLflow logger by chenmoneygithub in https://github.com/mosaicml/composer/pull/3678
* Bump databricks-sdk from 0.33.0 to 0.36.0 by dependabot in https://github.com/mosaicml/composer/pull/3686
* Update pillow requirement from <11,>=10.3.0 to >=10.3.0,<12 by dependabot in https://github.com/mosaicml/composer/pull/3684
* Lower min torchmetrics version by mvpatel2000 in https://github.com/mosaicml/composer/pull/3691
* Private link error handling by nancyhung in https://github.com/mosaicml/composer/pull/3689
* Update checkpoint tests to use new version 0.26.0 by irenedea in https://github.com/mosaicml/composer/pull/3683
* Bump coverage[toml] from 7.6.3 to 7.6.4 by dependabot in https://github.com/mosaicml/composer/pull/3694
* Pin checkpoint state dict flattening patch by b-chu in https://github.com/mosaicml/composer/pull/3700
* Torch bump to 2.5.1 by mvpatel2000 in https://github.com/mosaicml/composer/pull/3701
* Fix typo in trainer doc by XiaohanZhangCMU in https://github.com/mosaicml/composer/pull/3702
* Update packaging requirement from <24.2,>=21.3.0 to >=21.3.0,<24.3 by dependabot in https://github.com/mosaicml/composer/pull/3707
* Update torchmetrics requirement from <1.4.1,>=1.0 to >=1.0,<1.5.3 by dependabot in https://github.com/mosaicml/composer/pull/3706
* Add batch/microbatch transforms by mvpatel2000 in https://github.com/mosaicml/composer/pull/3703
* Bump version to 0.28.0.dev0 by j316chuck in https://github.com/mosaicml/composer/pull/3709
* Add torch 2.5.1 composer tests by j316chuck in https://github.com/mosaicml/composer/pull/3710


**Full Changelog**: https://github.com/mosaicml/composer/compare/v0.26.1...v0.27.0

0.26.1

What's Changed
* Private link error handling by nancyhung in https://github.com/mosaicml/composer/pull/3689

**Full Changelog**: https://github.com/mosaicml/composer/compare/v0.26.0...v0.26.1

0.26.0

What's New
1. Torch 2.5.0 Compatibility (https://github.com/mosaicml/composer/pull/3609)
We've added support for torch 2.5.0, including necessary patches to Torch.

Deprecations and Breaking Changes
1. FSDP Configuration Changes(3681)
We no longer support passing `fsdp_config` and `fsdp_auto_wrap` directly to `Trainer`.

If you'd like to specify an fsdp config and configure fsdp auto wrapping, you should use `parallelism_config`.


trainer = Trainer(
parallelism_config = {
'fsdp': {
'auto_wrap': True
...
}
}
)

2. Removal of Pytorch Legacy Sharded Checkpoint Support (3631)
PyTorch briefly used a different sharded checkpoint format than the current one, which was quickly deprecated by PyTorch. We have removed support for this format. We initially removed support for saving in this format in https://github.com/mosaicml/composer/pull/2262, and the original feature was added in https://github.com/mosaicml/composer/pull/1902. Please reach out if you have concerns or need help converting your checkpoints to the new format.


What's Changed
* Add backward compatibility checkpoint tests for v0.25.0 by dakinggg in https://github.com/mosaicml/composer/pull/3635
* Don't use TP when `tensor_parallel_degree` is 1 by eitanturok in https://github.com/mosaicml/composer/pull/3636
* Update huggingface-hub requirement from <0.25,>=0.21.2 to >=0.21.2,<0.26 by dependabot in https://github.com/mosaicml/composer/pull/3637
* Update transformers requirement from !=4.34.0,<4.45,>=4.11 to >=4.11,!=4.34.0,<4.46 by dependabot in https://github.com/mosaicml/composer/pull/3638
* Bump databricks-sdk from 0.32.0 to 0.33.0 by dependabot in https://github.com/mosaicml/composer/pull/3639
* Remove Legacy Checkpointing by mvpatel2000 in https://github.com/mosaicml/composer/pull/3631
* Surface UC permission error by b-chu in https://github.com/mosaicml/composer/pull/3642
* Tensor Parallelism Tests by eitanturok in https://github.com/mosaicml/composer/pull/3620
* Switch to log.info for deterministic mode by mvpatel2000 in https://github.com/mosaicml/composer/pull/3643
* Update pre-commit requirement from <4,>=3.4.0 to >=3.4.0,<5 by dependabot in https://github.com/mosaicml/composer/pull/3645
* Update peft requirement from <0.13,>=0.10.0 to >=0.10.0,<0.14 by dependabot in https://github.com/mosaicml/composer/pull/3646
* Create callback to load checkpoint by irenedea in https://github.com/mosaicml/composer/pull/3641
* Bump jupyter from 1.0.0 to 1.1.1 by dependabot in https://github.com/mosaicml/composer/pull/3595
* Fix DB SDK Import by mvpatel2000 in https://github.com/mosaicml/composer/pull/3648
* Bump coverage[toml] from 7.6.0 to 7.6.3 by dependabot in https://github.com/mosaicml/composer/pull/3651
* Bump pypandoc from 1.13 to 1.14 by dependabot in https://github.com/mosaicml/composer/pull/3652
* Replace list with Sequence by KuuCi in https://github.com/mosaicml/composer/pull/3654
* Add better error handling for non-rank 0 during Monolithic Checkpoint Loading by j316chuck in https://github.com/mosaicml/composer/pull/3647
* Raising a better warning if train or eval did not process any data. by ethantang-db in https://github.com/mosaicml/composer/pull/3656
* Fix Logo by XiaohanZhangCMU in https://github.com/mosaicml/composer/pull/3659
* Update huggingface-hub requirement from <0.26,>=0.21.2 to >=0.21.2,<0.27 by dependabot in https://github.com/mosaicml/composer/pull/3668
* Bump cryptography from 42.0.8 to 43.0.3 by dependabot in https://github.com/mosaicml/composer/pull/3667
* Bump pytorch to 2.5.0 by b-chu in https://github.com/mosaicml/composer/pull/3663
* Don't overwrite sys.excepthook in mlflow logger by dakinggg in https://github.com/mosaicml/composer/pull/3675
* Fix pull request target by b-chu in https://github.com/mosaicml/composer/pull/3676
* Use a temp path to save local checkpoints for remote save path by irenedea in https://github.com/mosaicml/composer/pull/3673
* Loss gen tokens by dakinggg in https://github.com/mosaicml/composer/pull/3677
* Refactor `maybe_create_object_store_from_uri` by irenedea in https://github.com/mosaicml/composer/pull/3679
* Don't error if some batch slice has no loss generating tokens by dakinggg in https://github.com/mosaicml/composer/pull/3682
* Bump version to 0.27.0.dev0 by irenedea in https://github.com/mosaicml/composer/pull/3681

New Contributors
* ethantang-db made their first contribution in https://github.com/mosaicml/composer/pull/3656

**Full Changelog**: https://github.com/mosaicml/composer/compare/v0.25.0...v0.26.0

0.25.0

What's New
1. Torch 2.4.1 Compatibility (3609)
We've added support for torch 2.4.1, including necessary patches to Torch.

Deprecations and breaking changes
1. Microbatch device movement (3567)
Instead of moving the entire batch to device at once, we now move each microbatch to device. This saves memory for large inputs, e.g. multimodal data, when training with many microbatches.

This change may affect certain callbacks which run operations on the batch which require it to be moved to an accelerator ahead of time, such as the two changed in this PR. There shouldn't be too many of these callbacks, so we anticipate this change will be relatively safe.

2. DeepSpeed deprecation version (3634)
We have update the Composer version that we will remove support for DeepSpeed to 0.27.0. Please reach out on GitHub if you have any concerns about this.

3. PyTorch legacy sharded checkpoint format
PyTorch briefly used a different sharded checkpoint format than the current one, which was quickly deprecated by PyTorch. We have continued to support loading legacy format checkpoints for a while, but we will likely be removing support for this format entirely in an upcoming release. We initially removed support for saving in this format in https://github.com/mosaicml/composer/pull/2262, and the original feature was added in https://github.com/mosaicml/composer/pull/1902. Please reach out if you have concerns or need help converting your checkpoints to the new format.

What's Changed
* Set dev version back to 0.25.0.dev0 by snarayan21 in https://github.com/mosaicml/composer/pull/3582
* Microbatch Device Movement by mvpatel2000 in https://github.com/mosaicml/composer/pull/3567
* Init Dist Default None by mvpatel2000 in https://github.com/mosaicml/composer/pull/3585
* Explicit None Check in get_device by mvpatel2000 in https://github.com/mosaicml/composer/pull/3586
* Update protobuf requirement from <5.28 to <5.29 by dependabot in https://github.com/mosaicml/composer/pull/3591
* Bump databricks-sdk from 0.30.0 to 0.31.1 by dependabot in https://github.com/mosaicml/composer/pull/3592
* Update ci-testing to 0.2.2 by dakinggg in https://github.com/mosaicml/composer/pull/3590
* Bump Mellanox Tools by mvpatel2000 in https://github.com/mosaicml/composer/pull/3597
* Roll back ci-testing for daillies by mvpatel2000 in https://github.com/mosaicml/composer/pull/3598
* Revert driver changes by mvpatel2000 in https://github.com/mosaicml/composer/pull/3599
* Remove step in log_image for MLFlow by mvpatel2000 in https://github.com/mosaicml/composer/pull/3601
* Reduce system metrics logging frequency by chenmoneygithub in https://github.com/mosaicml/composer/pull/3604
* Bump databricks-sdk from 0.31.1 to 0.32.0 by dependabot in https://github.com/mosaicml/composer/pull/3608
* torch2.4.1 by bigning in https://github.com/mosaicml/composer/pull/3609
* Test with torch2.4.1 image by bigning in https://github.com/mosaicml/composer/pull/3610
* fix 2.4.1 test by bigning in https://github.com/mosaicml/composer/pull/3612
* Remove tensor option for _global_exception_occured by irenedea in https://github.com/mosaicml/composer/pull/3611
* Update error message for overwrite to be more user friendly by mvpatel2000 in https://github.com/mosaicml/composer/pull/3619
* Update wandb requirement from <0.18,>=0.13.2 to >=0.13.2,<0.19 by dependabot in https://github.com/mosaicml/composer/pull/3615
* Fix RNG key checking by dakinggg in https://github.com/mosaicml/composer/pull/3623
* Update datasets requirement from <3,>=2.4 to >=2.4,<4 by dependabot in https://github.com/mosaicml/composer/pull/3626
* Disable exceptions for MosaicML Logger by mvpatel2000 in https://github.com/mosaicml/composer/pull/3627
* Fix CPU dailies by mvpatel2000 in https://github.com/mosaicml/composer/pull/3628
* fix 2.4.1ckpt by bigning in https://github.com/mosaicml/composer/pull/3629
* More checkpoint debug logs by mvpatel2000 in https://github.com/mosaicml/composer/pull/3632
* Lower DeepSpeed deprecation version by mvpatel2000 in https://github.com/mosaicml/composer/pull/3634
* Bump version 25 by dakinggg in https://github.com/mosaicml/composer/pull/3633


**Full Changelog**: https://github.com/mosaicml/composer/compare/v0.24.1...v0.25.0

Page 1 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.