| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| SHA256SUMS | 2026-11-21 | 1.3 kB | |
| amdf-info-0.3.0-win_amd64.zip | 2026-11-21 | 108.3 kB | |
| loom-serve-0.3.0-manylinux_2_39_x86_64.zip | 2026-11-21 | 9.4 MB | |
| loom-serve-0.3.0-win_amd64.zip | 2026-11-21 | 9.3 MB | |
| amdf-info-0.3.0-manylinux_2_39_x86_64.zip | 2026-11-21 | 165.2 kB | |
| hrx_loom-0.3.0-py3-none-win_amd64.whl | 2026-11-21 | 19.2 MB | |
| hrx_loom-0.3.0-py3-none-manylinux_2_39_x86_64.whl | 2026-11-21 | 20.5 MB | |
| hrx_loom-0.3.0+tracy-py3-none-win_amd64.whl | 2026-11-21 | 19.3 MB | |
| hrx_loom-0.3.0+asan-py3-none-manylinux_2_39_x86_64.whl | 2026-11-21 | 164.8 MB | |
| hrx_loom-0.3.0+asan-py3-none-win_amd64.whl | 2026-11-21 | 103.8 MB | |
| hrx_loom-0.3.0+debug-py3-none-manylinux_2_39_x86_64.whl | 2026-11-21 | 119.8 MB | |
| hrx_loom-0.3.0+debug-py3-none-win_amd64.whl | 2026-11-21 | 72.8 MB | |
| hrx_loom-0.3.0+tracy-py3-none-manylinux_2_39_x86_64.whl | 2026-11-21 | 20.8 MB | |
| Loom v0.3.0 source code.tar.gz | 2026-11-21 | 34.0 MB | |
| Loom v0.3.0 source code.zip | 2026-11-21 | 44.2 MB | |
| README.md | 2026-11-21 | 52.7 kB | |
| Totals: 16 Items | 638.2 MB | 0 | |
Loom 0.3.0 makes C++ providers independently composable, lets model programs stream selected checkpoint data while device work continues, and makes Loom Serve discoverable to ordinary launchers and OpenAI-compatible clients. Command plans, native issue costs, and external model observations become inspectable artifacts. Large avoidable memory, JIT, model-preparation, accelerator-residency, and GPU-submission costs also disappear. Versioned controller ABIs keep published v0.2 models running unchanged while new controllers receive exact live token/span counts and explicit HAL ownership.
Behavioral changes and migrations
| Affected surface | v0.2.0 contract | v0.3.0 contract | Migration |
|---|---|---|---|
| Versioned text and sequence controllers | Published v0.2 packages select service "version": 1; bare development exports also follow ABI 1. Controllers receive prepared capacity shapes, and a legacy publish_epoch may end with %progress: buffer. |
ABI 1 remains accepted unchanged. ABI 2 exports use _v2, receive token/span limits at preparation and exact live counts per packet, and append %proposal_counts: buffer to publication. Bare unversioned names follow the current development ABI, now ABI 2. |
A published package selecting version 1 needs no change: its card, source or LoomBC, weights, and tokenizer run on both SDKs. For an unversioned development controller, either migrate every role to ABI 2 or export the existing implementation under _v1 names and select version 1. Rebuild LoomBC only when changing the controller. |
| Model-program HAL handles | v0.2 controllers pass owning semantic hal.buffer, hal.fence, and hal.file values at serving/runtime boundaries. |
The loader accepts those signatures and the new explicit contract: consumers borrow ptr<@Hal...> handles and producers return owning ref<@Hal...> handles. It selects matching runner, parameter, storage, and finite interfaces once from the linked exports. |
Existing version-1 packages need no change. New or migrated controllers should declare imported HAL object identities, borrow before pointer-consuming calls, and release owners after their final source use. This is a serving-boundary choice, not a global rewrite of kernel/HAL types. |
loom_test BUILD declarations |
configs = {...} supplies common bindings; variants = {...} names rows whose nested binding map is also configs. |
config = {...} supplies common bindings; workloads = {...} names rows whose nested binding map is config. Generated CMake rejects the old keywords instead of silently ignoring them. |
Rename configs to config, variants to workloads, and each nested configs field to config. Workload names, case, expansion, and shared module ownership are otherwise unchanged. |
| C++ libraries and tests in Bazel/CMake | Generic loom_library, loom_test_module, and loom_test infer C++ from filenames or input_format = "cxx"; inputopts carries importer options and data commonly carries headers. Test deps supply code without selecting their checks. |
C++ sources use loom_cxx_library or loom_cxx_test. copts, hdrs, srcs, defines, local_defines, and includes state the preprocessing boundary. Direct test dependencies select their own checks and benchmarks; transitive dependencies remain code-only. |
Move each C++ provider or test to the corresponding C++ rule, translate cxx:... importer options into copts, classify public/private headers, and audit direct test dependencies for intentionally selected checks. Generic Loom rules no longer accept input_format or inputopts. |
| C++ fragment origins and neutral memory access | Static and mixed fragment origins are encoded in template arguments. View, vector, atomic, and fragment APIs spell an explicit neutral selector loom::memory_access::none. |
Fragment load/store take one ordinary full-rank coordinate argument; constant and dynamic coordinates share the same interface. Every memory-access family calls the neutral default loom::memory_access::inferred. |
Move fragment template-coordinate patterns into the origin argument. Across all memory APIs, omit the selector when type-derived semantics are sufficient or rename explicit none to inferred. Explicit may_alias, type_disjoint, and volatile policies retain their meanings. |
| Authored Loom contracts linked directly to imported C++ pointer helpers | A C++ pointer is represented inside mixed-source Loom signatures as (buffer, offset). |
A pointer is represented as (buffer, index), preserving signed movement relative to an origin that may itself be an interior address. Native C calls and kernel buffer bindings still exchange their existing single-pointer/single-buffer ABI. |
Change the position parameter and result type in authored Loom declarations, definitions, and calls from offset to index. Ordinary C++ source needs no edit. |
| RDNA4 wave64 matrix workarounds | WMMA/SWMMAC results exchange the middle output-row groups, and row-major transposed loads exchange two reduction groups. Some downstream kernels may compensate with their own row permutation. | Dense and sparse matrix operations follow RDNA4's wave64 row ownership and 32-lane transposed-load mapping on gfx1200 and gfx1201. | Remove any source permutation added specifically to compensate for the v0.2.0 layout. Kernels without such a workaround require no source edit and now produce the ISA-defined result. |
Source-built libhrx C API (not distributed in the hrx-loom wheel) |
Transfer calls take a linear byte count; graph copy/fill records have no geometry field; host waits have no per-call policy; event creation can request blocking synchronization. | Region forms take hrx_transfer_region_t or hrx_fill_region_t, prior linear call shapes use _linear, graph records carry geometry, and all five host waits take hrx_wait_flags_t. HRX_EVENT_FLAG_BLOCKING_SYNC is removed. |
Rebuild source consumers. Rename prior scalar transfer calls to _linear, initialize graph regions, append HRX_WAIT_FLAG_NONE to preserve existing waits, and choose YIELD or ACTIVE only where the caller accepts their CPU/latency tradeoff. HIP signatures are unchanged. |
| Serving telemetry consumers | Request spans do not expose a proposal count; speculative totals can overcount from the configured ceiling; epoch events expose reserved token_slots, token_capacity, and span_capacity. |
Updated publishers report candidates actually presented, including rejected and lookup-supplied candidates. Legacy ABI 1 publishers report null when they omit that output. Epoch events expose scheduled_tokens across both packets instead of reserved capacities. |
Handle nullable proposed_tokens, use the reported value rather than reconstructing it from configured depth, and replace the three reserved-capacity fields with scheduled_tokens. Token selection and verification behavior are unchanged. |
| Bazel-produced Loom bytecode diagnostics | Normal library and test bytecode retains source locations and presentation, so a comment or path edit can invalidate downstream compilation and execution. | fastbuild and opt use stable logical module names and strip diagnostic locations and presentation while retaining semantic source captures. dbg preserves them. |
Use -c dbg when downstream bytecode diagnostics must retain source locations. Standalone loom-import-cxx and loom-link keep metadata unless --strip-debug is requested. |
An ABI 2 publisher's signature tail changes as follows:
:::diff
- %first_results: buffer, %next_results: buffer, %progress: buffer)
+ %first_results: buffer, %next_results: buffer, %progress: buffer, %proposal_counts: buffer)
Entry i is a little-endian u32 for first-packet span i, containing the candidates actually presented to verification across both completed packets. Ordinary work writes zero; a continuation adds its count to the original owner. An ABI 1 publisher that omits this output remains valid and reports proposed_tokens: null rather than fabricating a configured-depth estimate.
New model programs can declare the HAL identities they use and make ownership visible:
:::diff
-func.decl import("runner") @fence(%work: i64) -> (hal.fence)
-func.decl import("runner") @join(%ready: hal.fence)
+type.decl import("hal", "fence") @HalFence
+func.decl import("runner") @fence(%work: i64) -> (ref<@HalFence>)
+func.decl import("runner") @join(%ready: ptr<@HalFence>)
:::text
%ready_owner = func.call @fence(%work) : (i64) -> (ref<@HalFence>)
%ready = ref.borrow %ready_owner : ref<@HalFence> -> ptr<@HalFence>
func.call @join(%ready) : (ptr<@HalFence>)
ref.release %ready_owner : ref<@HalFence>
The same shape applies to buffers and files. In the explicit contract, runner.execute_*, runner.feedback, runner.timestamp, model service entrypoints, and resource consumers take borrowed pointers. runner.fence, parameters.gather, parameters.file, storage.buffer, and finite.batch_buffer return owners. The runtime also binds the original owning-value signatures used by published v0.2 programs. Neither contract blanket-rewrites kernel bindings or unrelated uses of dialect types such as hal.buffer.
See actual speculative candidate publication, explicit model-program resource ownership, versioned controller compatibility, loom_test workload naming, explicit C++ providers, ordinary fragment coordinates, stable library bytecode, and signed C++ pointer positions.
Highlights
- Source-owned resources and publications: Model programs use explicit owner/borrow lifetimes, can overlap checkpoint I/O with device work, and can publish compressed bytecode with verified offline installation.
- Structured, composable C++: Managed objects, typed view subscripts, record and closure kernel arguments, and explicit C++ library/test rules make source structure reusable without changing downstream kernel ABIs.
- Compatible serving with live-work controllers: Published v0.2 models run unchanged beside ABI 2 controllers that receive exact token/span counts; ordinary launchers and clients gain readiness, discovery, counting, and typed errors without custom glue.
- Less memory and cold compilation: Elastic slabs, live-only retained metadata, reachable-shape preparation, legal call frontiers, shared native inputs, and indexed compiler facts remove work before it is allocated or compiled.
- Inspectable compilation and external oracles: Command and native reports expose scheduling, placement, traffic, and issue costs; scenario capture replays independent model observations as NPY fixtures.
- More work per accelerator submission: XDNA pipelines retain repeated code, overlap serial-phase data motion, and consume caller-sized queue prefixes; AMD queues preserve transfer geometry and reuse completions, retired rings, and short PM4 recordings instead of manufacturing submissions.
Author and compose C++ programs at their real boundaries
Manage objects and structured kernels
An imported opaque type can expose ordinary owning and borrowed handles and method-call syntax without defining a native layout or adding runtime method dispatch:
:::cpp
struct [[loom::import("hal", "buffer.v1")]] Buffer;
template <>
class loom::protocol<Buffer> {
public:
[[loom::import("hal", "buffer.length.v1")]]
unsigned long long length(unsigned long long bias) const;
};
[[loom::import("hal", "buffer.create.v1")]]
loom::ref<Buffer> create_buffer();
unsigned long long inspect() {
auto owner = create_buffer();
loom::ptr<Buffer> borrowed = owner.get();
return borrowed->length(0);
}
Typed views use normal subscript syntax even though the compiler retains their columnar representation:
:::cpp
Binding update(Bindings bindings, unsigned index, Binding replacement) {
bindings[index] = replacement;
bindings[index].offset = bindings[index].length;
return bindings[index];
}
Record and closure kernel parameters flatten onto existing leaf arguments. No record object or closure allocation crosses the kernel boundary. Record members retain loom::assume refinements, enums can name coordinates, and the C++ headers project buffer.length, buffer.copy, buffer.fill, and byte-wise comparison directly into existing High IR operations.
See managed external objects, typed view subscripts, and record and closure kernel parameters, and record and buffer authoring.
Compose libraries and tests at their source boundary
C++ translation units now have rules that name their exported headers, implementation headers, preprocessing options, dependencies, and runtime data:
:::python
loom_cxx_library(
name = "progress",
srcs = ["progress.cxx", "progress_private.h"],
hdrs = ["progress.h"],
copts = ["std=c++23"],
deps = [":records"],
)
loom_cxx_test(
name = "progress_test",
srcs = ["progress_test.cxx"],
deps = [":progress"],
execution_profiles = [VM_REFERENCE_PROFILE],
)
Each translation unit imports once, and each test links once before workload and execution-profile expansion. Directly listed libraries contribute their own checks; dependencies of those libraries contribute reachable code without silently selecting independent tests. Header-only libraries forward their interface without producing empty modules.
Normal Bazel builds strip only diagnostics and presentation from the bytecode, so a header-comment or source-path change can stop at import instead of invalidating linking, native compilation, and hardware execution. Semantic source captures such as __FILE__ and __LINE__ remain program data. Use -c dbg when later diagnostics need the original source locations.
The same release simplifies fragment calls by making coordinates values rather than template metadata:
:::diff
- fragment::store<fragment::role::result, loom::memory_access::none, 0, 0>(
- value, tile, fragment::shape{8, 8});
+ fragment::store<fragment::role::result>(
+ value, tile, {0, 0}, fragment::shape{8, 8});
Constant coordinates remain compiler facts, while mixed and dynamic origins use the same interface. The none to inferred spelling change applies equally to view, vector, and atomic accesses. See explicit C++ providers, stable library bytecode, and ordinary fragment coordinates.
Stream and publish model data without loading it all
Resolve checkpoint files without loading their contents
The parameter capability adds an exact file-resolution operation:
:::text
parameters.file(source, key) -> (ref<@HalFile>, absolute_origin, length)
The returned owner retains the original checkpoint file and reuses the provider's imported-file cache. A model borrows it as ptr<@HalFile> while building or submitting a transfer and releases the source owner after its last use. A model can combine absolute_origin with its own row or expert offset and use the existing native queue-read API. Resolution does not read tensor bytes, and replacing the parameter catalog cannot redirect an already-held file reference. Entries without real backing files fail explicitly.
The same change repairs already-accepted GPU file transfers across queue close, uses each native file's actual asynchronous I/O executor, and reports file errors without misclassifying them as GPU failures.
See checkpoint file capabilities and queued I/O repair.
Overlap model-owned file I/O with device execution
HAL file operations accept a finite group of disjoint or strided transfers. A host can provide the records, or a device program can publish the live prefix and count. Source programs retain the request buffer, submit the group once, continue independent dispatches, and join the returned fence at the first consumer:
:::text
device produces missing-row requests
|----> finite HAL file batch ---------|
`----> independent device work -------+--> consume rows
This keeps row-cache, expert-loading, checkpoint-offload, and save policy in model source rather than C. The complete Flash-Next library consumer streams packed PLE rows from the original checkpoint through about 138 MiB of bounded cache and request storage at a 16K epoch, removing 26.82 GiB from resident parameter storage while preserving output and warm-filesystem performance.
The same finite API benefits host-known work. Grouping 256 separate 90-byte reads into one operation reduced submission-through-completion time by about 4.8x in the qualified HAL microbenchmark, while retaining the established single-range bulk path. See finite file transfer batches, source-program I/O overlap, and bounded Flash-Next PLE streaming.
Publish smaller model programs without changing serving inputs
A publisher can stage one model selection with each compiled provider as an XZ download:
:::console
python -m loom.model.release build/model.json \
--asset-lock=model.json.lock --output=dist/model
loom-fetch dist/model/model.json --output=installed/model
The published card separates the installed path from its acquisition recipe:
:::json
{
"path": "program/attention.loombc",
"format": "loombc",
"origin": "program/attention.loombc.xz",
"transform": {"kind": "xz", "version": 1}
}
loom-fetch decodes incrementally with Python's standard library, verifies the installed size and SHA-256, and publishes ordinary .loombc into the existing cache. Serving and linking need no decompressor, and offline installation reuses the verified installed bytes. Across 84 representative providers, the program download fell from 647,120 to 167,072 bytes, a 74% reduction.
Cards, catalogs, and locks can carry optional x- metadata, versioned acquisition transforms, and typed future origins. Discovery can retain an unknown instruction on an unselected preset; selecting a file whose transform, transport, or resolution is unsupported fails before payload transfer. Existing cards require no edit. A publication that opts into these extensions requires a reader that understands them; SDKs before 0.3.0 may reject the extended card.
Catalogs, cards, and lockfiles saved by Windows PowerShell 5.1 are accepted with their leading UTF-8 byte order mark. Installation receipts still hash the original bytes; portable model cards otherwise retain their plain-JSON contract.
See compressed model publication and extensible acquisition and UTF-8 BOM publication loading.
Use Loom Serve with ordinary launchers and clients
Keep published controllers and opt into live workloads
A v0.2 text or sequence package selecting service "version": 1 runs unchanged on 0.3: the same card, Loom source or LoomBC, weights, tokenizer, and prepared stages remain valid. One server can host ABI 1 and ABI 2 models at the same time. The loader reads each linked export signature once, supplies the matching HAL ownership contract, and loads a small capacity adapter only for ABI 1. Qualification inspected 56 public text packages across 129 presets and exercised unchanged text, multimodal, sequence, and image programs.
ABI 2 moves scheduling choice into the model without requiring one compiled program per capacity row. Preparation receives the deployment's total token budget and span capacity; each submission receives exact live token and span counts. A packet containing one 33-token prompt and two one-token decode rows therefore arrives as 35 tokens in three spans rather than the next reserved capacity shape.
:::json
{
"services": {
"chat": {
"kind": "text",
"version": 2,
"components": {"image": {"version": 1}}
}
}
}
The card selects _v2 exports per text or sequence service; attached image and other component versions remain independent. prepare uses token and span limits, epoch and encode_epoch use live counts for both packets, publish_epoch reports actual proposal counts, and sequence capture_epoch receives the live span count. Bare unversioned development exports now follow ABI 2; authors can instead suffix an existing implementation with _v1 and select version 1.
The model-owned shape admits materially smaller registration. In the qualified Flash-Next integration, the earlier target-only controller prepared 363 command programs and issued 3,205 native compilations in about 3.1 seconds. Its ABI 2 companion prepared seven programs with 181 compilations and reached registration in 379 milliseconds. The measurements used different AMD drivers, so they demonstrate the resulting deployment shape rather than a controlled compiler speedup.
See versioned live-work controllers.
Work with standard launchers and API clients
Loom Serve now answers the readiness and discovery probes used by llama.cpp and Gufo launchers. The routes distinguish a process that is alive from a prepared model that can accept inference without activating weights merely because it was probed:
| Request | Response |
|---|---|
GET /health or /v1/health |
HTTP 200 with {"status":"ok"} after a prepared HTTP model is admitted; HTTP 503 before then |
GET /ready or /v1/ready |
The same readiness check, plus the model ID when exactly one deployment qualifies |
GET /models or /v1/models |
The prepared catalog and each service's declared input and output modalities |
POST /v1/chat/completions/input_tokens |
A typed response.input_tokens count from the same rendering and tokenizer policy as generation |
GET /v1/models/{id} returns the same deployment record, including its configured context length, without admitting inference or activating weights. A client-wide query such as default_query={"request_id":"run-42"} now survives discovery, model lookup, buffered or streaming chat, and embeddings; routing still distinguishes the encoded model ID from the query string.
The count route can measure a complete conversation beyond the deployment's generation window, including chat framing, tools, and projected image or video features. A client can therefore measure, trim, recount, and then generate without guessing how model policy expanded the request. Counting remains stateless and does not activate weights or consume KV capacity.
Single-model deployments also accept raw /tokenize and /detokenize requests without a model field. A multi-model server still requires the ID because token IDs belong to one vocabulary:
:::console
curl -fsS http://localhost:8080/tokenize \
-H 'Content-Type: application/json' -d '{"content":"Hello!"}' |
curl -fsS http://localhost:8080/detokenize \
-H 'Content-Type: application/json' --data-binary @-
Multiline JSON and leading whitespace are accepted, and large content-length or chunked uploads can use the standard 100 Continue handshake. Invalid JSON reports its byte position, an unknown model returns HTTP 404 with code: "model_not_found", and a registered model that failed to load returns the retained cause to waiting and later clients. loom-serve --version now reports the installed package version, build profile, and source revision embedded in the qualified wheel or standalone executable.
See formatted requests and actionable errors, launcher readiness and typed prompt counts, complete conversation measurement, single-model tokenizer routes, HTTP continue uploads, individual model lookup, client-wide query parameters, installed version reporting, and typed missing-model errors.
Spend less on model preparation and compilation
Use memory for live state instead of allocation granularity
Elastic storage and command scratch now request exact logical extents while sharing page-sized pieces of larger native backing slabs. In a representative 2,124-input-token, four-output-token serving workload, committed backing fell from approximately 3.30 GiB to 1.49 GiB. Persistent storage fell from 1 GiB to 96 KiB, and retained command workspace fell from 1 GiB to about 216 MiB. Output text and token usage were identical; warm time to first token remained within 0.71% of neighboring baseline medians, so this is a capacity result rather than a speedup claim.
Checkpoint page maps are now sized when a conversation is captured, recurrent views are materialized on first use, and retained-session records no longer reserve duplicate name storage. A representative 141,802-slot configuration avoids a 1.45 GiB unused page-map reservation and reduces each fixed session record from 320 to 240 bytes. Most of the removed virtual reservation was not resident, so the address-space reduction must not be read as equal RSS savings.
Deployments that want predictable first-request growth can opt into loom-serve --memory_prewarm_bytes=1gib or set memory_prewarm_bytes on a named elastic pool. The reserve counts against the pool budget, remains unassigned until requests map what they need, and can be reclaimed under pressure. In the qualified 1,035-token growth case, a 1 GiB reserve eliminated two 64 MiB native acquisitions and matched fixed-backing time to first token; the default remains zero.
See packed elastic backing and on-demand retained metadata, and elastic pool prewarming.
Select a legal native call frontier before pricing it
Leaf-only native targets now price the complete body that can legally survive instead of retaining a cheap leaf and later cloning every required ancestor. Across one unchanged solver library, representative contraction entries shrink from 70,736--74,880 bytes to 46,272--50,400 bytes while compile time falls from 1.26--1.35 seconds to 0.42--0.60 seconds. Symmetric entries shrink from 316,416--324,608 bytes to 62,512--66,608 bytes while compile time falls from 8.94--9.62 seconds to 0.64 seconds. Bidiagonal controls remain byte-identical and within 1.1% compile-time variation.
See native call-frontier selection.
The rest of the cold compiler received the same treatment:
- Different callers selecting the same provider body now reuse one native compilation when caller-only selector facts disappear from that body. A measured two-command preparation fell from 16.162 to 8.428 ms.
- C++ import setup borrows predefined macro spellings and uses bounded syntax tree chunks. A one-line import fell from 492 to 352 microseconds; the largest measured catalog used 3.00 MiB less peak heap, and all 31 measured catalogs imported faster.
- Independent CFG forwarding edits are applied from one proven snapshot instead of forcing a new dominance/fact solve after every arm. One unchanged native image compiled in 665 ms instead of 855 ms.
- Branch refinement now consults retained use and type-dependency indexes before walking a region. A seven-kernel production module avoided 2.51 million operation visits and compiled in 495 ms instead of 576 ms with byte-identical output.
- Register allocation reuses a residency tier while a candidate stays inside the current footprint, removing more than 13 million complete occupancy-model evaluations in the measured cold model deployment.
- AMDGPU allocation can retry a scheduler-created spill with source-order pressure facts before materializing spill traffic. In the published 256-row Q6 residual kernel, the alternate eliminated 142 spill stores and 189 reloads, reduced physical allocation from 76 passes to three, and cut compilation from about 1.06 seconds to 102 milliseconds. Warm process start through model registration fell from 1.59 seconds to 746 milliseconds; the unaffected 512-row control retained the same binary and compile time.
- Sparse value-fact pages now exist only where a worker publishes or reserves facts. One compact 32-worker attention build reduced peak compiler RSS from 593 MiB to 320 MiB while emitting the same image; dense fact users remain at comparable or slightly lower analysis cost.
- C++ arrays of records remain one keyed table until specialization or native lowering instead of expanding into nested conditionals. In the same attention program, linked High IR fell from 307,132 to 236,184 bytes, native JIT fell from 6.281 to 6.065 seconds, and peak JIT RSS fell from 320.0 to 290.9 MiB.
- Bounded runtime strides stay available to the native loop planner. Replacing a repeated multiply with one carried index reduced the qualified x86 integer walk by 9.0% at 128 iterations and 15.5% at 512, with no change to the zero- and one-iteration machine code or compiler peak memory.
- Shared loop motion can hoist invariant descriptor reads behind the original entry condition, so an empty loop still performs no access. The qualified 16- and 1,024-iteration AMDGPU cases ran about 14% faster and matched the explicitly hoisted source without changing compiler benchmark costs.
See native source reuse, bounded C++ importer setup, batched CFG convergence, indexed branch refinement, reused occupancy estimates, source-order spill recovery, sparse value-fact pages, indexed C++ record lookup, runtime-stride recurrence reuse, and guarded invariant-read motion.
Prepare only reachable model shapes and physical memory
A text deployment with a hard session ceiling now prepares the first span bucket that can actually cover that ceiling at each token width. A one-session model went from 66 registered commands to 11, and peak retained command workspace fell from 793 to 191 MiB. In the same workload, process launch to first content fell from 1.068 to 0.638 seconds with elastic backing and from 1.111 to 0.674 seconds with fixed backing.
Admission now prices state, parameters, and the physical slabs needed by the first command before opening a response stream. Dead elastic backing can retire beside disjoint accepted execution, and demanded weights can begin loading while the remaining model preparation continues. These changes make capacity failures early and let already-useful I/O overlap JIT instead of waiting behind a one-shot activation phase.
The accompanying catalog work keeps the same principle in model source. The stock Flash-Next chat preset retains 8.5 GiB of fixed command workspace instead of 16.0 GiB after answering the same requests. Its 16,384-token prefill with four selected outputs uses 2.07 MiB instead of 733.8 MiB of compiled workspace. Qwen 27B token-selection paths also consume projection groups before reusing scratch, with unchanged selected IDs and representative warmed execution time.
See reachable-shape preparation and physical admission, overlapped backing reclamation, demanded weight-loading overlap, and bounded model token-selection workspace.
Inspect the command plan and replay external observations
Compile reports now cover the program around native kernels as well as the kernels themselves. A detailed command report shows dispatch order, attached and standalone barriers, direct grids or indirect count-buffer ranges, launch bindings, parameter placement, and transient storage. Benchmark debug bundles retain the command report, native reports, and exact Low listings together:
:::console
loom-benchmark stages.loom --benchmark=@dependent_stages \
--artifact-bundle-dir=stages.bundle --artifact-bundle-policy=debug \
--compile-report=details
loom-compile-report show stages.bundle/compile_reports/program.json
Native reports add XDNA external/routed traffic, placed-function packet loops, and issue costs. suggest groups repeated sites into one cited investigation; --expand ID or --expand all recovers every matching site when needed. These reports are compiler-version diagnostics for inspection, not a stable command execution or interchange format.
check.file.write.npy is also available inside check.compare, so a scenario can preserve both the actual and oracle realization after comparison. The documented PyTorch workflow captures dense logical values and metadata outside the SDK build, then replays them through ordinary Loom correctness checks and benchmarks without adding a framework dependency.
See command compile reports, pipeline traffic and native issue reports, and external golden capture and replay.
Keep accelerator work resident and transfer geometry intact
Run standalone AIE2P ELFs on the XDNA HAL
Linux and Windows applications can load a buffer-based AIE2P ELF produced by aiecc --get-full-elf, find an export such as main:sequence, and dispatch it with ordinary HAL buffer ranges and completion semaphores. The executable can share an XDNA queue and placement with native Loom programs, including repeated transitions in either direction. The runtime and its conformance suite require neither XRT nor the AIE SDK.
The experimental ABI covers AIE2P buffer relocations and replayable expanded PDI loads. The queue probes firmware-addressed LOAD_PDI support before admitting a standalone image; an incompatible Windows driver retains ordinary Loom execution and rejects the ELF explicitly. Scalar runtime arguments, auxiliary save/restore groups, and AIE4 controller programs remain outside this loader contract. Quantized matrix and vector-add witnesses match independent references, and the maintained cross-platform test alternates standalone and native programs while rebinding and retiring their executables.
See standalone AIE2P ELF execution, Windows XDNA admission, and native-to-standalone transitions.
Keep XDNA code and data motion inside the pipeline
Existing pipeline IR can now retain repeatedly entered XDNA phases after native code sizes are known. A 32-core projection-through-attention invocation writes 529,588 instruction bytes once instead of requesting 44,504,064 bytes of loads inside the 4,096-token key loop. Per-worker catalog fitting and shared command routes then admit joined projection, attention, and output pipelines that the coarser shared budget rejected even though each worker fit its tile.
Serial-phase analysis proves when an earlier writer has finished, allowing a two-slot FIFO to read the next record while the tile computes on the current one. Standalone learned attention saved 20--24% of device cycles across the three qualified request shapes. Finite queues also capture a caller-supplied record count: the 4,096-token causal path moves the same 16,896 records with 64 joins instead of 336 and reduced elapsed time by 21%. Authors keep using pipeline.serial, pipeline.strand, channel bindings, and ordinary counted loops; the compiler owns residence, credit, route, and descriptor proofs.
Strided channel endpoints now retain each record's layout on both sides of the DMA, and concatenated whole records can share one FIFO cursor for grouped stores. Two previously rejected 32-worker attention and feed-forward programs now compile without scalarized operations. Widening the authored contiguous address runs in the qualified projection reduced that phase from 8.963 to 4.949 milliseconds without changing its 131,072 transferred bytes.
Cold establishment now uploads large replacement catalogs through parallel shim-to-SRAM DMA and broadcasts common initial worker text across each row. Across the qualified 28-layer embedding workload, catalog DMA saved about 24 milliseconds per request and row broadcast saved another 17--19 milliseconds across the measured shapes. Both decisions are automatic and retain the direct write form when the payload is too small or the product cannot admit the routes, metadata, or executable directory. Shared scheduling also prices fixed port demand when choosing equivalent instructions, reducing one repeated projection from 1,030 to 958 issued packets with byte-identical results.
See resident XDNA phase placement, double-buffered serial phases, caller-sized finite queues, per-worker code placement, strided XDNA record layouts, packed operand streams, parallel catalog loading, initial worker broadcast, and fixed-resource scheduling.
Carry one transfer through recording and execution
Buffer transfers now preserve one row/slice geometry across immediate queues, command-buffer recording, replay, and target execution. A rectangular transfer no longer needs a host-generated row list. The native HRX API exposes the same hrx_transfer_region_t and hrx_fill_region_t geometry to queues, streams, graphs, and host transfers, while the HIP binding carries existing pitched operations through that representation. In a qualified 128-row HAL case, recorded copy/fill/update completion fell from about 44 microseconds to 14--15 microseconds. A 512 KiB HRX device rectangle fell from 63.86 to 4.77 microseconds, while the 4 KiB linear control remained stable. This generality adds measurable work to recordings dominated by tiny linear shader transfers (up to 13.3% in the 1,000-operation control), while ordinary queue submission and bulk controls remain close.
Native SDMA now carries the rectangle to packet emission instead of publishing one linear packet per row. A pitched 4 MiB copy with 1,024 rows fits one 52-byte packet; qualified 4 MiB upload and download completion improved by 3.24x and 3.39x on the explicitly selected SDMA queue. Default HIP routing is unchanged.
Readbacks also use the memory contract rather than manufacturing transfers. A pageable download can copy directly from existing cached coherent backing; the qualified 1 MiB pitched path improved by 4.9x, while the 64 MiB case still favors explicit registration. Small staged GPU readbacks keep payload and blit arguments in separate rings and use the resident copy shader, reducing the qualified 4 KiB completion from 55.5--57.1 to 30.0 microseconds without changing the host-memory lifetime.
The AMD GPU queues also reuse work that already proves ordering:
- scratch acquire/release can share the dispatch's physical completion while retaining independent logical outcomes, reducing one measured 40-step PM4 decode sequence from 200 native submissions to 120;
- a fully retired PM4 transfer ring exposes its complete contiguous capacity to the next upload instead of splitting at an obsolete cursor;
- short one-shot recordings can be embedded in the primary PM4 submission, bringing an 8 KiB recorded dispatch within 0.45 microseconds of the direct path on both measured Linux and Windows devices;
- the final staged file copy can publish the consumer barrier on Windows, removing a separate close submission when no other window remains;
- an equivalent leading visibility barrier reuses the queue's mandatory input acquisition instead of repeating cache work at every recording boundary; and
- AMDGPU workgroup counts come from kernel arguments, removing the synthesized dispatch packet and reducing one host-local AQL query from 8.70 to 3.42 microseconds while correctly accounting for a partial final workgroup.
Source-built libhrx applications can choose blocking, bounded-observation, or active host waits per call without changing the device worker's completion policy. On the qualified single-dispatch witness, an active caller reduced completion from 29.98 to 11.15 microseconds while increasing calling-thread CPU time from 2.03 to 11.15 microseconds. Blocking remains the behavior-preserving choice and is the migration shown above.
See strided transfer geometry, rectangular HRX and HIP transfers, native SDMA rectangles, coherent pageable downloads, staged readback latency, completion reuse, retired transfer-ring reuse, primary-PM4 short recordings, final-copy file completion, leading-barrier acquisition reuse, AMDGPU workgroup-count arguments, and per-call host wait policy.
Adapt speculative work and bound model storage
The matching library range composes shared Qwen attention and Gated DeltaNet projection stages, reuses speculative projection/vocabulary work, adapts DFlash and MTP proposal depth to the live request cohort, bounds speculative feedback storage by request spans rather than token capacity, and separates service and numerical providers along their actual ownership boundaries.
The seven Flash-Next and five dense-27B catalog presets opt into ABI 2 while retaining their checkpoints, tokenizers, and both source and LoomBC publication forms. Their commands observe each packet's live token and span counts, so one prepared program set serves changing prompt lengths and request cohorts. In the qualified dense-27B comparison, this reduced prepared commands from 343 to 29. Median first-text latency moved from 286 to 174 milliseconds for a 32-token prompt and from 993 to 878 milliseconds for 512 tokens; the 513-token boundary was essentially flat at 967 versus 976 milliseconds, as was a 16-request wave at 1,467 versus 1,453 milliseconds.
Representative complete-request qualification measured 5.2% higher throughput for adaptive DFlash and 5.5% for adaptive Flash-Next MTP under their stated concurrent workloads. Shared attention projection reduced the qualified complete-request medians by about 2.6%, and span-bounded feedback reduced a 16K-token/eight-span pair of result banks from 1,376,496 bytes to 912 bytes. These are workload-specific results from the linked model changes, not generic compiler claims.
Flash-Next recurrent history now launches against the live span count instead of the prepared program's maximum capacity. A 16,384-span program decoding one token drops from 327,680 workgroups per recurrent layer to at most 320. Across 36 recurrent layers, the qualified history work fell from 7.94 to 0.18 milliseconds per generated token, and total dispatch time fell from 77.08 to 68.39 milliseconds per token. The shared Qwen chat policy also participates in the complete-conversation count contract described above, so clients can trim text, tools, images, and video before generation.
See adaptive DFlash, adaptive Flash-Next MTP, span-bounded feedback, shared Qwen provider composition, bounded recurrent-history work, complete conversation measurement, and live token/span dispatch.
Notable correctness repairs
The release also repairs signed view origins and index narrowing; record, array, temporary, capture, and nested-reference borrows in C++; vector precision through legalization; bounded wide division across control flow; timestamp delivery and replay validation; RDNA4 wave64 matrix ownership; XDNA executable alignment and transitions between native and standalone programs; queued file I/O across a full io_uring submission ring; accepted POSIX I/O under worker pressure; descriptor ownership and error delivery during asynchronous close; nanosecond futex and POSIX descriptor deadlines below one millisecond; long tokenizer spans across bounded segment batches; GPU file loading under limited pin budgets; GPU scratch servicing during completion waits; pending load destinations across conditional uses; source-backed handle byte origins; and retained compiler facts across loops, calls, CFG simplification, type-domain transfers, and lowering. These repairs do not require source migration beyond the table above.
Notable pull requests
- Model-program ABI and telemetry: #3360, #3415, #3528
- Serving clients and launchers: #3504, #3508, #3512, #3515, #3521, #3525, #3527, #3529
- C++ authoring and composition: #3334, #3337, #3358, #3371, #3379, #3386, #3393
- Model I/O and publication: #3356, #3391, #3415, #3460, #3531, library [#121]
- Elastic backing, admission, and preparation: #3352, #3355, #3427, #3459, #3464, #3475, library [#123]
- Compile reports and oracle replay: #3402, #3414, #3418
- Compiler and JIT scaling: #3362, #3373, #3398, #3438, #3445, #3462, #3472, #3500, #3511, #3517, #3522
- Accelerator pipelines, transfer, and submission: #3474, #3476, #3439, #3449, #3457, #3494, #3514, #3478, #3513, #3509
- Catalog model execution: library [#111], #113, #114, #115, #116, #117, #124, #125, #127
View the complete v0.2.0 to v0.3.0 comparison.
Install and artifacts
Loom SDK 0.3.0 contains the compiler, runtime, command-line tools, and Python APIs for Linux x86-64 and Windows x86-64.
Install the optimized profile from PyPI:
:::console
python -m pip install hrx-loom==0.3.0
For use outside Python, download the standalone archive for your platform:
loom-serve-0.3.0-manylinux_2_39_x86_64.ziploom-serve-0.3.0-win_amd64.zip
Each archive contains one loom-serve executable with the SDK target providers built in:
:::console
unzip loom-serve-0.3.0-manylinux_2_39_x86_64.zip
./loom-serve --version
For native AMD GPU/NPU discovery and activation checks without installing the SDK, use the standalone amdf-info archive:
amdf-info-0.3.0-manylinux_2_39_x86_64.zipamdf-info-0.3.0-win_amd64.zip
Each contains one executable with libamdf embedded and requires neither ROCr nor XRT. amdf-info --format=json reports the native inventory; amdf-info --device=rdna --activate checks device acquisition and release.
Qualification
The attached wheels are the exact Release, Tracy, Debug, and ASAN profile artifacts qualified on Linux x86-64 and Windows x86-64. SHA256SUMS records the qualified wheels and standalone archives.