Directories
ยถ
| Path | Synopsis |
|---|---|
|
Package backends defines the interface to computation building and execution system needs to implement to be used by GoMLX.
|
Package backends defines the interface to computation building and execution system needs to implement to be used by GoMLX. |
|
default
Package _default includes the default backends, namely XLA and SimpleGo.
|
Package _default includes the default backends, namely XLA and SimpleGo. |
|
notimplemented
Package notimplemented implements a backends.Builder interface that throws a "Not implemented" exception to all operations.
|
Package notimplemented implements a backends.Builder interface that throws a "Not implemented" exception to all operations. |
|
shapeinference
Package shapeinference calculates the shape resulting from operations and validates its inputs.
|
Package shapeinference calculates the shape resulting from operations and validates its inputs. |
|
simplego
Package simplego implements a simple, and not very fast, but very portable backend for GoMLX.
|
Package simplego implements a simple, and not very fast, but very portable backend for GoMLX. |
|
stablehlo
Package stablehlo has been renamed to backends/xla.
|
Package stablehlo has been renamed to backends/xla. |
|
xla
Package xla implements a GoMLX backend using Google's XLA (see github.com/gomlx/go-xla).
|
Package xla implements a GoMLX backend using Google's XLA (see github.com/gomlx/go-xla). |
|
xla/cpu/dynamic
Package dynamic links the XLA/PJRT CPU plugin dynamically (as in ".so" libraries) with your binary.
|
Package dynamic links the XLA/PJRT CPU plugin dynamically (as in ".so" libraries) with your binary. |
|
xla/cpu/static
Package static links the XLA/PJRT CPU plugin statically with your binary.
|
Package static links the XLA/PJRT CPU plugin statically with your binary. |
|
cmd
|
|
|
gomlx_checkpoints
module
|
|
|
examples
module
|
|
|
gpt2
module
|
|
|
mxbai-rerank
module
|
|
|
cmd/alternates_generator
command
|
|
|
cmd/builderiface
command
|
|
|
cmd/constraint_generator
command
constraint_generator prints out various lists of constraints used by generics, which can then be copy&pasted into the code.
|
constraint_generator prints out various lists of constraints used by generics, which can then be copy&pasted into the code. |
|
cmd/copyright_header
command
|
|
|
cmd/graph_generator
command
|
|
|
cmd/notimplemented_generator
command
backends_generator generates parts of the backends.Builder interface based on the github.com/gomlx/gopjrt/xlabuilder implementation.
|
backends_generator generates parts of the backends.Builder interface based on the github.com/gomlx/gopjrt/xlabuilder implementation. |
|
cmd/packgemm_generator
command
|
|
|
cmd/simplego_dispatcher
command
|
|
|
cmd/simplego_generator
command
simplego_generator auto-generates parts of the SimpleGo backend:
|
simplego_generator auto-generates parts of the SimpleGo backend: |
|
cmd/xla_generator
command
xla_generator generates xla.Backend implementations based on backend.Builder API.
|
xla_generator generates xla.Backend implementations based on backend.Builder API. |
|
must
Package must provide a set of functions that check for errors and panic on error.
|
Package must provide a set of functions that check for errors and panic on error. |
|
scoped
Package scoped provides a mapping from a string to any data type that is "scoped".
|
Package scoped provides a mapping from a string to any data type that is "scoped". |
|
xlabuilderparser
Package xlabuilderparser parses the xlabuilder API to enumerate graph building functions, and the `op_types.txt` file to get a list of the supported ops.
|
Package xlabuilderparser parses the xlabuilder API to enumerate graph building functions, and the `op_types.txt` file to get a list of the supported ops. |
|
pkg
|
|
|
core/distributed
Package distributed defines the following objects related to cross-device execution:
|
Package distributed defines the following objects related to cross-device execution: |
|
core/dtypes
Package dtypes includes the DType enum for all supported data types for GoMLX.
|
Package dtypes includes the DType enum for all supported data types for GoMLX. |
|
core/dtypes/bfloat16
Package bfloat16 is a trivial implementation for the bfloat16 type, based on https://github.com/x448/float16 and the pending issue in https://github.com/x448/float16/issues/22
|
Package bfloat16 is a trivial implementation for the bfloat16 type, based on https://github.com/x448/float16 and the pending issue in https://github.com/x448/float16/issues/22 |
|
core/graph
Package graph is the core package for GoMLX.
|
Package graph is the core package for GoMLX. |
|
core/graph/graphtest
Package graphtest holds test utilities for packages that depend on the graph package.
|
Package graphtest holds test utilities for packages that depend on the graph package. |
|
core/graph/nanlogger
Package nanlogger collects `graph.Node` objects to monitor for `NaN` ("not-a-number") or `Inf` (infinity) values.
|
Package nanlogger collects `graph.Node` objects to monitor for `NaN` ("not-a-number") or `Inf` (infinity) values. |
|
core/shapes
Package shapes define Shape and DType and associated tools.
|
Package shapes define Shape and DType and associated tools. |
|
core/tensors
Package tensors implement a `Tensor`, a representation of a multidimensional array.
|
Package tensors implement a `Tensor`, a representation of a multidimensional array. |
|
core/tensors/bucketing
Package bucketing provides strategies for bucketing tensor dimensions to reduce the number of unique compiled graphs when input sizes vary.
|
Package bucketing provides strategies for bucketing tensor dimensions to reduce the number of unique compiled graphs when input sizes vary. |
|
core/tensors/images
Package images provides several functions to transform images back and forth from tensors.
|
Package images provides several functions to transform images back and forth from tensors. |
|
core/tensors/numpy
Package numpy allows one to read/write tensors to Python's NumPy npy and npz file formats.
|
Package numpy allows one to read/write tensors to Python's NumPy npy and npz file formats. |
|
ml/context
Package context defines the Context and Variable types: Context organizes variablesMap and variablesMap manages the storage of values typically used as variablesMap.
|
Package context defines the Context and Variable types: Context organizes variablesMap and variablesMap manages the storage of values typically used as variablesMap. |
|
ml/context/checkpoints
Package checkpoints implements checkpoint management: saving and loading of checkpoints to file, or loading a checkpoint from an embedded checkpoint.
|
Package checkpoints implements checkpoint management: saving and loading of checkpoints to file, or loading a checkpoint from an embedded checkpoint. |
|
ml/context/ctxtest
Package ctxtest holds test utilities for packages that depend on context package.
|
Package ctxtest holds test utilities for packages that depend on context package. |
|
ml/context/initializers
Package initializers include several weight initializers, to be used with a context.Context.
|
Package initializers include several weight initializers, to be used with a context.Context. |
|
ml/datasets
Package datasets is a collection of utility datasets (train.Dataset) that can be combined for efficient preprocessing: `Take`, `InMemory`, `Parallel`, `MapWithGraphFn`, `Freeing`.
|
Package datasets is a collection of utility datasets (train.Dataset) that can be combined for efficient preprocessing: `Take`, `InMemory`, `Parallel`, `MapWithGraphFn`, `Freeing`. |
|
ml/decode/sample
Package sample provides various sampling strategies for autoregressive generation.
|
Package sample provides various sampling strategies for autoregressive generation. |
|
ml/layers
Package layers holds a collection of common modeling layers.
|
Package layers holds a collection of common modeling layers. |
|
ml/layers/activations
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. |
|
ml/layers/attention/pos
Package pos provides positional encoding implementations for attention mechanisms.
|
Package pos provides positional encoding implementations for attention mechanisms. |
|
ml/layers/batchnorm
Package batchnorm implements a batch normalization layer, and associated tools.
|
Package batchnorm implements a batch normalization layer, and associated tools. |
|
ml/layers/bsplines
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. |
|
ml/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. |
|
ml/layers/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 |
|
ml/layers/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. |
|
ml/layers/rational
Package rational implements "learnable rational functions".
|
Package rational implements "learnable rational functions". |
|
ml/layers/regularizers
Package regularizers adds tools to facilitate add regularization to the weights learned.
|
Package regularizers adds tools to facilitate add regularization to the weights learned. |
|
ml/layers/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 |
|
ml/train
Package train holds tools to help run a training loop.
|
Package train holds tools to help run a training loop. |
|
ml/train/losses
Package losses have several standard losses that implement train.LossFn interface.
|
Package losses have several standard losses that implement train.LossFn interface. |
|
ml/train/metrics
Package metrics holds a library of metrics and defines
|
Package metrics holds a library of metrics and defines |
|
ml/train/optimizers
Package optimizers implements a collection of ML optimizers that can be used by train.Trainer, or by themselves.
|
Package optimizers implements a collection of ML optimizers that can be used by train.Trainer, or by themselves. |
|
ml/train/optimizers/cosineschedule
Package cosineschedule implements a cosine annealing schedule for the learning rate.
|
Package cosineschedule implements a cosine annealing schedule for the learning rate. |
|
support/exceptions
Package exceptions provide helper functions to leverage Go's `panic`, `recover` and `defer` as an "exceptions" system.
|
Package exceptions provide helper functions to leverage Go's `panic`, `recover` and `defer` as an "exceptions" system. |
|
support/fsutil
Package fsutil contains utilities for working with the file system.
|
Package fsutil contains utilities for working with the file system. |
|
support/sets
Package sets implement a set type as a `map[T]struct{}` but with better ergonomics.
|
Package sets implement a set type as a `map[T]struct{}` but with better ergonomics. |
|
support/xslices
Package xslices provide missing functionality to the slices package.
|
Package xslices provide missing functionality to the slices package. |
|
support/xsync
Package xsync implements some extra synchronization tools.
|
Package xsync implements some extra synchronization tools. |
|
ui
|
|
|
bashkernel
Package bashkernel implements tools to output rich content to a Jupyter notebook running the bash_kernel (https://github.com/takluyver/bash_kernel).
|
Package bashkernel implements tools to output rich content to a Jupyter notebook running the bash_kernel (https://github.com/takluyver/bash_kernel). |
|
commandline
Package commandline contains convenience UI training tools for the command line.
|
Package commandline contains convenience UI training tools for the command line. |
|
gonb/margaid
Package margaid implements automatic plotting of all metrics registered in a trainer, using the Margaid library (https://github.com/erkkah/margaid/) to draw SVG, and GoNB (https://github.com/janpfeifer/gonb/) to display it in a Jupyter Notebook.
|
Package margaid implements automatic plotting of all metrics registered in a trainer, using the Margaid library (https://github.com/erkkah/margaid/) to draw SVG, and GoNB (https://github.com/janpfeifer/gonb/) to display it in a Jupyter Notebook. |
|
gonb/plotly
Package plotly uses GoNB plotly support (`github.com/janpfeifer/gonb/gonbui/plotly`) to plot both on dynamic plots while training or to quickly plot the results of a previously saved plot results in a checkpoints directory.
|
Package plotly uses GoNB plotly support (`github.com/janpfeifer/gonb/gonbui/plotly`) to plot both on dynamic plots while training or to quickly plot the results of a previously saved plot results in a checkpoints directory. |
|
notebooks
Package notebooks allows one to check if running within a notebook.
|
Package notebooks allows one to check if running within a notebook. |
|
plots
Package plots define common types and utilities to the different plot libraries.
|
Package plots define common types and utilities to the different plot libraries. |
Click to show internal directories.
Click to hide internal directories.