Skip to main content

Generate per-session LoRA adapters for inference tasks

Project description

Tessera Hypernetwork

Generate per-session LoRA adapters for inference tasks. This is the Python hypernetwork service component of Tessera, which works alongside the Rust core to provide LoRA adapter generation via hypernetwork synthesis.

Features

  • Doc-to-LoRA with SHINE: Generate adapters from document content using SHINE (ICML 2026) for long-context internalization
  • Text-to-LoRA: Generate adapters from natural language descriptions
  • Metadata-to-LoRA: Generate adapters from structured user metadata
  • OpenAI-compatible API: Easy integration with existing tooling
  • FastAPI: Modern async Python web framework

Installation

pip install tessera-hypernetwork

Usage

Start the hypernetwork server:

python -m tessera_hypernetwork.server

Or use the CLI:

tessera-hypernetwork serve

API

The hypernetwork service provides a FastAPI server with the following endpoints:

  • POST /v1/generate - Generate a LoRA adapter for a given prompt
  • GET /health - Health check endpoint

Development

Install development dependencies:

pip install tessera-hypernetwork[dev]

Run tests:

pytest

Integration with Tessera

This hypernetwork service is designed to work with the Tessera Rust core. The Rust core handles semantic caching, vector similarity search, and adapter composition, while this Python service handles the actual LoRA adapter generation via hypernetwork synthesis.

For the complete Tessera system, see: https://github.com/theoddden/Tessera

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tessera_hypernetwork-0.2.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tessera_hypernetwork-0.2.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file tessera_hypernetwork-0.2.1.tar.gz.

File metadata

  • Download URL: tessera_hypernetwork-0.2.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for tessera_hypernetwork-0.2.1.tar.gz
Algorithm Hash digest
SHA256 675a03e05ce9aaf6ce20948e03cb34f2480dcb0c28cbd15caa5f96797b48e8e0
MD5 82a2a803998443ab78876c65172edf99
BLAKE2b-256 ab726797369fdae45a54be6ce8304312ef8aee4ba839f664163b660ad7e88238

See more details on using hashes here.

File details

Details for the file tessera_hypernetwork-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tessera_hypernetwork-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06783ecec8d4801320ee136de2b4613f23ce124fdf6a5f0f9bd5e178983e2ef0
MD5 3b5488604b756eca64e46bf55527823a
BLAKE2b-256 78419f5e4dd36f57b61d9416de34a9bb6747cb21b30906b78739668193cc6a2d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page