Open Source · github.com/openfluke/loom

The Universal
AI Engine

Loom lets you train neural networks once and run them anywhere — Python, JavaScript, Go, iOS, Android, WebAssembly — with bit-perfect identical results across every platform.

v0.74.0 — Latest 97/130 milestones 21 numeric types
v0.74.0
Polyglot Bridge Complete
74.6% complete — 97 of 130 milestones
welvet — full Python bindings on PyPI, zero dependencies
WebGPU acceleration: 17×–65× CPU speedup
iOS, Android, WebAssembly prebuilt binaries
NEAT evolution + DNA splice/crossover
SafeTensors model loading
AI Deep Research

Independent AI Analysis of Loom

AI researchers performed an exhaustive technical analysis of the Loom architecture — listen to the podcast, or read the full findings.

AI-Generated Deep Research Podcast
Loom AI: 3D Grids & Target Propagation
A narrated deep-dive into what makes Loom's architecture fundamentally different from PyTorch, JAX, and every other AI framework.
🧊
AI that thinks in 3D

Most AI frameworks process data in a straight line, like an assembly line. Loom uses a three-dimensional grid — more like how your brain's neurons actually connect, jumping across regions rather than always going layer by layer.

💾
Fits AI on a USB stick

Loom can compress AI models by up to 98.4%. A model that normally takes gigabytes of storage can shrink to a fraction — small enough to run on a phone or an old laptop with no internet required.

🧬
Learns like biology, not math

Traditional AI learning requires freezing everything to calculate one massive equation. Loom's Target Propagation lets each part of the network learn independently — more like how neurons fire and strengthen in a real brain.

Read the Full Technical Breakdown
For Non-Technical People

What is Loom, exactly?

"Think of Loom like SQLite — but for AI."

SQLite is a tiny database that runs inside your app with no server needed. Loom is the same idea for neural networks: a self-contained engine you can drop into any project, on any device, with no cloud account, no GPU server, no complicated setup.

🧠
Train it like a brain

A neural network learns by seeing examples — like showing a child thousands of pictures of cats until they know what a cat is. Loom provides all the tools to build and teach these networks.

📦
Pack it anywhere

Once trained, your model is a tiny file. Drop it into your Python script, your phone app, your website, or a game engine. Loom runs it everywhere with the exact same output.

🔒
No cloud needed

Unlike ChatGPT or other AI services, Loom runs 100% locally on your device. Your data never leaves your machine. Perfect for privacy-sensitive apps or offline use.

WebGPU acceleration

On supported devices, Loom uses your GPU through WebGPU — achieving 17× to 65× faster training than CPU. Works in browsers too.

🌍
Every language

Python developer? pip install welvet. JavaScript? npm install @openfluke/welvet. Go, C, C#, Rust? There are bindings for all of them. One model, every language.

🧬
Evolution built in

Loom includes a full NEAT evolution engine — models can mutate and breed like living organisms. This powers SoulGlitch's creature evolution system.

Get Started

Install in 30 seconds

Pick your language and paste the command. No account required.

Python
Node.js
Go
WebAssembly
$ pip install welvet

Ships with precompiled native libraries for Windows, Linux, macOS, iOS, and Android. Zero Python dependencies. PyPI page →

$ npm install @openfluke/welvet

Works in Node.js and browsers via WebAssembly. npm page →

$ go get github.com/openfluke/loom/poly

Pure Go module. No CGO. Works with standard go build. Docs on GitHub →

Download main.wasm from the releases page Download

6.9 MB WASM bundle. Drop into any web page and run Loom in the browser. All releases →

Platform Support

Runs everywhere

Prebuilt native libraries for every major platform — just download and go.

Windows
x86-64, ARM64
Linux
x86-64, ARM64, ARM v7, x86
macOS
x86-64, ARM64 (M-series), Universal
Android
ARM64, x86-64
iOS
ARM64, Simulator, XCFramework
WebAssembly
Browser + Node.js
WebGPU
Forward + Backward pass, 17×–65× speedup
PyPI
welvet — zero dependencies
For Developers

What's under the hood

Loom isn't just a wrapper around PyTorch. It's a ground-up engine built for portability and precision.

All major layer types

Dense, MHA, SwiGLU, RMSNorm, LayerNorm, CNN 1D/2D/3D, Transposed Conv, RNN, LSTM, Embedding, KMeans, Softmax, Parallel, Sequential, Residual.

21 numeric types

float64 all the way down to binary (1-bit), including fp8, fp4, int4, and ternary. Choose precision vs. model size at runtime.

NEAT evolution + DNA

A full neuroevolution engine with mutation, crossover, and fitness selection. Models have a "DNA" signature for reproducible evolution.

98.4% compression

Native bit-packed serialization shrinks model files by 98.4% compared to raw float storage. Plus SafeTensors support for HuggingFace compatibility.

Target propagation

An alternative to backpropagation where each layer is given a direct target. More biologically plausible and works for non-differentiable layers.

Systolic grid

An online learning architecture modelled after systolic arrays. Weight updates happen continuously as data streams through, no epochs needed.

Full Documentation
Watch It Work

See Loom In Action

Real demos — benchmarks, Android offline inference, 3D network visualization, and tooling built on Loom.

Performance Benchmark
Forget Llama.cpp: WebGPU Inference in Pure Go

SmolLM2-135M benchmarks: 68 tok/s on RTX 1650 Super, 143 tok/s on Linux i5, 229 tok/s on Mac M4. Zero CGO. FlashPoly Tiling. Bit-level deterministic across OS boundaries.

Visualization
Loom: Visualizing 3D Neural Networks in Real-Time

Watch the AI "think" in real-time. Stepping mode, 3D grid topology, Zig-Zag and Starburst routing patterns — the black box, opened.

Android · Airplane Mode
Offline LLM Inference on Android via Loom AI

Loom v0.0.8 running 100% locally on Android — device locked in Airplane Mode throughout. Zero cloud dependency. Pure on-device compute from first principles in Go.

Open Source Tool
NeuralWave: 3D Neural Network Visualization & Weight Analysis

Real-time model discovery from HuggingFace, interactive 3D layer inspection, attention head visualization. Built on Loom + Go backend + Three.js.

Star Loom on GitHub

Loom is free, open-source, and built in the open. Stars help others find it and fuel continued development.

Star   Fork