Riptorch reference and guides
Riptorch runs your PyTorch code with one changed import: import riptorch as torch. This is every public API, grouped as PyTorch’s docs group it, with what is the same as PyTorch, what is different and what Riptorch adds, plus guides for ML engineers: exact vector search for RAG, storing embeddings, exact integer maths and writing your own fast code.
Searches names, modules and the first sentence of each entry.
Guides
Plain ML language, Python examples with outputs recorded from real runs.
Switch in one line
What changes when you replace import torch, how to check where your model runs, and how to get stock behaviour back.
Exact vector search for RAG
Why float16 and bfloat16 search reorders top-10s, and the pipeline that returns the same ranking every time.
Storing embeddings in int8 and int16
Quantise embeddings without losing the ranking: symmetric scales and exact scoring.
Exact integer matmul
int8 and int16 matrix multiplies with no wraparound, and where they run.
Matmul precision and speed settings
set_matmul modes, GPU + CPU splitting, integer matmul placement and devices.
How the exact maths works
Exact integer matmul from 8-bit digits, exact search ranking, and sin, exp2 and log2 with the same bits on every device.
Writing your own fast exact code
Write a hot loop in Raya, compile it to a shared library, and call it from Python on NumPy buffers.
Reference
Signatures and docs for every public name, introspected from the Riptorch package.
torch
Tensor creation, maths, reductions, comparisons, linear algebra, random sampling, serialization and utilities: everything under torch.*.
1,022 names · 22 different · 96 extrasTensor
Every method and property of torch.Tensor.
611 names · 27 different · 7 extrastorch.nn
Modules and layers: containers, convolution, pooling, activations, normalization, recurrent and transformer layers, losses, plus nn.init and nn.utils.
217 names · 3 different · 4 extrastorch.nn.functional
The functional forms of the layers: convolutions, pooling, attention, activations, losses and vision functions.
153 names · 4 different · 7 extrastorch.optim
Optimizers (SGD, Adam, AdamW, Lion and the rest) and learning-rate schedulers.
34 names · 0 different · 1 extrastorch.linalg
Linear algebra: decompositions, solvers, inverses, norms, plus exact extras for quadrance and spread.
55 names · 6 different · 11 extrastorch.fft
Discrete Fourier transforms, plus the exact number-theoretic transform and polynomial product.
26 names · 0 different · 3 extrastorch.special
Special functions: gamma and related functions, the error function family, Bessel functions, ndtr and more.
57 names · 7 different · 0 extrasRiptorch extras
Exact similarity search, settings, environment variables, and every default that differs from stock PyTorch.
129 extras · 52 differences · 26 variablesPlain-text versions for tools and AI assistants: llms.txt and llms-full.txt. Install notes, platforms and limitations are on the Riptorch page.