Python module
max.graph.weights
Weight containersβ
WeightData | Container for weight tensor data with metadata. |
|---|---|
Weights | Protocol for managing and accessing model weights hierarchically. |
WeightsAdapter | alias of Callable[[...], dict[str, WeightData]] |
Format-specific loadersβ
GGUFWeights | Implementation for loading weights from GGUF (GPT-Generated Unified Format) files. |
|---|---|
SafetensorWeights | Implementation for loading weights from safetensors files. |
Loading functionsβ
load_weights | Loads neural network weights from checkpoint files. |
|---|---|
weights_format | Detect the format of weight files based on their extensions. |
Enumsβ
WeightsFormat | Enumeration of supported weight file formats. |
|---|
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!