v0.31.4
📦 huggingface-hubView on GitHub →
✨ 2 features🐛 1 fixes🔧 3 symbols
Summary
This release introduces new `strict` decorators for dataclass validation and adds DTensor support to storage size helpers, alongside several bug fixes.
✨ New Features
- New `strict` decorators for runtime dataclass validation with custom and type-based checks.
- Added `DTensor` support to `_get_unique_id` / `get_torch_storage_size` helpers, enabling `transformers` to use `save_pretrained` with `DTensor`.
🐛 Bug Fixes
- Several bug fixes addressed in PRs #3080 and #3076.