Skip to content

Vikram

Founder, KarLex AI

I’m building KarLex AI, a research company making AI with a longer memory. I write CUDA and JAX kernels, tools that give coding agents a memory of your codebase, and language models with long-term memory built in, trained from scratch.

Before this, I spent four years running a Discord community that grew to 14,000+ members, and studied computer science at PES University. I live in Bengaluru.

Reach me by email, or find my code on GitHub.

Now

Training language models with long-term memory from scratch on H100s and shipping Graphicle 0.1.22 (3 Dec).

Projects

Graphicle

Code graph and memory for coding agents

One Rust program maps your repository and remembers its docs, decisions and past agent sessions, then serves cited file-and-line excerpts to Claude Code, Codex, Cursor or any MCP client.

Ship log23 releases in 51 days

0.1.0 · 14 Oct0.1.22 · 3 Dec
  • Release v0.1.0, 14 Oct
  • Release v0.1.1, 16 Oct
  • Release v0.1.2, 18 Oct
  • Release v0.1.3, 21 Oct
  • Release v0.1.4, 22 Oct
  • Release v0.1.5, 23 Oct
  • Release v0.1.6, 24 Oct
  • Release v0.1.7, 25 Oct
  • Release v0.1.8, 26 Oct
  • Release v0.1.9, 28 Oct
  • Release v0.1.10, 30 Oct
  • Release v0.1.11, 2 Nov
  • Release v0.1.12, 3 Nov
  • Release v0.1.13, 5 Nov
  • Release v0.1.14, 9 Nov
  • Release v0.1.15, 11 Nov
  • Release v0.1.16, 13 Nov
  • Release v0.1.17, 14 Nov
  • Release v0.1.18, 16 Nov
  • Release v0.1.19, 21 Nov
  • Release v0.1.20, 30 Nov
  • Release v0.1.21, 1 Dec
  • Release v0.1.22, 3 Dec
brew install graphicle-ai/tap/graphicle

Median 1.34 s per question on Kubernetes (30,315 files, 0.1.8, 16 cores). 10 pull requests merged from outside contributors.

GitHubkarlex.ai/graphicle

CIEL

Language models that remember millions of tokens

Language models with long-term memory. In synthetic recall tests on the record formats it was trained on, the 0.94B-parameter model, trained only on texts of up to 8,000 tokens, recalls 93% of facts hidden in a 2-million-token text and 91% at 4 million, on one H100.

After the same recall training, a standard transformer recalls 0% of hidden facts at 64,000 tokens.

karlex.ai/ciel

jax-linear-attention

Fast linear-attention kernels for JAX

72.3%MFU, one H100

1.3B Transformer in FP8

68.2%MFU per GPU, 8× H100

1.47× the throughput of flame, FLA’s trainer

Kernels, forward and backward

  • Mamba-1
  • Mamba-2
  • Mamba-3
  • Gated DeltaNet
  • Gated DeltaNet-2
  • KDA
  • RWKV-7
  • GLA
  • mLSTM
  • Softmax attention
  • Sliding window
  • MLA

For NVIDIA Hopper (H100, H200). Gated DeltaNet, DeltaNet, simple GLA and KDA also run on Blackwell (B200, B300), opt-in since 0.2.0. Its Mamba-3 MIMO kernels run 2.70–5.37× as fast as the official recurrence kernels.

pip install "jax-linear-attention[cuda]"

GitHubPyPI

Muse Spark kernels

CUDA for Meta’s 816B‑parameter MoE

Rank 58Serving track

Written for the Muse Spark Open Kernel Challenge: kernels for the decode path of Muse Spark Open, a mixture-of-experts model, and a patch that serves it faster in SGLang.

Decode-layer speed on the judge’s H200; best scored run, 28 Oct 2026.
Serving throughput at stock SGLang’s per-user speed, averaged over 1 to 32 users; run of 15 Nov 2026.
  • NVFP4 decoded in registers
  • One persistent MoE launch
  • FP8 attention
  • Lossless 12-bit BF16 packing

Serving submission

mamba3-minimal

Mamba-3 in one PyTorch file

Written from the paper before official code existed. Mamba co-creator Albert Gu highlighted it.

mamba3.pyexcerpt
1def apply_rope(x: Tensor, angles: Tensor) -> Tensor:2    x1 = x[..., 0::2]  # even indices3    x2 = x[..., 1::2]  # odd indices4    cos_a = torch.cos(angles)5    sin_a = torch.sin(angles)6    x_rot_even = cos_a * x1 - sin_a * x27    x_rot_odd = sin_a * x1 + cos_a * x28    return torch.stack([x_rot_even, x_rot_odd], dim=-1).flatten(-2)

20,000+ views on the launch post.

GitHubLaunch post

Research

All papers

Published as Vikram Lex.

Timeline

Also: a Google TPU Research Cloud allocation, and Universal Kernel Enhancer reached Step 3 of NATO DIANA’s Energy & Power evaluation.

Elsewhere