Skip to main content

Module loader

Module loader 

Source

Modules§

weights
Model-agnostic weight I/O — paths, formats, drain policy only.

Structs§

GgufDirGuide
LoadWeightsOptions
Options for load_weights_resolved — prefer crate::weights::LoadOpts presets at call sites.
RegisteredFormat
One registered on-disk format (built-in or custom).
WeightFormatRegistration
Describes one on-disk weight format.

Enums§

LoadedWeights
Result of resolving and opening weights.

Traits§

GgufTensorNameResolver
Resolve a builder-requested tensor name to the name stored in a GGUF file.

Functions§

debug_resolve_name
gguf_dir_guide
Numbered .gguf listing + resolve hints for a directory (CLI / errors).
list_registered_formats
All registered formats (built-ins first, then custom registrations).
load_weight_map_resolved
Convenience: resolve + drain to F32 WeightMap.
load_weights_resolved
Resolve a file or directory, enforce GGUF arch policy, open via registry, optionally drain.
open_gguf_loader
GGUF loader with optional MTP-head visibility (LM families).
open_loader
open_loader_resolved
Resolve a file or weights directory, then open the right loader.
open_loader_resolved_with_options
open_loader_with_format
open_map
Resolve + drain to F32 WeightMap.
open_map_with
Resolve + drain with options.
open_weight_loader
Open a single file via the format registry.
open_weight_map_resolved
Resolved path → drained WeightMap (safetensors or GGUF).
open_weights
Resolve + open (live WeightLoader).
open_weights_resolved
Full resolved load (loader or map, per options).
open_with
Resolve + open with options.
register_gguf_tensor_resolver
Register a custom resolver (call before first GGUF load). Later registrations win among resolvers that match the same architecture.
register_weight_format
Register a custom weight format (call before the first load). Later entries override built-ins when the same extension is registered twice.

Type Aliases§

LoadOpts
Alias for LoadWeightsOptions.
ResolveOpts
Alias for ResolveWeightsOptions.