Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

project-chronos

Latest version: v0.3.5

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
PyPI package Publisher: Fona
209 Stars
23 Forks
14 Versions
1.3K Downloads
Python Repo language

Scan summary

project-chronos was last scanned on 27 Nov 2026 at version 0.3.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 14 versions; the latest was published on 27 Nov 2026.
  • Findings: No rules fired in version 0.3.5.
  • Downloads: 1,344 downloads.

Versions

14 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.5 LATEST 27 Nov 2026 No rules fired
0.3.4 18 Nov 2026 No rules fired
0.3.3 13 Nov 2026 No rules fired
0.3.3a1 12 Nov 2026 Not shown
0.3.3a0 11 Nov 2026 Not shown

No rules fired in 0.3.5

Findings

Findings for v0.3.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.5; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Project Chronos (Experimental)

A storage-aware MoE stack built for SSD+DRAM hybrid inference, with a full six-stage training pipeline.

PyPI License Python

中文文档

Chronos forward stack. The embedding lookup feeds a prelude of $P$ blocks, a recurrent region of $G$ blocks run $R$ times with conditioning, and a coda of $C$ blocks, then a tied LM head. Prefetch, lookahead and expert residency hang off the recurrent region.


Documentation

Start here: docs/README.md is the full index with reading routes and figures.

Area Chapter What it answers
Entry point OVERVIEW.md How do computation, routing and residency connect?
Entry point KERNEL_ARCHITECTURE.md What is the implementation-exact end-to-end graph?
Reference SYMBOLS.md Axes, units and configuration fields.
Reference THEORY.md Stability, information and resource derivations with assumptions.
Model ATTENTION.md MLA/SWA projection, caching, reconstruction and masking.
Model MOE_ROUTING.md Dispatch, shared averaging, fallback and regularizers.
Model CLUSTER_LOCALITY.md Fixed-partition mutual-information objective.
Model LOOKAHEAD.md Future-token expert-distribution prediction and training.
Model LOOP_DEPTH.md Matched-step and matched-time recurrent-depth experiments.
Runtime LAZY_EXPERTS.md Expert-page loading, admission and materialization.
Runtime RESIDENCY.md Eviction policies and residency counters.
Runtime SPEC_DECODE.md Draft/verify sampling correctness and cost.
Runtime LONG_CONTEXT.md Chunked loss, blockwise attention and recomputation.
Evidence REPRODUCIBILITY.md Evidence and controls required for a claim.
Serving vllm_integration.md Serving interfaces and integration scaffold.
中文 READING_GUIDE_ZH.md 中文阅读路线、核心机制与符号导引。

Why reactive MoE offload breaks down

Mainstream MoE models such as Mixtral, DeepSeek-MoE, and Qwen-MoE make routing decisions at decode time, token by token. The model discovers which experts it needs only when the next token is already on the critical path. If those experts are not resident in VRAM, generation stalls while weights are moved from SSD to RAM to VRAM.

That is not a tuning issue. It is an architectural mismatch.

Most offload runtimes assume the model was originally designed for full VRAM residency, then try to patch storage pressure afterward. On consumer hardware, that usually means the decode loop ends up paying the IO bill over and over again.


Chronos in one line

Move IO into prefill. Move synchronization down to the expert-event level.

sequenceDiagram
    autonumber
    participant Prompt as Prompt tokens
    participant Intent as IntentClassifier
    participant SSD as Clustered SSD cache
    participant RAM as Pinned RAM
    participant H2D as H2D stream
    participant GPU as Decode compute stream
    participant LR as LookaheadRouter

    rect rgb(236, 248, 255)
        Prompt->>Intent: prefill reads the whole prompt
        Intent->>SSD: predict generation-level expert set
        SSD->>RAM: mmap cluster-packed .ctsr files
        RAM->>H2D: enqueue hot experts before first decode token
        H2D-->>GPU: per-expert ready events
    end

    loop every decode token
        GPU->>LR: block-0 hidden state
        LR->>H2D: prefetch experts for t+1..t+K
        GPU->>GPU: forward token t with resident experts
        GPU->>H2D: wait only on the expert events it needs
    end

Two things matter here:

  1. Prefill-time loading: PrefillScheduler and IntentClassifier bulk-load predicted experts before the first decode token.
  2. Per-expert event sync (M3): promote_to_vram(blocking=False) records a torch.cuda.Event on the _h2d_stream, and the compute stream waits only on the experts it actually needs. No more stream.synchronize() for the whole system.

Under a simulated 30 ms SSD delay, the new path keeps 35 ms+ per token of pipeline slack compared with the older blocking path.


v3 kernel: recurrent-depth MoE (0.3.0)

v3 reuses a few physical layers many times. A prelude runs once, each shared recurrent group loops recurrent_depth times with a contractive update h ← h + dt·(block(h + e_loop) − h), and a coda runs once. The 50M demo has 6 physical layers that execute as 18 virtual layers (prelude 1, 4 recurrent layers × depth 4, coda 1).

flowchart LR
    X["tokens"] --> P["Prelude<br/>runs once"]
    P --> G["Recurrent group<br/>MLA / SWA + top-2 MoE"]
    G -->|"loop d = 1..D<br/>contractive step, ACT halt"| G
    G --> C["Coda<br/>runs once"]
    C --> H["LM head"]
    P -. "lookahead source" .-> LR["LookaheadRouter<br/>expert prefetch"]

What changed from v2

