Directories
¶
Path | Synopsis |
---|---|
Package backends defines the interface to a computation building and execution system needs to implement to be used by GoMLX.
|
Package backends defines the interface to a 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.
|
Package shapeinference calculates the shape resulting from operations. |
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. |
xla
Package xla implements the XLA/PJRT (https://openxla.org/) based backend for GoMLX.
|
Package xla implements the XLA/PJRT (https://openxla.org/) based backend for GoMLX. |
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
gomlx_checkpoints reports back on model size (and memory) usage (--summary), individual variables shapes and sizes (--vars), hyperparameters used with the model (--params) or metrics collected during model training (--metrics, --metrics_labels).
|
gomlx_checkpoints reports back on model size (and memory) usage (--summary), individual variables shapes and sizes (--vars), hyperparameters used with the model (--params) or metrics collected during model training (--metrics, --metrics_labels). |
examples
|
|
adult
Package adult provides a `InMemoryDataset` implementation for UCI Adult Census dataset.
|
Package adult provides a `InMemoryDataset` implementation for UCI Adult Census dataset. |
adult/demo
UCI-Adult demo trainer.
|
UCI-Adult demo trainer. |
cifar
Package cifar provides a library of tools to download and manipulate Cifar-10 dataset.
|
Package cifar provides a library of tools to download and manipulate Cifar-10 dataset. |
cifar/classifier
Package classifier is a Cifar-10 classifier.
|
Package classifier is a Cifar-10 classifier. |
cifar/demo
CIFAR-10 demo trainer.
|
CIFAR-10 demo trainer. |
dogsvscats/demo
demo for Dogs vs Cats library: you can run this program in 3 different ways:
|
demo for Dogs vs Cats library: you can run this program in 3 different ways: |
imdb
Package imdb contains code to download and prepare datasets with IMDB Dataset of 50k Movie Reviews.
|
Package imdb contains code to download and prepare datasets with IMDB Dataset of 50k Movie Reviews. |
imdb/demo
IMDB Movie Review library (imdb) demo: you can run this program in 4 different ways:
|
IMDB Movie Review library (imdb) demo: you can run this program in 4 different ways: |
linear
Linear generates random synthetic data, based on some linear mode + noise.
|
Linear generates random synthetic data, based on some linear mode + noise. |
mnist/classifier
Package classifier is a MNIST-based digit classifier.
|
Package classifier is a MNIST-based digit classifier. |
mnist/demo
demo for mnist library
|
demo for mnist library |
ogbnmag
Package ogbnmag provides `Download` method for the corresponding dataset, and some dataset tools
|
Package ogbnmag provides `Download` method for the corresponding dataset, and some dataset tools |
ogbnmag/fnn
Package fnn implements a feed-forward neural network for the OGBN-MAG problem.
|
Package fnn implements a feed-forward neural network for the OGBN-MAG problem. |
ogbnmag/gnn
Package gnn implements a generic GNN modeling based on [TF-GNN MtAlbis].
|
Package gnn implements a generic GNN modeling based on [TF-GNN MtAlbis]. |
oxfordflowers102
Package oxfordflowers102 provides tools to download and cache the dataset and a `train.Dataset` implementation that can be used to train models using GoMLX (http://github.com/gomlx/gomlx/).
|
Package oxfordflowers102 provides tools to download and cache the dataset and a `train.Dataset` implementation that can be used to train models using GoMLX (http://github.com/gomlx/gomlx/). |
oxfordflowers102/diffusion
Package diffusion contains an example diffusion model, trained on Oxford Flowers 102 dataset.
|
Package diffusion contains an example diffusion model, trained on Oxford Flowers 102 dataset. |
Package graph is the core package for GoMLX.
|
Package graph is the core package for GoMLX. |
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. |
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. |
internal
|
|
cmd/backends_generator
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/backends_generator/parsexlabuilder
Package parsexlabuilder parses the xlabuilder API to enumerate graph building functions, and the `op_types.txt` file to get a list of the supported ops.
|
Package parsexlabuilder parses the xlabuilder API to enumerate graph building functions, and the `op_types.txt` file to get a list of the supported ops. |
cmd/constraint_generator
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/graph_generator/parsebackends
Package parsebackends parses the backends.Builder API to enumerate graph building methods.
|
Package parsebackends parses the backends.Builder API to enumerate graph building methods. |
cmd/notimplemented_generator
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/simplego_generator
simplego_generator auto-generates parts of the SimpleGo backend:
|
simplego_generator auto-generates parts of the SimpleGo backend: |
cmd/xla_generator
xla_generator generates the xla.Backend implementation based on the github.com/gomlx/gopjrt/xlabuilder implementation.
|
xla_generator generates the xla.Backend implementation based on the github.com/gomlx/gopjrt/xlabuilder implementation. |
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. |
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. |
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. |
context/initializers
Package initializers include several weight initializers, to be used with context.
|
Package initializers include several weight initializers, to be used with context. |
data
Package data is a collection of tools that facilitate data loading and preprocessing.
|
Package data is a collection of tools that facilitate data loading and preprocessing. |
data/downloader
Package downloader implements download in parallel of various URLs, with various progress report callback.
|
Package downloader implements download in parallel of various URLs, with various progress report callback. |
data/hdf5
Package hdf5 provides a trivial API to access HDF5 file contents.
|
Package hdf5 provides a trivial API to access HDF5 file contents. |
data/huggingface
Package huggingface 🤗 provides functionality do download HuggingFace (HF) models and extract tensors stored in the ".safetensors" format.
|
Package huggingface 🤗 provides functionality do download HuggingFace (HF) models and extract tensors stored in the ".safetensors" format. |
layers
Package layers holds a collection of common modeling layers.
|
Package layers holds a collection of common modeling layers. |
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. |
layers/batchnorm
Package batchnorm implements a batch normalization layer, and associated tools.
|
Package batchnorm implements a batch normalization layer, and associated tools. |
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. |
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. |
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 |
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. |
layers/rational
Package rational implements "learnable rational functions".
|
Package rational implements "learnable rational functions". |
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. |
train
Package train holds tools to help run a training loop.
|
Package train holds tools to help run a training loop. |
train/losses
Package losses have several standard losses that implement train.LossFn interface.
|
Package losses have several standard losses that implement train.LossFn interface. |
train/metrics
Package metrics holds a library of metrics and defines
|
Package metrics holds a library of metrics and defines |
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. |
train/optimizers/cosineschedule
Package cosineschedule cosine annealing schedule for the learning rate.
|
Package cosineschedule cosine annealing schedule for the learning rate. |
models
|
|
inceptionv3
Package inceptionv3 provides a pre-trained InceptionV3 model, or simply it's structure.
|
Package inceptionv3 provides a pre-trained InceptionV3 model, or simply it's structure. |
Package types is mostly a top level directory for GoMLX important types.
|
Package types is mostly a top level directory for GoMLX important types. |
shapes
Package shapes defines Shape and DType and associated tools.
|
Package shapes defines Shape and DType and associated tools. |
tensors
Package tensors implements a `Tensor`, a representation of a multi-dimensional array.
|
Package tensors implements a `Tensor`, a representation of a multi-dimensional array. |
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. |
xslices
Package xslices provide missing functionality to the slices package.
|
Package xslices provide missing functionality to the slices package. |
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. |
fyneui
Package fyneui implements a simple GUI app that displays how training progresses.
|
Package fyneui implements a simple GUI app that displays how training progresses. |
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.