Skip to content
The Daily Repo

mattn / tensai

A tiny neural-network framework in pure Go with AVX2 SIMD kernels (GOEXPERIMENT=simd)

Why this job: topics: gguf, quantization

What it does

  • Matrix operations. Matrix plus basic operations such as Dot, Add, T, and AddBias. Tensors are float32 (tensai.Float)
  • N-dimensional tensors. Tensor generalizes Matrix to any rank: element-wise Add/Sub/Mul/Div with NumPy-style broadcasting, batched MatMul (the leading axes broadcast, the per-matrix products run on the same kernel as Dot, parallelized acros
  • SIMD acceleration. AVX2 kernels on amd64 and NEON (ARM's Advanced SIMD) kernels on arm64, written with Go's experimental simd/archsimd package: still pure Go, no cgo, no assembly files. Matmul, ReLU/LeakyReLU, Sigmoid/Tanh/Softmax (via a v
  • Low-allocation training. layers reuse their forward/backward scratch buffers across training steps (a full MLP step runs in ~29 allocations), so GC stays out of the training loop; Predict always returns freshly allocated results
  • Layers. Embedding, Dense, Conv2D, MaxPool2D, BatchNorm, LayerNorm, Dropout, plus ReLU, LeakyReLU, GELU, Sigmoid, Tanh, and Softmax activations

Get started

No single install command. Read the steps in the README (opens in new tab)

Maintenance
Active
Last commit 3 days ago
Stars
119
+1 this week
Licence
MIT
Allows business use
Downloads for
3 systems
Mac, Windows, Linux
Latest version
v0.0.36
Released 3 days ago
Built with
Go
99% of the code

Is it looked after?

Contributors
1
Last 90 days
Issues
None
No issues filed
Pull requests
291 merged
0 waiting
Releases
34
30+ in the last year
  • No contributing guide
  • No security policy
  • No code of conduct

Similar repos

Repos similar to this one
RepoStarsLast commitLicenceDownloads for
prabanta-dev / janas6782 days agoGPL-3.0Windows, Linux
fastmachinelearning / qonnx1952 months agoApache-2.0No downloads
robertknight / rten360yesterdayApache-2.0No downloads
More: download files, languages, topics and project record

Download files, v0.0.36

  • Mac4 files, 4 downloads
  • Windows4 files, 4 downloads
  • Linux4 files, 4 downloads

All files on GitHub (opens in new tab)

Languages

  • Go 99%
  • HTML <1%
  • Python <1%
  • Makefile <1%

Topics

  • autograd
  • avx2
  • deep-learning
  • gguf
  • golang
  • llm
  • machine-learning
  • neural-networks
  • onnx
  • quantization
  • safetensors
  • simd

Project record

  • JobLocal LLMs
  • StatusListed
  • Commits553
  • Forks6
  • Watching2
  • Stars in 28 days+6
  • CreatedAug 19, 2026
  • First seen by usNov 7, 2026
  • CheckedNov 9, 2026

Type to search.

Try