catgrad-llm

Crates.iocatgrad-llm
lib.rscatgrad-llm
version0.1.1
created_at2025-07-10 13:04:39.817165+00
updated_at2025-07-10 13:04:39.817165+00
descriptionTools for LLMs built with catgrad
homepage
repositoryhttps://github.com/hellas-ai/catgrad
max_upload_size
id1746387
size145,518
Paul Wilson (statusfailed)

documentation

README

Catgrad LLM

LLMs in Catgrad.

The intent is to have three main self-contained modules:

  1. models allow building LLM graphs: the core tensor network defining the model
  2. run (WIP) is for running LLM graphs given a 'package' of additional information like weights and tokenizers.
    • A stateful interface managing interpreters & KV caches etc.
    • Manages packaging configuration & weights from e.g. huggingface
  3. serve are abstract interfaces for serving LLMs as token iterators

This is not reflected by the current state of the code. What's missing:

  1. A definition of the "package" of supporting information in run
  2. Shape polymorphism in graph definitions (so graphs don't need to be rebuilt every run)

Future changes: split run into generic "tensor runtime" and "llm code" where: - tensor runtime: (run graph with arrays only; state/cache aware, tokenization-unaware, runnable on remote host) - LLM code: tokenization, chat templates, etc.

Commit count: 316

cargo fmt