Repository navigation
Ripple-65B (ricursive): complete port for local testing — upstream feat/ripple-65b-hip + fork delta - #5
Ripple-65B (ricursive): complete port for local testing — upstream feat/ripple-65b-hip + fork delta#5maplepaladin73 wants to merge 17 commits into
Conversation
…GLU, strix-hip target + overlay kernels Co-Authored-By: Claude Opus 5.5 <[email protected]>
…erp), install hook Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… Q norm off the fused offset kernels The first boot ran on unscaled embeddings (embed_scale module absent on strix-hip, downgraded to a WARN) and applied Q's per-head norm as (1 + w) through the fused deinterleave+qnorm prefill kernel and the strided multi-seq norm. Layer-0 op dumps vs the CPU reference located both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
….cu never rebuilt) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e only) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…pple-65B port What's wired by PR #5 (parser/loader/factory), the architecture-to-building-block table, the completion checklist (elementwise gate dispatch, value-residual V blend, FFN clamp, BENCH.toml/gates, TP=2, optional DFlash2), the local bring-up and verification loop (vLLM parity KL=0, cargo gates, GB10 benchmark gates), and what local needs to provide (GPU access, checkpoints, NVFP4-first decision). Co-authored-by: maplepaladin73 <[email protected]>
|
@maplepaladin73 — please review the completion guide for this port, posted to the repo on this branch:
It covers:
Until items 1–3 land, the model boots and loads but logits are not gateable — the loader says so explicitly in its module docs. |
…taps Ripple's DFlash2 drafter uses 4 taps (base_kernel [2,4,5120], kernel_projection 2560 = 2 x 4 x 320). The kernel and every Rust offset assumed 2 (output-side delta/base offsets, batch staging, the per-block delta scratch sized 4 x hidden/16). 2-tap arithmetic is unchanged (tap 0 seeds the sum as before). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…drafter top-32) gb10 stays 16/512. Top-16 checkpoints select identical tokens (each slice's top-32 contains its top-16; the merge is an exact total order). Rust mirrors are per-tree consts; the bounds test pins each tree to its own pair. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ites Ripple's DFlash2 drafter rotates layers 0-3 and leaves layer 4 (full attention) unrotated. Unset no_rope_layers keeps the fused all-layer path. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…its global layer) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nfig.rs is not compiled) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ig.sliding_layers
DFlash verify (verify_d) and ~15 other model-level paths treat only
LayerType::FullAttention as attention; Ripple's 64 SlidingAttention layers
fell to decode_batched and spec decoding corrupted the output
('The.\n.\n bumper' vs 'The capital of France is Paris.'). The window and
RoPE are per-layer attention settings set by the loader from sliding_layers.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rms) for batched decode + DFlash verify The batched FFN ladder never applied post_attn_out_norm/post_ffn_out_norm: Ripple decoded 'The fibre fibre ...' at C=2 and in every DFlash verify, graphs on or off (f227), while C=1 decode matched the CPU reference. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…(complete Ripple-65B port) Base is now Atlas-Inf/atlas@feat/ripple-65b-hip (97b2858), which implements the full port: parser with sliding_layers convention, weight loader with q|gate interleave, value_residual.rs (layer-0 shadow + V-input lerp), clamped SwiGLU (ricursive kernel constant), PeriNorm arm in batched decode/verify, DFlash2 drafter support, and kernels/strix-hip/ripple-65b. Fork delta on top (additive only): - dispatch.rs: architectures fallback RicursiveForCausalLM -> "ricursive" - parsers/ricursive.rs: set model_type explicitly (makes the fallback land on the ricursive loader) + 2 tests (architectures fallback, NVFP4 quant block) - docs/porting/RICURSIVE_RIPPLE65B.md: rewritten as the local test guide The earlier fork scaffold (standalone loader/parser with per-layer layer_types SWA mapping) is superseded and dropped. Verified: cargo test -p atlas-core ricursive (3 pass), cargo check --workspace, clippy -p atlas-core, fmt clean. Co-authored-by: maplepaladin73 <[email protected]>
11e1bf9 to
5b1e7ce
Compare
|
@maplepaladin73 — this PR now carries the complete, testable Ripple-65B port. Head branch Diff vs upstream branch (our delta, additive only):
Our earlier standalone scaffold (PR #5 v1: own parser/loader, per-layer To test locally: quickstart is in the PR body; full guide at Verified here (CPU-only sandbox): |
kernels/gb10/ripple-65b/ mirrors the strix-hip overlay: - MODEL.toml with kernel_source = qwen3.6-27b (gb10 tree serving the same dense BF16-attention + NVFP4-FFN shapes), plus sampling/behavior/dflash sections (BF16 KV per the vendor reference, DFlash2 window 16384). - nvfp4/KERNEL.toml: extra_nvcc_flags = [--fmad=false, -DHDIM=128] (gb10 common paged_decode_attn defaults HDIM 256; laguna-s-2.1 uses the same remedy). - nvfp4/ripple_ops.cu: ripple_silu_mul_clamp (FFN clamp ±20) + ripple_valres_lerp (value-residual V input) — pure CUDA, verbatim from the strix-hip overlay. - nvfp4/embed_scale.cu: bf16_scale_inplace, same as gb10 gemma-4 trees. Build audit (stub nvcc): target (gb10, ripple-65b, nvfp4) compiles 211 kernels with the overlay; cargo test -p atlas-kernels green; cargo check --workspace green. Guide updated: quickstart now defaults to gb10. Co-authored-by: maplepaladin73 <[email protected]>
|
@maplepaladin73 — GB10 kernels are now included (commit |
Local GB10 smoke (ae34460)Built this branch (
Clean serve refused to start. Two lookups resolve to handle 0:
Target tuple in the error: Smoke with the escape hatch. Benchmark gate not run. There is no
|
Local GB10 smoke (PR #5 comment) refused clean serve: two lookups resolved to handle 0 for target (ripple-65b, sm_121, nvfp4) — w4a16::w4a16_gemm_t_m128_k16 (strix-hip-only kernel) and w4a4::w4a4_gemm_mfast — and there was no BENCH.toml so no PR gate existed for ricursive. Fixes (mirroring upstream PR Atlas-Inf#328's ricursive-ripple-65b target): - kernel_source qwen3.6-27b -> laguna-s-2.1 (HDIM=128 sliding-window paged attention + w4a16 dense FFN tree; same choice as Atlas-Inf#328). - overlay adds nvfp4/w4a4_gemm.cu (glm-5.3-flash's w4a4_gemm_mfast) and KERNEL.toml maps w4a4_gemm = "w4a4" so the lookup resolves. - MODEL.toml gains laguna's [expected_absent.*] sections (incl. w4a16_gemm_t_m128_k16) minus w4a4_gemm_mfast, which the overlay now ships. - new kernels/gb10/ripple-65b/BENCH.toml: unmeasured baselines for bfcl-subset / agentic-webserver / decode-floor / ttft-cold-gate. Build audit: (gb10, ripple-65b, nvfp4) now compiles 202 kernels, 5 overrides; cargo test -p atlas-kernels + atlas-core ricursive green; check --workspace OK. Co-authored-by: maplepaladin73 <[email protected]>
|
@maplepaladin73 — thanks for the GB10 smoke; both issues from your feedback are fixed in
Build audit on the new tree: Also FYI: upstream opened PR Atlas-Inf#328 ( |
Clean-serve retest (
|
|
@maplepaladin73 — acknowledged: clean serve boots at Advised test order on the GB10 host
If KL is non-zero, the usual bisect order is: embed_scale → PeriNorm post-norms → q‖gate interleave → valres lerp → clamp → SWA/NoPE split. Happy to monitor and dig into any failure you post. |
Test pass after the advised order (
|
What
Complete Ripple-65B (
ricursive) port for local testing. Head branch isAtlas-Inf/atlas@feat/ripple-65b-hip(97b28583, AzeezIsh's 14-commit implementation)plus fork-delta commits on top (latest
ae344607).Implemented upstream (verified in-tree): config parser (
sliding_layersconvention),weight loader with the q‖gate per-head interleave (reuses the existing gated path),
value_residual.rs(layer-0 shadow + V-input lerp), clamped SwiGLU (ricursivekernelconstant), PeriNorm arm in batched decode + DFlash verify, per-layer SWA/NoPE, ModelOpt
NVFP4 MLP loading, DFlash2 drafter support.
Fork delta (additive):
RicursiveForCausalLMarchitectures fallback; parser setsmodel_typeexplicitly + 2 parser tests; GB10 kernel target(
kernels/gb10/ripple-65b/: MODEL.toml withkernel_source = "qwen3.6-27b",nvfp4/KERNEL.tomlwith--fmad=false -DHDIM=128, overlayripple_ops.cu+embed_scale.cu); local test guidedocs/porting/RICURSIVE_RIPPLE65B.md.Why
Local needs one branch that builds and serves Ripple-65B end-to-end on GB10.
Benchmarks
None yet — run the guide's loop locally: vLLM
--trust-remote-codeparity (KL driftexactly 0),
cargo test --workspace/ clippy / fmt, thenspark benchmark run <gate> --pull-request-gate --yes.Local test (quickstart)
Full guide:
docs/porting/RICURSIVE_RIPPLE65B.mdon this branch. Remaining: TP=2 forthe 129.6 GB BF16 ckpt (NVFP4 ~33 GB serves one GB10), per-model
BENCH.tomlgates,GPU verification on the host.
Authorship
Upstream port: AzeezIsh + Claude Opus 5.5 (per upstream commit messages). Fork delta
(GB10 kernels, fallback, tests, guide): Mistral Vibe, co-authored by maplepaladin73.
Verification (CPU-only sandbox, stub nvcc)
cargo test -p atlas-core ricursive3/3;cargo test -p atlas-kernelsgreen incl.build audit "compiled 211 kernels for target (gb10, ripple-65b, nvfp4)";
cargo check --workspace,clippy -p atlas-core,fmt --check— clean.