Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Cosmonomic / PulsarLM

An LLM inference engine for persistent chat bots and agents. It allows models to forget old and unimportant tokens to keep context small and inference fast. Best when paired with a memory system for recalling forgotten context.

States are kept in an LRU cache in pinned host memory (default 4 GiB and not persisted).

Only a handful of smaller and older models are implemented right now, but newer models are on the roadmap!

How it works

PulsarLM is inspired by how short-term memory forgets. During inference, custom attention kernels accumulate the attention mass of each token page. At regular intervals, pages that received little attention are removed from the context, while the system prompt and the most recent pages are always kept. Forgotten information can be recovered by pairing PulsarLM with an agent harness that recalls memories. This keeps the context window bounded, reducing the hardware needed for very long sessions.

Removing past tokens from the context breaks the prefix cache that most engines rely on. To work around this, PulsarLM stores snapshots of the context at regular intervals in an external store, and resumes a conversation from its latest snapshot.

Performance

On an RTX 5090, in bf16 with the default settings:

Model Prefill Decode, 1 request Decode, 16 requests
Gemma 4 E2B 15.8k tok/s 184 tok/s 2.4k tok/s
Gemma 4 E4B 11.2k tok/s 113 tok/s 1.4k tok/s
Gemma 4 12B 4.8k tok/s 56 tok/s 681 tok/s
Qwen3 8B 6.7k tok/s 89 tok/s 1.2k tok/s

Prefill is measured on a 5k-token prompt. Decode is one request generating 512 tokens, and 16 concurrent requests generating 256 tokens each.

Quickstart

pip install pulsarlm

# list and download implemented models
pulsarlm models
pulsarlm download gemma-4-e2b-it

# start a chat
pulsarlm chat gemma-4-e2b-it

# or start an OpenAI compatible API server
pulsarlm serve gemma-4-e2b-it

Requirements

  • Linux, x86_64 or aarch64, glibc >= 2.34 (Ubuntu 22.04+, Debian 12+, RHEL 9+)
  • NVIDIA GPU with compute capability >= 8.0 (Ampere or newer)
  • NVIDIA driver >= 580 (CUDA 13)
  • Python 3.13

If installing from sdist or building from source:

  • nvcc >= 13.4
  • gcc >= 15
  • xmake
  • OpenSSL 3 headers

Development

Requires uv and the source build requirements above. To get started:

uv sync

Disclaimer

This project has only been tested on x86_64 with an RTX 5090. Wheels for other GPUs and for aarch64 are built but untested.

Metadata

Release files for pulsarlm 0.1.0a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pulsarlm 0.1.0a2
File Size Uploaded
pulsarlm-0.1.0a2.tar.gz 175.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pulsarlm 0.1.0a2
File Interpreter ABI Platform
pulsarlm-0.1.0a2-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details
pulsarlm-0.1.0a2-cp313-cp313-manylinux_2_34_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ ARM64 Details

Total release size: 16.7 MB

Release files / pulsarlm-0.1.0a2.tar.gz

Download URL pulsarlm-0.1.0a2.tar.gz
Size 175.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9f80de47b0ea6fc90a9809671b58ee3a8b3b60851998992f88955f1579b4eb52
BLAKE2b-256 checksum
How to use checksums
42c580ae857f4a086e434de8b9da6f73a18a575224002621ce1b46887fd6c128
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / pulsarlm-0.1.0a2-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL pulsarlm-0.1.0a2-cp313-cp313-manylinux_2_34_x86_64.whl
Size 8.4 MB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
bedefd023592a0667ead71647af93281b3d7221fb3af054e0167bc06396466e9
BLAKE2b-256 checksum
How to use checksums
5f36bd06374c574fc2eef3b67bf0d7b8852ba30dcc191351bfcdbdb77e774e64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / pulsarlm-0.1.0a2-cp313-cp313-manylinux_2_34_aarch64.whl

Download URL pulsarlm-0.1.0a2-cp313-cp313-manylinux_2_34_aarch64.whl
Size 8.1 MB
Tags CPython 3.13 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
709ffe22dab277b46a6ab26d6954b68299a096f4c55b1e1370e4f8862fe2d481
BLAKE2b-256 checksum
How to use checksums
f63548528470289dca6324da120510df8abe11eb0225bd44334db24a9e9d103f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page