diffusers
[core] Introduce `_TorchStateDict` object to manage state dict tensors + metadata
#15382
Merged

[core] Introduce `_TorchStateDict` object to manage state dict tensors + metadata #15382

DN6 merged 11 commits into main from statedict-object
DN6
DN6 [core] Add `_TorchStateDict` so loaded state dicts carry file metadata
012144de
DN6 [LoRA] Read adapter metadata from `state_dict.metadata`
dcc6bacb
DN6 Clean up pass
c45e4a13
DN6 Only re-wrap the single-file checkpoint after unwrapping `state_dict`
dbcffb16
DN6 Read safetensors tensors and header from one `safe_open`
9da79cf6
DN6 Keep the safetensors `format` entry in `metadata`
78bbc4a4
DN6 Simplify the `metadata` fallback in `load_lora_adapter`
c5f5f15a
github-actions github-actions added lora
github-actions github-actions added models
github-actions github-actions added tests
github-actions github-actions added utils
github-actions github-actions added single-file
github-actions github-actions added loaders
github-actions github-actions added size/L
DN6 Merge branch 'main' into statedict-object
809c0040
HuggingFaceDocBuilderDev
DN6 DN6 requested a review from yiyixuxu yiyixuxu 5 days ago
DN6 DN6 requested a review from sayakpaul sayakpaul 5 days ago
yiyixuxu
yiyixuxu approved these changes on 2026-11-25
sayakpaul sayakpaul added this to the Release 0.44.0 milestone 4 days ago
sayakpaul
sayakpaul commented on 2026-11-25
sayakpaul Merge branch 'main' into statedict-object
fe66657b
sayakpaul
DN6 Address review comments
488cc2bd
sayakpaul
sayakpaul approved these changes on 2026-11-27
DN6 Apply review suggestion
d3573d6d
DN6 DN6 merged b1d2e5ab into main 1 day ago
DN6 DN6 deleted the statedict-object branch 1 day ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone