Skip to content

Commit bcc24ef

Browse files
committed
release: 0.3.3
Bump version 0.3.0 -> 0.3.3 (0.3.1/0.3.2 were published from PyPI without a matching repo bump; 0.3.3 is the next free version). Correct requires-python to >=3.10 (codebase uses dataclass(slots=True)) and add the 0.3.3 changelog entry covering the PruneCallback dict fix (#39) and faithful group-sensitivity (#40).
1 parent caddeaf commit bcc24ef

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
<!-- do not remove -->
44

5+
## 0.3.3
6+
7+
### Bug Fixes
8+
- `PruneCallback` now accepts a per-layer `dict` for `pruning_ratio` (matching `Pruner`); previously raised `TypeError: '>' not supported between instances of 'dict' and 'int'` (#39)
9+
- Sensitivity analysis pruning mode now measures each layer by applying its exact per-layer target `{name: level}` — the same operation `Pruner`/`PruneCallback` perform — so the reported Δ faithfully predicts a real prune. Fixes residual/skip-coupled layers (ResNet stem conv, block `conv2`, `downsample`) being falsely ranked "Most Robust" with Δ=0 because they could not be pruned in isolation (#40)
10+
11+
### Enhancements
12+
- Sensitivity analysis: coupled layers now share a `group_id` (and Δ); layers that cannot be pruned independently (output `Linear`, attention) are marked `prunable=False` and surfaced separately rather than ranked; `analyze(layer_types=...)` restricts the analysis to chosen module types (accepts a single type or a tuple); internal `Pruner` notices are silenced during analysis
13+
14+
### Metadata
15+
- Corrected `requires-python` to `>=3.10` (the codebase uses `dataclass(slots=True)`)
16+
517
## 0.3.0
618

719
### New Features

fasterai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.3.0"
1+
__version__ = "0.3.3"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "fasterai"
77
dynamic = ["version"]
88
description = "A library to make neural networks lighter and faster with fastai"
99
readme = "README.md"
10-
requires-python = ">=3.6"
10+
requires-python = ">=3.10"
1111
license = "Apache-2.0"
1212
authors = [{name = "Nathan Hubens", email = "nathan.hubens@gmail.com"}]
1313
keywords = ['pruning', 'sparsification', 'knowledge-distillation', 'quantization', 'compression', 'deep-learning']

0 commit comments

Comments
 (0)