OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Infrastructure & Serving

Tessera

Tessera is an open-source Python LLM stack for distilling a large teacher model into a smaller student and serving that student. It combines sharded training, Triton and CUDA kernels, a PyTorch inference engine, quantization, a Rust gateway, a JAX reference implementation, and interpretability tools.

Independent OpenViST project profile, based on linked sources.

Tessera — End-to-end experiments with model distillation and inference
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Tessera when you want a codebase spanning teacher-to-student distillation and student-model serving, or when you need a practical project for exploring the components that connect those stages.

Who it is for

  • Developers building or adapting a self-hosted LLM training and inference stack.
  • ML systems researchers exploring distillation, sharding, GPU kernels, batching, or speculative decoding.
  • Engineers who want to compare a PyTorch forward pass with the included JAX/XLA reference.

Documented uses

  • Train a smaller student model from a larger teacher using the supplied distillation losses and sharded training components.
  • Serve the student using paged KV caching, continuous batching, and speculative decoding.
  • Experiment with Triton or CUDA implementations of attention and other model operations.
  • Apply int8 weight-only, AWQ, or FP8 post-training quantization paths.
  • Inspect activations and model behavior with the included interpretability helpers.
Before you choose

Requirements & limits

The repository is public and displays an Apache 2.0 license badge. The documented setup is local and self-hosted.

  • Python 3.10+ and Rust 1.75+ are the README’s stated version requirements.
  • CPU and Apple MPS use a PyTorch reference path; custom Triton/CUDA kernels are written for NVIDIA GPUs.
  • The Rust gateway connects to the Python engine through PyO3, while Python examples are provided for serving and distillation.
  • The project includes tests, examples, and benchmarks; reported M2 Pro benchmark figures use the reference path, not fused GPU kernels.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install Tessera and inspect its presets

Set up the Python project and use its documented information command to list presets and parameter counts.

Before you start

  • Python 3.10 or newer
  • Git
  • PyTorch, installed using the CPU wheel command or a CUDA build

Steps

  1. Clone the Tessera repository and change into its directory.

  2. Create and activate a Python virtual environment.

  3. Install PyTorch, then install the project with its development dependencies using the command below.

    Documented command
    pip install -e ".[dev]"
  4. Run tessera info to list presets and parameter counts.

Expected outcome

A local development installation and a listing of available presets and parameter counts.

Guide limitations

  • This guide covers installation and inspection, not training or serving.
  • The custom Triton/CUDA kernels target NVIDIA GPUs; CPU and Apple MPS use the PyTorch reference path.
Source-based practical guide

Start the documented Rust generation gateway

Build and run Tessera’s Rust gateway and send a generation request to its documented local route.

Before you start

  • Rust 1.75 or newer
  • Tessera repository cloned locally

Steps

  1. Change into the tessera-rs directory.

  2. Run the command below.

    Documented command
    cargo test
  3. Run the command below.

    Documented command
    cargo run --release
  4. Send a JSON POST request to localhost:8080/generate with a prompt and max_new_tokens parameter, as shown in the README.

Expected outcome

The documented gateway process runs locally and accepts the example generation request.

Guide limitations

  • The README does not specify a production deployment configuration.
  • The gateway calls the Python engine through PyO3; this is not evidence of a general application integration protocol.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
10 November 2026
Original website title
zengxiao-he/tessera · Official homepage title · retained in its source language