v2 v3
Attention inside the loop Iteration 0 only (first_only) Every iteration
KV cache per recurrent layer 1 slot; the every-iteration attention switch rewrote it each iteration (measured prefill+decode vs full-forward gap 0.94) shared_first: Q recomputed each iteration, K/V from iteration 0, so KV slots = physical layers
Routing top-1 (gate received no CE gradient) top-2 + 1 shared expert
MoE dispatch Python loop over experts with .item() syncs Sorted grouped dispatch: gather_mm on MLX, argsort + index_add_ on Torch
Early exit Host sync every step Tensor-only ACT, exact and batch-invariant; decode can exit per token without KV gaps
Decoding Plain autoregressive Recurrent-depth self-speculative decoding

per_iteration (one KV slot per virtual layer) is kept as an ablation. Old v2 checkpoints load as first_only; their logits match a stored golden tensor within 1e-5.

Self-speculative decoding (no extra parameters). The same model drafts γ tokens at a shallow depth and verifies them with one full-depth batched forward pass. Greedy output is token-for-token identical to full-depth greedy. Sampling uses rejection sampling, which preserves the full-depth distribution. After a rejection, the cache is truncated: MLA slices c_kv, and the sliding-window cache keeps window + γ_max entries. Torch (chronos/runtime/speculative.py) and MLX (chronos/mlx/speculative.py, ChronosMLXInferenceEngine.generate(speculative=True)) share the algorithm. Tests cover greedy identity, the rejection distribution and rollback against a fresh prefill on both backends. The Web UI Inference tab has a switch for it, with draft depth and γ.

For the 50M demo checkpoint it is exact but not faster on any runtime we measured (pretrain step-13,996 checkpoint of the demo in demos/translation, greedy, batch 1, the demo's dev prompts, draft depth 1, γ 4; exact conditions in demos/translation/README.md; reports in reports/speculative/):

Runtime Plain tok/s Speculative tok/s Ratio Acceptance
MLX GPU bf16, all experts in DRAM 112.0 107.4 0.96× 42 %
MLX GPU bf16, lazy experts (12 of 216 pages resident) 43.7 32.0 0.73× 42 %
Torch MPS fp32, all experts 32.1 25.9 0.81× 40 %
Torch MPS fp32, lazy experts 17.0 14.7 0.86× 40 %

At this size a full-depth step costs about as much as a batched verify pass. With lazy experts, drafts and verify passes also route to different experts, so speculative decoding read 1.4–1.6× more expert pages from SSD. Greedy outputs were identical in CPU fp32 and Torch MPS fp32. In GPU bf16, near-tie tokens flipped in 2 of 24 sentences. The switch therefore stays off by default.

Precision chain. One compute dtype runs end to end. FP32 is used only where it pays: RMSNorm statistics, SDPA softmax, RoPE tables, router softmax, LM-head logits and optimizer master weights. The MLX↔Torch bf16 bridge is bit-exact. auto picks bf16 on MLX GPU and CUDA, and fp32 on CPU and MPS (MPS bf16 measured slower; see below).

Tooling added in v3

Command What it does
chronos tokenizer Self-built byte-fallback BPE with script-aware pre-tokenization and language-balanced merges; writes an HF-compatible tokenizer.json + chat template
chronos longrun --spec recipe.json (alias run) Time-budgeted MLX run: warmup + cosine per phase wall-clock budget, NaN rollback, bit-exact resume, validation CE; tasks add their own metrics by subclassing LongRun (task_eval)
chronos serve Ollama/OpenAI protocol server on the native runtime (see below)
chronos monitor Read-only training monitor page + JSON API (see below)

chronos.model.factory.fit_config searches for a configuration that matches total and active parameter targets.

Kernel and extensions. The chronos package trains general models and carries no task-specific code. Task tooling lives in extensions that import the kernel. The en↔zh translation demo is one: demos/translation (chronos-translate: corpus pipeline, BLEU/chrF runs, model bundles; see its README). It is not part of the Project_Chronos wheel and is not published on PyPI; install it from a checkout with pip install -e demos/translation. The 50M en→zh status, the released model chronos-enzh-50m-sft (files in demos/translation/models/) with its measurements, and the model bundle are documented in demos/translation/README.md.

Inference and memory options (all off by default). Each option is a config field and a chronos serve / Inference-tab override. Tests compare each one with its reference path on Torch and MLX.

Field Values (default first) Effect
kv_cache_dtype auto, int8 int8 stores MLA c_kv and SWA k/v per token in groups of 32 with a scale; rollback and speculative decoding work on it
mla_decode expanded, absorbed, auto absorbed scores against c_kv without expanding K/V. auto absorbs only short cached chunks; it is opt-in because a bf16 prefill (expanded) followed by absorbed decode drifted from the full forward pass (max logit gap 0.06, measured)
mla_cache_rope false, true Also caches the roped key, trading memory for decode speed
router_scope per_iteration, shared shared reuses iteration 0's experts for the rest of the loop, so fewer experts are resident per token
draft_exit_kl_coef, draft_exit_depth 0, 1 Training term: KL from the shallow exit to the detached full-depth logits, which raises speculative acceptance
max_resident_experts, ram_budget_mb unset Hard caps on the fast tier and the RAM tier. LRU eviction never evicts experts the lookahead router predicts. Prefetch covers every loop iteration of a virtual layer

Web UI: the Tokenizer tab (extract → train → evaluate) and the Serve tab (start/stop chronos serve; the API key goes through the environment, never argv).


Native kernel (0.3.2): minimind removed

Up to 0.3.1a3, Chronos took its config base, RoPE tables, gated FFN, dense attention and trainer utilities from minimind. It loaded them at import time: chronos.deps git-cloned the master branch into ~/.cache/chronos/minimind-master/ and put that folder first on sys.path. 0.3.2 replaces those pieces with chronos/model/kernel.py. Nothing is downloaded, and sys.path is not changed.

Why it was migrated

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases project-chronos

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229