loom

module
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0

README ΒΆ

LOOM: Universal Bit-Perfect Deterministic AI Engine

npm version npm downloads PyPI version PyPI downloads License

"The SQLite of AI" β€” A Polyglot Neural Engine with Bit-Exact Reproducibility

Loom is a Deterministic Neural Virtual Machine (DNVM) engineered for absolute numerical consistency and extreme efficiency. It guarantees bitwise-identical results across all platforms, backends, and language bindings, bypassing memory bandwidth bottlenecks through polymorphic dispatch and volumetric 3D modeling.

Loom Overview

🌐 The Polyglot Solution

Loom is designed as a universal runtime that prioritizes portability and sovereignty:

  • True "Copy-Paste" Portability: Models are language-agnostic. Move weights and logic between Go, Python, C#, and WASM without translation layers.
  • Write Once, Run Everywhere: A standardized format that performs identically on Browser (WASM/WebGPU), Mobile (iOS/Android), and Desktop (Linux/Windows/macOS).
  • Universal Import: Direct ingestion from major frameworksβ€”zero vendor lock-in.
  • Active Edge Training: Full backpropagation enabled on-device. No "frozen brains"; Loom learns from user interaction at the edge.
  • Sovereign & Private: Zero cloud dependencies. User data and model execution remain 100% local.

πŸ’Ž The Bedrock Philosophy

Loom is a "Bedrock Edition" neural engine. Unlike standard frameworks that build on top of high-level abstractions, Loom is designed at the bit-level to bypass the physical memory limitations of consumer hardware.

  • Cross-Platform Determinism: 0.0000000000 difference between CPU and GPU, x86 and ARM, native and browser.
  • Universal Precision: Native support for 21 numerical types (FP64 to 1-bit Binary), allowing Loom to "morph" precision to match specific silicon preferences.
  • Bit-Perfect Identity: Verified across hundreds of permutations with 0.000000% mathematical divergence.

πŸš€ The Technical Pillars (Final Form)

The project has transitioned to the Multi-numerical POLYmorphic Volumetric Tiled-tensor Dispatcher (M-POLY-VTD) core.

  • Systolic Neural Mesh: A living mesh architecture with clock-cycle accurate updates and temporal feedback loops that simulate biological neural firing.
  • DNA Engine: A hierarchical spatial correlation system that extracts topological "signatures" of models, enabling high-fidelity comparison and "Logic Shift" detection in 3D space.
  • Neural Target Propagation (TargetProp): A robust alternative to backpropagation that uses localized, gap-based Hebbian learning to bridge the difference beTargetProp actual and idealized activations.
  • Bit-Packed Persistence: An idempotent serialization tunnel that achieves up to 98.4% compression, allowing extreme model sizes to fit in consumer RAM/VRAM.

πŸ“‚ Project Structure

  • poly/: The current-generation engine core (M-POLY-VTD). This is where active development happens.
  • legacy/: Historical codebase and previous iterations of Loom.

πŸ› οΈ Getting Started

For technical deep-dives into M-POLY-VTD, refer to the documentation and benchmarks within the poly/ core.

Loom provides bit-exact reproducibility across:

  • Go (Native)
  • TypeScript/Node.js (@openfluke/welvet)
  • Browser (WASM + WebGPU)
  • Python (pip install welvet)
  • C#/.NET (Welvet) - (In Development)

πŸ“Š Versioning & Roadmap

Loom uses a mathematical versioning system derived from a strictly verified checklist of 130 industry-scale features.

Current Version: 0.74.0 β€” Complete
  • Completion Ratio: 74.6% (97 / 130 features verified β€” Polyglot Bridge Complete)
  • Status: 0.74.0 "Polyglot Bridge" is fully shipped. The full polyglot runtime is now live across Go, TypeScript/Node.js, Browser (WASM/WebGPU), Python (welvet), C#, Java, and Dart. FP4 acceleration is native on both CPU and GPU.
    • [!NOTE]

    • GPU Backward Training: Full end-to-end GPU training is live. Dense, RMSNorm, CNN 1D/2D/3D all run forward + backward + weight updates in a single GPU command buffer submission via the BeginFrame/FlushFrame pattern. Measured speedups on real workloads: 17x–65x vs CPU.

  • Milestone achieved:
    • v0.74.0 "Polyglot Bridge" βœ… β€” TypeScript/WASM verified, Python welvet published to PyPI, 0.000000% divergence across all bindings.
  • Next Target β€” v0.8.0 "Edge-First": Wiring SwiGLU/MHA/Embedding into DispatchBackwardLayer; specialized Edge-First orchestration (Thermal-Awareness, UMA, Command Buffer Graphing) for mobile and wearable deployment.
  • Next Steps: SwiGLU/MHA GPU backward wiring; Edge-First hardware scheduling.

For a detailed breakdown of the roadmap and version calculation, see poly/README.md.


License

Apache License 2.0 - see LICENSE file for details.


Loom: Universal precision. Volumetric freedom. Bedrock performance.

Made with ❀️ by Openfluke

Directories ΒΆ

Path Synopsis
legacy
cabi command
gpu
nn
Package nn provides a grid neural network implementation with both CPU and GPU execution.
Package nn provides a grid neural network implementation with both CPU and GPU execution.
wrapper/wasm command
DNA Engine: Hierarchical Spatial Correlation Engine --------------------------------------------------- A topological reconstruction system for neural networks.
DNA Engine: Hierarchical Spatial Correlation Engine --------------------------------------------------- A topological reconstruction system for neural networks.
welvet
cabi command
wasm command

Jump to

Keyboard shortcuts

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