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 or 3.14
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.0a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pulsarlm-0.1.0a3.tar.gz | 177.6 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| pulsarlm-0.1.0a3-cp314-cp314-manylinux_2_34_x86_64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.34+ x86-64 | Details |
| pulsarlm-0.1.0a3-cp314-cp314-manylinux_2_34_aarch64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.34+ ARM64 | Details |
| pulsarlm-0.1.0a3-cp313-cp313-manylinux_2_34_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.34+ x86-64 | Details |
| pulsarlm-0.1.0a3-cp313-cp313-manylinux_2_34_aarch64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.34+ ARM64 | Details |
Total release size: 33.2 MB
Release files / pulsarlm-0.1.0a3.tar.gz
| Download URL | pulsarlm-0.1.0a3.tar.gz |
|---|---|
| Size | 177.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30d1cd28d0d7d810a6ad1cd26aea8d4147972b09c2facc2d726d42ef0ce3149a
|
|
BLAKE2b-256 checksum How to use checksums |
fe87872399b0305c7fc57e662d2237d9ae5d8244f2f8c5706bcb8651c6d1b678
|
| 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 15, 2026.
Transparency logRelease files / pulsarlm-0.1.0a3-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | pulsarlm-0.1.0a3-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 8.4 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
eb96c4b9ef83a08ef94c6371805f4ec47edb094146449f91213d57719cd6df7d
|
|
BLAKE2b-256 checksum How to use checksums |
7e87287f9b775f2f40c8caa68afb772192bdd19ca123258e2e79d6c570246f89
|
| 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 15, 2026.
Transparency logRelease files / pulsarlm-0.1.0a3-cp314-cp314-manylinux_2_34_aarch64.whl
| Download URL | pulsarlm-0.1.0a3-cp314-cp314-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 8.1 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
f335b81358b78d0c44e11c18630e0281a771586fc0165b10097dc078c9fbf9a6
|
|
BLAKE2b-256 checksum How to use checksums |
d68172a64176bf252a3d16cf1ec8ed12fe011ef805908ddeb9dd617e6cc5971c
|
| 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 15, 2026.
Transparency logRelease files / pulsarlm-0.1.0a3-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | pulsarlm-0.1.0a3-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 |
945565bc69e0fcdb357cf3d1f9e46a56325c4cc4333fbcfd70177fcded0971a1
|
|
BLAKE2b-256 checksum How to use checksums |
59adf8bf10d523a92dc2004c9c8dcfac964d450614d7237adbd3c44667d02519
|
| 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 15, 2026.
Transparency logRelease files / pulsarlm-0.1.0a3-cp313-cp313-manylinux_2_34_aarch64.whl
| Download URL | pulsarlm-0.1.0a3-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 |
75f69f09a60bbf4210cb4585f36efc84731709c24dfa472f5d55757b96f1465e
|
|
BLAKE2b-256 checksum How to use checksums |
54cc35c5455b7335262af625ef96811420ac68296ddbf5c72b2d3e04f6b672b4
|
| 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 15, 2026.
Transparency log