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. |
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. |
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. |
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. |
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. |
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). |
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. |
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. |
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/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. |
notebook
Package notebook allows one to check if running within a notebook.
|
Package notebook allows one to check if running within a notebook. |
notebook/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). |
notebook/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. |
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. |
notebook/gonb/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. |
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. |
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.
|
Package checkpoints implements checkpoint management: saving and loading of checkpoints. |
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/hdf5
Package hdf5 provides a trivial API to access HDF5 file contents.
|
Package hdf5 provides a trivial API to access HDF5 file contents. |
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/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/commandline
Package commandline contains convenience UI training tools for the command line.
|
Package commandline contains convenience UI training tools for the command line. |
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. |
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. |
Click to show internal directories.
Click to hide internal directories.