MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / get_safetensors_metadata

Function get_safetensors_metadata

k_diffusion/utils.py:447–449  ·  view source on GitHub ↗

Retrieves the metadata from a safetensors file.

(path)

Source from the content-addressed store, hash-verified

445
446
447def get_safetensors_metadata(path):
448 """Retrieves the metadata from a safetensors file."""
449 return safetensors.safe_open(path, "pt").metadata()
450
451
452def ema_update_dict(values, updates, decay):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected