Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
70e0f4a
helios: fix InitialState hash bypass, TP startup drain hang, VLM tear…
lukealonso Nov 28, 2026
a54a8b8
Bound multimodal decoded-source retention by patch capacity
lukealonso Nov 28, 2026
2bdc847
helios: tolerate omitted closing tags on complete tagged tool calls a…
lukealonso Nov 28, 2026
19c098c
Add DGX Spark CX7 preflight checks to flare doctor (#506)
dbotwinick Nov 28, 2026
9375d67
feat: add gb206 platform support (#502)
wektorz Nov 28, 2026
ba3afb1
Fix CUDA 12 batched copies, Linux ARM64 release portability, and Sele…
lukealonso Nov 28, 2026
85de9ea
Bind core-declared FP32 parameters into text forward graphs
jcartu Nov 28, 2026
9031847
helios,ignition: fix Engram reader bugs and add PLE lookahead publish
lukealonso Nov 28, 2026
f5ce553
Manage prepared core updates in WinUI (#591)
eugr Nov 29, 2026
a39f677
Fix silent export corruption in AOT lowering, zero-init downloads, an…
lukealonso Nov 29, 2026
50c876d
Stride state_transfer._copy_rows tiles within CUDA's gridDim.y limit …
rickybrent Nov 29, 2026
1a5d4d8
Fix Helios TLA+ observed-edge invariant blindspot, retain_snapshot ca…
lukealonso Nov 29, 2026
9933960
helios: preserve JSON types for unconstrained tool parameter schemas
lukealonso Nov 29, 2026
8e40b3a
helios: include graph and rank state in TP deadline errors
voipmonitor Nov 28, 2026
f1bd421
heliopause: skip digest and fsync on disposable export spans
FujitsuPolycom Nov 28, 2026
92a5b88
helios: bump deepseek-recipe for aborted DSML parameter openers (#578)
malventano Nov 29, 2026
fb32cd3
core: recognize all known Ampere and Blackwell GPU platforms and unif…
lukealonso Nov 29, 2026
44f59df
docs: extend CUDA kernel authorship restriction to Claude Opus, Fable…
lukealonso Nov 29, 2026
1fd5d36
chore: sync deepseek-recipe rev 70be62f3 across remaining Cargo.lock …
original-el8 Nov 29, 2026
dad2fa5
Reduce disk offload restore latency and integrated-memory intake over…
FujitsuPolycom Nov 29, 2026
0793b68
Expose Selene metrics on the Docker host loopback (#601)
salignatmoandal Nov 29, 2026
e67d5de
Correct PID namespace guidance for Selene's TLS Compose example (#602)
salignatmoandal Nov 29, 2026
f725658
Coalesce shared ancestor reads across concurrent Selene disk fetches …
FujitsuPolycom Nov 29, 2026
e6bc2b5
helios/engram: defer row-cache insertion until after readiness signal…
FujitsuPolycom Nov 29, 2026
5df8edd
selene,selene-manager,helios: fix pool staging UAF, chain walk DoS, m…
lukealonso Nov 29, 2026
9a054b4
helios,ignition,ci: restore catalog validation, CPU Python tests, and…
lukealonso Nov 29, 2026
4270e90
ignition: set USE_NODE_PRIORITY flag on exported CUDA graphs
FujitsuPolycom Nov 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/helios-lifecycle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
- name: Set up Kani compiler
run: cargo kani setup
- name: Prove sequential validator properties
run: cargo kani --manifest-path helios/Cargo.toml --lib
run: cargo kani --manifest-path helios/Cargo.toml --features runtime-core --lib
2 changes: 1 addition & 1 deletion .github/workflows/native-serving.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Prepare external frontend test fixtures
run: |
python -m pip install huggingface-hub==1.33.0
python tests/frontend/prepare_templates.py --output "${{ runner.temp }}/flare-test-templates" --recipe gemma4 --recipe glm53 --recipe mimo_v2 --recipe nemotron_h --recipe qwen38 --recipe step5
python tests/frontend/prepare_templates.py --output "${{ runner.temp }}/flare-test-templates" --recipe gemma4 --recipe glm53 --recipe mimo_v2 --recipe minimax_m3 --recipe nemotron_h --recipe qwen38 --recipe step5
- name: Install Linux build dependencies
if: runner.os == 'Linux'
run: |
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/python-cpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Python CPU tests

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
pytest:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: astral-sh/setup-uv@v6
- name: Install Linux build dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake ninja-build nasm protobuf-compiler libssl-dev liburing-dev
- name: Sync preparation and test environment
env:
BUILD_NVEP: "0"
FLASHINFER_BUILD_NO_PIP: "1"
run: uv sync --extra prepare --extra test
- name: Run CPU pytest suite
env:
CUDA_VISIBLE_DEVICES: ""
run: .venv/bin/python -m pytest tests/ -q
82 changes: 54 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,38 @@ jobs:
arch: arm64
target: aarch64-unknown-linux-gnu
build-packages: libibverbs-dev
runtime-packages: libibverbs1 ibverbs-providers
runs-on: ${{ matrix.os }}
env:
VERSION: ${{ needs.version.outputs.version }}
ARCHIVE: flare-linux-${{ matrix.arch }}.tgz
steps:
- uses: actions/checkout@v4
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends build-essential cmake nasm pkg-config protobuf-compiler ${{ matrix.build-packages }}
rustup toolchain install "$RUST_TOOLCHAIN" --profile minimal --component rust-docs
rustup default "$RUST_TOOLCHAIN"
- name: Set the release version
run: python3 scripts/set_release_version.py "$VERSION"
- name: Build the CLI
run: cargo build --locked --release --manifest-path flare-cli/Cargo.toml --bin flare
- name: Package the CLI and license notices
run: python3 packaging/archive.py --binary flare-cli/target/release/flare --target ${{ matrix.target }} --output "$ARCHIVE"
- name: Check the archive in a clean Ubuntu 24.04 container
- name: Build and package the CLI in Ubuntu 22.04 (glibc 2.35)
run: |
docker run --rm --volume "$PWD:/src" --workdir /src \
--env RUST_TOOLCHAIN \
--env TARGET="${{ matrix.target }}" \
--env ARCHIVE \
--env BUILD_PACKAGES="${{ matrix.build-packages }}" \
--env HOST_UID="$(id -u)" \
--env HOST_GID="$(id -g)" \
ubuntu:22.04 bash -euc '
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y --no-install-recommends \
build-essential ca-certificates cmake curl git nasm pkg-config \
protobuf-compiler python3 $BUILD_PACKAGES
curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
--profile minimal --default-toolchain "$RUST_TOOLCHAIN" --component rust-docs
export PATH="$HOME/.cargo/bin:$PATH"
export CARGO_TARGET_DIR=/tmp/target
cargo build --locked --release --manifest-path flare-cli/Cargo.toml --bin flare
python3 packaging/archive.py --binary /tmp/target/release/flare \
--target "$TARGET" --output "$ARCHIVE"
chown "$HOST_UID:$HOST_GID" "$ARCHIVE"'
- name: Verify ELF dependencies and check the archive in clean Ubuntu 22.04 and 24.04 containers
run: |
mkdir check
tar -xzf "$ARCHIVE" -C check
Expand All @@ -77,22 +89,36 @@ jobs:
exit 1
fi
done
# The container has only Ubuntu 24.04's libraries, so libraries
# installed on the runner cannot satisfy the executable.
docker run --rm --volume "$PWD/check/flare:/opt/flare:ro" \
--env VERSION --env RUNTIME_PACKAGES="${{ matrix.runtime-packages }}" ubuntu:24.04 bash -euc '
if [[ -n "$RUNTIME_PACKAGES" ]]; then
apt-get update
apt-get install -y --no-install-recommends $RUNTIME_PACKAGES
fi
reported=$(/opt/flare/flare --version)
if [[ "$reported" != "flare $VERSION" ]]; then
echo "::error::flare --version printed \"$reported\"; expected \"flare $VERSION\"."
exit 1
fi
for command in run agent orbit; do
/opt/flare/flare "$command" --help > /dev/null
done'
if readelf -d check/flare/flare | grep -F "libibverbs.so"; then
echo "::error::flare must not hard-link libibverbs.so in DT_NEEDED."
exit 1
fi
python3 - <<'PY'
import re, subprocess, sys
out = subprocess.check_output(["readelf", "--version-info", "check/flare/flare"], text=True)
too_new = sorted({
m.group(0)
for m in re.finditer(r"GLIBC_(\d+)\.(\d+)", out)
if (int(m.group(1)), int(m.group(2))) > (2, 35)
})
if too_new:
print(f"::error::flare requires glibc newer than 2.35: {', '.join(too_new)}", file=sys.stderr)
sys.exit(1)
PY
# Both containers hold only base image libraries (no libibverbs1), proving
# glibc <= 2.35 compatibility (including JetPack 6) and lazy libibverbs loading.
for image in ubuntu:22.04 ubuntu:24.04; do
docker run --rm --volume "$PWD/check/flare:/opt/flare:ro" \
--env VERSION "$image" bash -euc '
reported=$(/opt/flare/flare --version)
if [[ "$reported" != "flare $VERSION" ]]; then
echo "::error::flare --version printed \"$reported\"; expected \"flare $VERSION\"."
exit 1
fi
for command in run agent orbit; do
/opt/flare/flare "$command" --help > /dev/null
done'
done
- uses: actions/upload-artifact@v4
with:
name: flare-linux-${{ matrix.arch }}
Expand Down
17 changes: 10 additions & 7 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ architectural boundary before committing the change.
consumers. Tool/reasoning parsers and image preparation/layout implementations
use independent typed enum identifiers; those identifiers cannot select
scheduling, cache policy, text-graph input packing, or completion behavior.
DeepSeek DSML markup recognition and recovery belong to the pinned
`deepseek-recipe` parser. Helios adapts its actions; do not add a second DSML
parser or reparse raw tags in Helios. Fix the dependency and bump its pin.
- A runtime defect reproduced on one model must be traced through every
supported cache scheme before choosing the implementation boundary. Apply
the fix to every compatible contract. Any restriction must follow from a
Expand Down Expand Up @@ -470,13 +473,13 @@ architectural boundary before committing the change.

## CUDA kernel and model optimization authorship

Claude Opus 5.5 is not reliable for low-level kernel changes in this project.
Do not use it to design or implement low-level CUDA kernels or
changes to existing model fusion and GPU execution optimizations. This includes
CUDA C++, PTX, CuTe DSL, and Triton kernels, and changes to projection packing,
fused arithmetic, stream overlap, or scratch aliasing in optimized model paths.
Do not incorporate its generated changes to these mechanisms through another
contributor or agent.
Claude Opus, Fable, Sonnet, and Haiku models are not reliable for low-level
kernel changes in this project. Do not use them to design or implement low-level
CUDA kernels or changes to existing model fusion and GPU execution
optimizations. This includes CUDA C++, PTX, CuTe DSL, and Triton kernels, and
changes to projection packing, fused arithmetic, stream overlap, or scratch
aliasing in optimized model paths. Do not incorporate their generated changes to
these mechanisms through another contributor or agent.

General PyTorch modeling, recipe integration, checkpoint loading, frontend
processing, preparation orchestration, CLI/runtime work, tests, and documentation
Expand Down
13 changes: 10 additions & 3 deletions docs/TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,20 @@
selene/src/shared/identity.rs), "replaced atomically" for superseded
sessions, the size check ordering relative to pinning, GENERATION_CHANGED
as a claim reason, and the BUDGET refusal advancing a record to the next
tier. Publish the metrics port in
selene-manager/deploy/compose-network.yaml, which binds --metrics to the
container's loopback.
tier.

[ ] Qualify RoCE ring transport beyond GLM-5.3 Flash TP4 on four DGX Sparks:
other recipes, TP2 and TP3, and --roce-chain on hosts cabled as a chain.
Close each when preparation, export, native serving, signed-core
verification, and coordinated shutdown complete on that configuration.
See roce-ring.md.

[ ] Verify ConnectX-7 peer reachability and measure throughput with MTU 1500
and MTU 9000 on direct and switched DGX Spark fabrics before preferring
an MTU in flare doctor. Run the local preflight on Linux RTX Spark N1X
hardware and verify that hosts without a ConnectX-7 adapter skip it.
See cli-design.md#54-flare-doctor.

[ ] Qualify x86_64 RoCE serving on RDMA hardware; its coverage is functional,
over Soft-RoCE. See multi-host.md.

Expand Down Expand Up @@ -346,3 +350,6 @@
on SM103 GPUs alongside --row-shard-prefill. Close each target when
tensor-parallel export with replicated attention weights and native flare
run serving pass on that hardware and transport.

[ ] Guard or stride the 65,535 * 1024 (~64 MiB/uint8 row) gridDim.y ceiling
in ignition/components/state.py row kernels.
41 changes: 39 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ The additional `flare` object reports prepared and selected serving metadata:
| `sampling_defaults` | Prepared seed, temperature, filters, and penalties used for omitted request fields |
| `thinking_token_budget` | Operator default reasoning-token cap for conversational requests; null when unset |
| `sampling_ranges` | Inclusive `{min, max}` bounds for distribution parameters; null fixes a parameter at its prepared default; seed is request-controlled |
| `core_parameters` | Ordered per-request FP32 parameters declared by the model core; each entry contains `name`, `default`, and an optional inclusive `range` with `min` and `max` |
| `max_images_per_prompt` | Context-derived upper bound on image count; image sizes, framing, text, output, and HTTP body size further constrain admission; zero for text-only cores |
| `max_image_tokens_per_prompt` | Context-derived upper bound on image tokens across the entire conversation; text, framing, and output also occupy context; zero for text-only cores |
| `image_feature_window_tokens` | Prepared feature storage per active image request; chunked prefill reuses this storage across windows, so it does not limit total conversation image tokens |
Expand Down Expand Up @@ -444,13 +445,19 @@ the same accumulated output for buffered responses and SSE. Tool arguments are
JSON objects, bounded to 8 MiB. The model parsers buffer tool envelopes until
they are complete, so argument events do not imply incremental generation of an
unfinished call. Truncated tool envelopes are omitted and the response reports
its output limit; recognized but incomplete calls at natural completion are errors.
its output limit. At natural completion, tagged tool parsers accept a non-strict
call whose inner arguments are structurally complete and self-delimited when
only its closing wrapper tag is omitted; undecided openers, bare headers
without a closing argument delimiter, unclosed arguments, trailing text, and
unclosed strict calls remain errors.

DeepSeek reasoning and both DSML tool syntaxes use the pinned official
`deepseek-recipe` state machine. Helios adapts its actions into the same neutral
events, validates nonempty tool names and JSON objects with nonempty, unique
argument names, and publishes each call when its arguments complete. A parameter
marked `string="false"` keeps its JSON type if its text decodes as one value
tag that closes before its string attribute is discarded, so the following
well-formed parameter is parsed normally. A parameter marked `string="false"`
keeps its JSON type if its text decodes as one value
inside the argument object. If decoding fails, Helios retains the original
text as a JSON string. This includes valid JSON exceeding 126 levels of array
or object nesting within the parameter. The combined size of the UTF-8 tool
Expand Down Expand Up @@ -507,6 +514,18 @@ Gemma 4's `<|tool_call>` opener and MiniMax's namespace-prefixed opener always
start a call; they do not take part in this check. DeepSeek
DSML and XTML are parsed by their own parsers rather than this path.
A missing `</parameter>` is closed by the next parameter or function boundary.
When a non-strict tagged call omits its closing wrapper tag at natural
completion, each dialect accepts it only when its argument body is
self-delimited with no trailing non-whitespace: GLM requires at least one closed
`<arg_key>...</arg_key><arg_value>...</arg_value>` pair without `</tool_call>`,
function-tag parsers require at least one closed `<parameter=...>...</parameter>`
without `</function>` (also accepted when closed by `</tool_call>`), Gemma 4
requires a balanced `{...}` argument object without `<tool_call|>`, and MiniMax
XML requires at least one closed parameter element without `</invoke>` (also
accepted when closed by `</tool_call>`). Bare headers without a closing argument
delimiter, undecided openers, unclosed arguments, strict calls missing their
wire closer, and calls cut off by output limits or stop sequences are never
recovered.
Parameter schemas guide
best-effort type conversion; non-strict schemas do not reject invalid values.
Qwen removes one leading and one trailing wrapping newline from parameter values;
Expand Down Expand Up @@ -729,6 +748,24 @@ request-controlled and uses its prepared default when omitted. Sampling defaults
and ranges come from the model author's recommendations declared in the recipe,
except for DeepSeek V4.1's repetition-penalty range based on measured use.

Every generation protocol accepts an optional top-level `core_parameters` JSON
object whose keys name FP32 parameters declared by the loaded model core
(and advertised under `flare.core_parameters` in `/v1/models`). Omitting
`core_parameters` or setting it to `null` uses prepared defaults for all
declared parameters. Non-object values, empty or undeclared names, booleans,
non-numeric values, non-finite numbers, values whose magnitude exceeds
`f32::MAX`, and nonzero values that underflow to FP32 zero return HTTP 400.

An omitted declared parameter uses its prepared default. A declaration with an
inclusive `range` clamps finite FP32 request values to `[min, max]`; a
declaration without a range accepts any finite FP32 value. Resolution
canonicalizes `-0.0` to `+0.0`. Declared core parameters are bound
independently of the six-column sampling layout. Prefix-cache identity hashes
every declared effective parameter in declaration order (length-prefixed name
and canonical FP32 bits) into the prefix root, so requests with different
resolved values cannot share checkpoints. For cores without declared core
parameters, the prefix root hashes only the domain tag and core identity.

The recipes use these default-mode settings. Parameters without an interval in
the table are fixed at their defaults. Bounds span the minimum and maximum values
across each card's task or mode presets, including intermediate values and
Expand Down
Loading
Loading