ml/

directory
v0.28.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2026 License: Apache-2.0

Directories

Path Synopsis
Package datasets is a collection of utility datasets (train.Dataset) that can be combined for efficient preprocessing: `Take`, `InMemory`, `Parallel`, `Map`, `MapOnHost`, `Freeing`.
Package datasets is a collection of utility datasets (train.Dataset) that can be combined for efficient preprocessing: `Take`, `InMemory`, `Parallel`, `Map`, `MapOnHost`, `Freeing`.
Package ggml provides graph-level decomposed dequantization for GGML block formats.
Package ggml provides graph-level decomposed dequantization for GGML block formats.
Package layers holds a collection of common modeling layers.
Package layers holds a collection of common modeling layers.
activation
Package activations implements several common activations, and includes a generic Apply method to apply an activation by its type.
Package activations implements several common activations, and includes a generic Apply method to apply an activation by its type.
attention
Package attention implements multi-head attention and related utilities.
Package attention implements multi-head attention and related utilities.
attention/kvcache
Package kvcache implements a flexible key-value (KV) cache for transformer models.
Package kvcache implements a flexible key-value (KV) cache for transformer models.
attention/pos
Package pos provides positional encoding implementations for attention mechanisms.
Package pos provides positional encoding implementations for attention mechanisms.
bspline
Package bsplines provide a GoMLX version of github.com/gomlx/bsplines: it provides evaluation of bsplines curves, that can be used as layers.
Package bsplines provide a GoMLX version of github.com/gomlx/bsplines: it provides evaluation of bsplines curves, that can be used as layers.
fnn
Package fnn implements a generic FNN (Feedforward Neural Network) with various configurations.
Package fnn implements a generic FNN (Feedforward Neural Network) with various configurations.
kan
Package kan implements a generic Kolmogorov–Arnold Networks, as described in https://arxiv.org/pdf/2404.19756
Package kan implements a generic Kolmogorov–Arnold Networks, as described in https://arxiv.org/pdf/2404.19756
lstm
Package lstm provides a minimal "Long Short-Term Memory RNN" (LSTM) [1] implementation.
Package lstm provides a minimal "Long Short-Term Memory RNN" (LSTM) [1] implementation.
norm
Package norm implements normalization layers for GoMLX, including Batch, Layer, and RMS normalization.
Package norm implements normalization layers for GoMLX, including Batch, Layer, and RMS normalization.
rational
Package rational implements "learnable rational functions".
Package rational implements "learnable rational functions".
regularizer
Package regularizers adds tools to facilitate add regularization to the weights learned.
Package regularizers adds tools to facilitate add regularization to the weights learned.
vnn
Package vnn implements the Vector Neuron Networks operators described in https://arxiv.org/abs/2104.12229
Package vnn implements the Vector Neuron Networks operators described in https://arxiv.org/abs/2104.12229
Package model implements a model's Store object (to store variables and hyperparameters), Scope's (scope, like a directory "path") within a store, and Exec, an executor that takes as an extra parameter a Store and will handle passing the variables automatically as extra inputs and outputs to the graph being built.
Package model implements a model's Store object (to store variables and hyperparameters), Scope's (scope, like a directory "path") within a store, and Exec, an executor that takes as an extra parameter a Store and will handle passing the variables automatically as extra inputs and outputs to the graph being built.
checkpoint
Package checkpoint implements checkpoint management: saving and loading of checkpoints to file, or loading a checkpoint from an embedded checkpointHandler.
Package checkpoint implements checkpoint management: saving and loading of checkpoints to file, or loading a checkpoint from an embedded checkpointHandler.
initializer
Package initializer include several weight initializers, that can be used to initialize varariables, or used in model.Scope objects as default initializer for new variables.
Package initializer include several weight initializers, that can be used to initialize varariables, or used in model.Scope objects as default initializer for new variables.
modeltest
Package modeltest holds test utilities for packages that depend on model package.
Package modeltest holds test utilities for packages that depend on model package.
Package train holds tools to help run a training loop.
Package train holds tools to help run a training loop.
loss
Package losses have several standard losses that implement train.LossFn interface.
Package losses have several standard losses that implement train.LossFn interface.
metric
Package metrics holds a library of metrics and defines
Package metrics holds a library of metrics and defines
optimizer
Package optimizer implements a collection of ML optimizers that can be used by train.Trainer, or by themselves.
Package optimizer implements a collection of ML optimizers that can be used by train.Trainer, or by themselves.
optimizer/cosineschedule
Package cosineschedule implements a cosine annealing schedule for the learning rate.
Package cosineschedule implements a cosine annealing schedule for the learning rate.
zoo
transformer/generate
Package generate implements a generator for transformer models, including the sampling strategies: greedy, top-k, top-p and beam search.
Package generate implements a generator for transformer models, including the sampling strategies: greedy, top-k, top-p and beam search.
transformer/generate/sample
Package sample provides various sampling strategies for autoregressive generation.
Package sample provides various sampling strategies for autoregressive generation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL