[v0.31.4]: strict dataclasses, support `DTensor` saving & some bug fixes
This release includes some new features and bug fixes:
strict decorators for runtime dataclass validation with custom and type-based checks. by @Wauplin in https://github.com/huggingface/huggingface_hub/pull/2895.DTensor support to _get_unique_id / get_torch_storage_size helpers, enabling transformers to use save_pretrained with DTensor. by @S1ro1 in https://github.com/huggingface/huggingface_hub/pull/3042.Full Changelog: https://github.com/huggingface/huggingface_hub/compare/v0.31.2...v0.31.4
Fetched April 7, 2026