Kandle

A JavaScript Native PyTorch-aligned Machine Learning Framework, built from scratch on WebGPU.

github.com/final-kk/kandle
Kandle homepage screenshot

About Kandle

Kandle is a JavaScript machine learning framework that follows PyTorch API patterns and uses eager-mode dynamic graph execution. It runs on WebGPU for GPU acceleration and pure JavaScript for CPU computation under a unified interface.

It provides 200+ tensor operations, a tensor system with stride, broadcasting, view operations and non-contiguous memory support, and an nn.Module system focused on forward propagation. It can load Safetensor weights for Qwen3 and Whisper. It is described as a technical verification prototype, not production-ready, with autograd still under development and limited edge-case handling, and is not intended for high-performance production inference.

Key features

  • Eager-mode dynamic graph execution with intermediate state inspection
  • PyTorch-aligned API design referencing ATen/c10 architecture
  • Hybrid WebGPU GPU and pure JavaScript CPU backends
  • Tensor system with stride, broadcasting, views, non-contiguous memory
  • 200+ tensor operations for arithmetic, convolution, FFT, audio processing
  • Loads Safetensor weights for Qwen3 and Whisper models
Best for: JavaScript developers familiar with PyTorch doing research, prototyping, debugging, and intermediate-layer analysis.
Good for
  • Dynamic graph allows pausing and inspecting computation at any layer
  • Unified tensor operations handle pre- and post-processing without extra export toolchains
  • PyTorch-aligned API lowers learning cost for existing PyTorch users
Watch out for
  • Technical verification prototype, not intended for high-performance production inference
  • Current version focuses on forward propagation; autograd is under development
  • Main-path implementation with incomplete edge-case and error handling

Kandle at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

Kandle alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in AI Infrastructure & MLOps

Well-known listings from the same topic.

All 341

Kandle FAQ

Does Kandle support model training with backpropagation?
Not in the current version, which focuses on forward propagation verification; autograd is under development.
Is Kandle suitable for high-performance production inference?
No. The source lists that use as unsuitable and points to ONNX Runtime or WebLLM instead.
Which backends and models does Kandle support?
WebGPU and pure JavaScript CPU backends under a unified interface, with Safetensor weight loading for Qwen3 and Whisper.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing