Repository navigation
feat(hip): Inkling 2 Mini's serve flags HIP refuses before any load - #5034
Draft
AbrahamCete wants to merge 1 commit into
Draft
AbrahamCete wants to merge 1 commit into
AbrahamCete wants to merge 1 commit into
Conversation
A new HIP family namespace, families/inkling2/hip_native.zig, holds Inkling 2 Mini's model_type and its refusal(o), the hook the HIP host calls before any load or group join. It is not registered yet. One HIP rank, text only, no external draft controls: it refuses --tp other than 1, classifier-free guidance, --loops, --mtp-drafts and --mtp-confidence, --precision, --prompt-precision int8, --learn and --learn-conversations, and a non-finite or huge --prompt-cache-gib. Flags the host already refuses (--drafter, --rope-yarn, --slide, --kv-cache fp8, --speed-up, a negative budget) are left to it. The tests go through hip_families.refused in test-inkling2-hip-host.
Owner
|
Thank you @AbrahamCete. The refusal helper rejects the unsupported modes before a future family load, including explicit zero MTP depth, all precision overrides and nonfinite cache budgets. Shared refusals still follow it. This looks safe to land as the unregistered namespace and host-test slice. Mini HIP serving remains unavailable at this head. When combining the loader slice, retain both test artifacts in the build dependency list.
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Inkling 2 Mini has no HIP family yet, so the HIP host has no list of the flags it must refuse for it. This adds that
list as the family's
refusal(o), the hookrefused(F, o)innative/hip_families.zigcalls before any load: oneof the two HIP5 pieces that need none of the questions on #4274 (issuecomment-7158137239). The namespace,
families/inkling2/hip_native.zig, holds onlymodel_typeandrefusal. It is not innative/hip.zig's registryyet; registration,
open, admission and the prompt-cache store come with the rest of HIP5, as #5031's loader waitsfor its caller.
Refused, for one rank and text only (each message starts
inkling2_loop:):--tpabove 1cuda_native.zig:87)native/inkling2.zig:58); the CLI stops it first--loops:59)--mtp-drafts(zero included),--mtp-confidence:60) and CUDA (cuda_refusal.zig:56)--precision, every value:61)--prompt-precision int8--learn,--learn-conversations:63)--prompt-cache-gibnot finite or above 1,048,576:64); a negative budget is the host's own refusalNot repeated here, because the HIP host or server already refuses or handles them for every family:
--drafter(
hip_drafter.zig:31, until the family setstakes_drafterwith HIP6),--rope-yarn,--slide,--ssd-experts,--ple-on-ssd,--fsr-route-trace,--speed-up,--kv-cache fp8,--record,--spill-giband--vision(thehost starts text-only).
Two choices you may want otherwise:
--precision fullis refused, as Metal does; CUDA accepts it and does nothing with it.--loopstext, "the HIP engines run no looped model" (native/hip.zig:97), becomes wrong for thisfamily once it is registered. The family's check runs first, so its message is the one a user sees; I left the
host's text for the registration pull request.
adapter, and registration, admission and the prompt-cache store remain, and so does HIP2.
maina3c3e5c. Commit:atc overlap --json(ATC 0.9.6, 2026-11-25 11:27Z, base a3c3e5c): no overlap among the pull requests it read, butthe run is incomplete (limits on pull requests, their files and time). My own feat(hip): Inkling 2 Mini's text weights on one HIP rank, through CUDA's loader made generic #5031 adds its test to the same
test-inkling2-hip-hoststep inzig/build/hip_contract.zig; whichever lands second rebases.Checks on this head
maina3c3e5c.python3 tools/zig/lean_check.py, on the base and on this head: 164 and 164, 0 new.zig build test-inkling2-hip-host -Dhip=true: 25 of 25 passed, 14 of them new. They go throughrefused(F, o),the path the host calls: one test for each refused flag with its exact message, one that the family reads
inkling2_loop, one that one rank's text settings pass, and one that the shared HIP refusals (--rope-yarn)still follow the family's.
zig build test-inkling2-host: 45 of 49 passed, 4 skipped.zig build teston a clean tree of this head: 13,602 passed, 93 skipped, 1 failed. The failure isstage_hip_test"every staged call on HIP memory equals the reference, whole and in parts", which feat(hip): Inkling 2 Mini's routed experts under the kernel contract, bit-equal to loop_model #4994 reportsfailing on
mainon this machine as well.zig build test -Dhip=trueon the same tree: 1,509 passed, 21 skipped, and the samestage_hip_testfailed.zig fmt --check build.zig zigandgit diff --check: clean.native/hip_families.zigon its own, withengine_apiandhip_servefrom the LightOnhost module, the one family module the contract step receives.
hip_native.zigthe step stops withunable to load "hip_native.zig": FileNotFound; with arefusalthat returns null, 11 of the 14 fail (themodel_type, plain-settings and
--rope-yarntests pass, as they should).tensorfold serve: the family is not registered yet, so the host still answers "the nativeHIP engine has no backend for inkling2_loop checkpoints yet; serve with --engine python" (
native/hip.zig:280).Receipt
n/a: the family is not registered, so nothing reaches inference. The host tests above are the evidence.
Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (n/a: no engine)--drafter, no slower than without it, greedy and sampled. (n/a: no engine)