Fastai

Latest version: v2.7.18

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

Scan your dependencies

Page 7 of 29

2.1.9

New Features

- Refactor MixUp and CutMix into MixHandler ([3037](https://github.com/fastai/fastai/pull/3037)), thanks to [muellerzr](https://github.com/muellerzr)
- Refactors into a general MixHandler class, with MixUp and CutMix simply implementing a `before_batch` to perform the data augmentation. See `fastai.callback.mixup`

Bugs Squashed

- Gradient Accumulation + Mixed Precision shows artificially high training loss ([3048](https://github.com/fastai/fastai/issues/3048))

2.1.8

New Features

Bugs Squashed

- Update for fastcore `negate_func`->`not_`
- LR too high for gradient accumulation ([3040](https://github.com/fastai/fastai/pull/3040)), thanks to [marii-moe](https://github.com/marii-moe)
- Torchscript transforms incompatibility with nn.Sequential ([2920](https://github.com/fastai/fastai/issues/2920))

2.1.7

New Features

- Pytorch 1.7 subclassing support ([2769](https://github.com/fastai/fastai/issues/2769))

Bugs Squashed

- unsupported operand type(s) for +=: 'TensorCategory' and 'TensorText' when using AWD_LSTM for text classification ([3027](https://github.com/fastai/fastai/issues/3027))
- UserWarning when using SaveModelCallback() on after_epoch ([3025](https://github.com/fastai/fastai/issues/3025))
- Segmentation error: no implementation found for 'torch.nn.functional.cross_entropy' on types that implement torch_function ([3022](https://github.com/fastai/fastai/issues/3022))
- `TextDataLoaders.from_df()` returns `TypeError: 'float' object is not iterable` ([2978](https://github.com/fastai/fastai/issues/2978))
- Internal assert error in awd_qrnn ([2967](https://github.com/fastai/fastai/issues/2967))

2.1.6

New Features

- Option to preserve filenames in `download_images` ([2983](https://github.com/fastai/fastai/pull/2983)), thanks to [mess-lelouch](https://github.com/mess-lelouch)
- Deprecate `config` in `create_cnn` and instead pass kwargs directly ([2966](https://github.com/fastai/fastai/pull/2966)), thanks to [borisdayma](https://github.com/borisdayma)

Bugs Squashed

- Progress and Recorder callbacks serialize their data, resulting in large Learner export file sizes ([2981](https://github.com/fastai/fastai/issues/2981))
- `TextDataLoaders.from_df()` returns `TypeError: 'float' object is not iterable` ([2978](https://github.com/fastai/fastai/issues/2978))
- "only one element tensors can be converted to Python scalars" exception in Siamese Tutorial ([2973](https://github.com/fastai/fastai/issues/2973))
- Learn.load and LRFinder not functioning properly for the optimizer states ([2892](https://github.com/fastai/fastai/issues/2892))

2.1.5

Breaking Changes

- remove `log_args` ([2954](https://github.com/fastai/fastai/issues/2954))

New Features

- Improve performance of `RandomSplitter` (h/t muellerzr) ([2957](https://github.com/fastai/fastai/issues/2957))

Bugs Squashed

- Exporting TabularLearner via learn.export() leads to huge file size ([2945](https://github.com/fastai/fastai/issues/2945))
- `TensorPoint` object has no attribute `img_size` ([2950](https://github.com/fastai/fastai/issues/2950))

2.1.4

Breaking Changes

- moved `has_children` from `nn.Module` to free function ([2931](https://github.com/fastai/fastai/issues/2931))

New Features

- Support persistent workers ([2768](https://github.com/fastai/fastai/issues/2768))

Bugs Squashed

- `unet_learner` segmentation fails ([2939](https://github.com/fastai/fastai/issues/2939))
- In "Transfer learning in text" tutorial, the "dls.show_batch()" show wrong outputs ([2910](https://github.com/fastai/fastai/issues/2910))
- `Learn.load` and `LRFinder` not functioning properly for the optimizer states ([2892](https://github.com/fastai/fastai/issues/2892))
- Documentation for `Show_Images` broken ([2876](https://github.com/fastai/fastai/issues/2876))
- URL link for documentation for `torch_core` library from the `doc()` method gives incorrect url ([2872](https://github.com/fastai/fastai/issues/2872))

Page 7 of 29

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.