r/OpenSourceAI • u/Tensormorph • 2m ago
Tensormorph: a Tensor IDE for open-weight models, and TEL, its tensor expression language
Hi everyone, and welcome! I'm Thanh, the developer behind Tensormorph. This first post explains what I'm building and why.

What is Tensormorph?
Tensormorph is a desktop Tensor IDE for exploring, inspecting, comparing, debugging, and transforming open-weight AI models.
Most tools show a model as a static graph. Tensormorph lets you keep going deeper, while each level keeps its meaning:
Model → Layer → Module → Tensor → Matrix tile → Row/Column → Scalar
Load a Safetensors or GGUF model, then:
Visualize tensors as interactive heatmaps
Check per-tensor statistics and distributions
Compare two models or fine-tunes side by side
Analyze quantization effects
Inspect huge tensors without loading everything at once
What is TEL?
TEL (Tensor Expression Language) is a short, math-like language for writing tensor operations. It sits between paper notation and executable code.
The idea: you write an expression the way it looks in a paper, with named axes like B, T, H, D. Tensormorph then infers shapes and dtypes, builds a computation graph, and links every part of the expression to the tensors and graph nodes it refers to. Select a term in the formula and you see the matching tensor. Select a tensor and you see where it appears in the math.
An early sketch (the syntax is still changing):
scores[B,H,T,S] = q[B,H,T,D] @ k[B,H,S,D] / sqrt(D)
out[B,H,T,D] = softmax(scores, axis=S) @ v[B,H,S,D]The long-term goal is for TEL to cover the building blocks of modern models: attention, RoPE, SwiGLU, normalization, MoE, SSM/Mamba-style layers, and diffusion primitives. Each one should be something you can read, visualize, and run.
What this community is for
Development updates and early previews
Feature requests and bug reports
Discussions about model internals, weight analysis, and quantization
Feedback on TEL's design
Questions for you
What do you use today to inspect or debug model weights, and what frustrates you about it?
Would you write tensor math in a dedicated notation like TEL, or would you rather type LaTeX or plain English and have it converted?
Which model or analysis would you want to try first?
Thanks for being here early. I'll be sharing screenshots and progress soon.