Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/huggingface/diffusers
/ training_utils.py
File
training_utils.py
src/diffusers/training_utils.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
contextlib
2
import
copy
3
import
gc
4
import
math
Callers
nothing calls this directly
Calls
5
is_transformers_available
Function · 0.85
is_accelerate_available
Function · 0.85
is_peft_available
Function · 0.85
is_torchvision_available
Function · 0.85
is_torch_npu_available
Function · 0.85
Tested by
no test coverage detected