Repository navigation
NPU private routes: optional routes decline to the fast lane - #88
Conversation
A private route can now be optional: an opt-in route for a model_type the fast lane also serves (qwen3). When its unavailable() declines a directory, the fast lane serves it exactly as without the add-on, instead of failing. The choice moves into the registry as route_for(dir, opts, &why), which 1bit unified uses and tests/npu_private_route_test.cpp now covers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Docs7 for 1bit-monster/engine
Commit |
PR Reviewer Guide 🔍(Review updated until commit da251a6)Here are some key observations to aid the review process:
|
… after the kind check) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Persistent review updated to latest commit a3c21fb |
|
Persistent review updated to latest commit da251a6 |
…-Next) (#311) * Bump HRX: llama.cpp e57beb9721af (fork #81-#83, #86-#88) Moves third_party/llama.cpp (1bit-MONSTER/llama.cpp 1bit/hrx-vulkan-patched) 2e5fcf56a24d -> e57beb9721af; hrx-system stays at 51b1739ae5fd. Registry regenerated at the new pin: 290 -> 292 architectures (qwen4exp). Co-Authored-By: Claude Fable 5.1 <[email protected]> * Bump HRX: registry at the committed pin; qwen4exp is mapped now registry/architectures.json was generated against the previous gitlink (registry_pins failed). tests/device_route.sh used qwen4exp as its "not built" example; at this pin Flash-Next runs on HRX, so the test now checks it takes the plain route and keeps zamba2 as the refused example. Docs that listed qwen4exp as unbuilt say it is back. Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
A private route can be marked
optional: an opt-in route for amodel_typethe fast lane also serves (for exampleqwen3). When itsunavailable()declines a directory (say its--npu-optwas not given), the fast lane serves the directory exactly as it would without the add-on. Before this change, any registered route for a type took every directory of that type, and a decline was an error.npu/private_route.h:PrivateRoute::optional(default false, so existing routes are unchanged) androute_for(dir, opts, &why), which returns the route that serves a directory. It returns nullptr when there is no route or an optional one declines, and nullptr plus a reason when a required one declines.app/unified.cpp:npu_model_problem/npu_model_kindand the route lookup at load useroute_for.tests/npu_private_route_test.cpp: coversroute_for(serves, declines with a reason, optional declines to the fast lane).docs/npu.md, "Private routes": one bullet on optional routes.No behaviour change for the 35B route, which is not optional, or for builds without an add-on.
🤖 Generated with Claude Code