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
| Repo | Stars | Last commit | Licence | Downloads for |
|---|---|---|---|---|
| prabanta-dev / janas | 678 | 2 days ago | GPL-3.0 | Windows, Linux |
| fastmachinelearning / qonnx | 195 | 2 months ago | Apache-2.0 | No downloads |
| robertknight / rten | 360 | yesterday | Apache-2.0 | No 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
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
