thinctx
Inference runtime and OpenAI-compatible server for the ThinCtx models — compact language models whose context memory on the GPU stays small and constant while the full context is held in system memory.
pip install thinctx
thinctx serve thinletter/ThinCtx-Qwen3.5-2B --port 8000 --auth user:pass # OpenAI-compatible endpoint
thinctx chat thinletter/ThinCtx-Qwen3.5-2B # terminal REPL
import thinctx
engine = thinctx.load("thinletter/ThinCtx-Qwen3.5-2B") # a hub repo id or a local released folder
The server implements the OpenAI chat-completions API (/v1/chat/completions, streaming and
non-streaming, tools, enable_thinking); point any OpenAI client at http://host:8000/v1.
Requirements
Linux x86_64, CPython 3.12, an NVIDIA GPU with CUDA 12.8, PyTorch 2.11. Installs transformers,
fla-core and safetensors; causal_conv1d is optional (a pure-torch fallback is built in).
License
Released under the PolyForm Small Business License 1.0.0
(LICENSE): free for companies with fewer than 100 people and under USD 1 million revenue (2019 dollars, adjusted
for inflation). LICENSE adds free use, for anyone, for personal non-commercial purposes, for non-commercial research
and education, and for evaluation and testing (non-production). Production use by larger organisations needs a
commercial licence: info@thinletter.io. The models are derivatives of Qwen3.5 (Apache-2.0); each model repo ships
Qwen's license and a NOTICE.
Metadata
Release files for thinctx 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| thinctx-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.17+ x86-64 | Details |
Release files / thinctx-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | thinctx-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
1d673d2ba2ca0e827b1b8c18197c03ec9a2a68ee621126bbc124da3ca299e1ff
|
|
BLAKE2b-256 checksum How to use checksums |
262078ff00f5f3631053b0cec0d25d02c1b67546f7168db87d910e0672044146
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|