Modules§
Macros§
Structs§
- Nice
Progress Bar - Nice progress bar with over an iterator and a message. COLOR is one of r,g,b
Enums§
- File
Data - File
Loader - Model
Source - Source from which to load the model. This is easiest to create with the various constructor functions.
- Token
Source - The source of the HF token.
Functions§
- conv1d
- conv1d_
no_ bias - conv2d
- conv2d_
no_ bias - embedding
- from_
mmaped_ safetensors - Load tensors into a VarBuilder backed by a VarMap using MmapedSafetensors.
Set
silent
to not show a progress bar. - get_
token - This reads a token from a specified source. If the token cannot be read, a warning is logged with
tracing
and no token is used. - group_
norm - layer_
norm - linear
- linear_
b - linear_
no_ bias - load_
bpe_ tokenizer
Type Aliases§
- VarBuilder
- A simple
VarBuilder
, this is less generic thanVarBuilderArgs
but should cover most common use cases.