Skip to content
View AbrahamCete's full-sized avatar

Block or report AbrahamCete

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
AbrahamCete/README.md

Hi, I'm Abraham

Software engineer working on local LLM inference on AMD hardware. I mostly work on the HIP backend of TensorFold, on a Ryzen AI Max+ 395 (Strix Halo, gfx1151).

Every change I ship keeps the output byte-identical: the same tokens and the same logits. Each comes with receipts:

  • alternated served A/B runs;
  • kernel traces;
  • the project's kernel contract, with launch records taken from the release toolchain.

TensorFold: 48 merged pull requests

Highlights

  • #4993: a stream count whose rounds run over twice the load-time table gets its plain price in its first rounds (fixes #3939).
    • First drafted batches of four streams on Qwen3.6-35B-A3B run 24% faster at 32K, 47% faster at 64K, and 61% faster at 131K tokens of context, with the same tokens (next release).
  • #1694: wide stream rounds reuse cached weights.
    • Qwen3.8-27B serving is +31% faster at 8 streams and +47% at 16 on gfx1151, with the same tokens.
    • An independent run on RDNA2 (gfx1030) measured +11.6% at 8 streams.
  • #1663: the matrix-core prompt tile without selects and divisions.
    • Cold prefill of Qwen3.8-27B is 32% faster at 2K and 24.5% faster at 64K (TensorFold 1.2.0).
  • #1932: the planned decode score.
    • HIP decode is 7.5% to 18.9% faster at 32K and 64K context on Qwen3.6-35B-A3B and Qwen3.8-27B (1.2.2).
  • #3508: the planned decode walk scores head size 256 without element tests.
    • Decode is 14% to 32% faster at 131K and 258K tokens of context on Qwen3.6-35B-A3B and Qwen3.8-27B, with the same bits (1.2.10).
  • #4754: a drafted decode round reads a stream's keys and values once, not once a row (with #4673's score half; fixes #3811).
    • With drafts on at 131K and 258K tokens of context, the score half decodes 1% to 5% faster and the values half another 2% to 6%, on Qwen3.6-35B-A3B and Qwen3.8-27B, with the same bits (1.3.5).
  • #3728: a lone stream's copy windows are priced from its own timed rounds.
    • With drafts on, decode is 15% to 39% faster at 131K and 258K tokens of context on Qwen3.6-35B-A3B and Qwen3.8-27B, with the same tokens (fixes #3390; 1.3.0).
  • #3273: a plain prompt of 1 or 2 rows takes the 2-row K-parallel tile on gfx1151.
    • A resumed prompt with 1 or 2 rows left reaches its first token 48% and 64% sooner on Qwen3.8-27B, and 18% and 27% sooner on Qwen3.6-35B-A3B (1.2.10).
  • #2878: the routed prompt tile takes K-parallel passes for experts of few rows.
    • Cold prompts of 64 to 256 tokens on Qwen3.6-35B-A3B are 11% to 22% faster at one stream, with the same tokens (1.2.8).
  • #3521: a routed prompt plan keeps the shared expert whole, and gfx1151 takes the GEMM tile from 33 rows.
    • Prompt passes of 33 to 63 rows on Qwen3.6-35B-A3B take 8% to 20% less time, with the same bytes (fixes #3161; 1.3.3).
  • #4207: Qwen prompts take the policy's 4,096-row prompt step on a lone RDNA 3.5 iGPU.
    • On gfx1151 the cold first token of Qwen3.6-35B-A3B comes 9% to 18% sooner from 2K to 64K prompt tokens, with the same bytes (1.3.5).
  • #1855: narrowest stream columns.
    • Qwen3.6-35B-A3B chat is about 18% faster with drafts on, and Qwen3.8-27B about 5% (1.2.2).
  • #2455: sampled streams draft with the graphed head chain.
    • Sampled serving of Qwen3.6-35B-A3B with MTP drafts is 4.1% to 11.6% faster on gfx1151, with the same tokens.
  • #2582: @davidtai's prompt DeltaNet kernels from #1667, carried onto main with gfx1151 receipts.
    • Prompts take 5-6% less time on Qwen3.8-27B and 6-10% less on Qwen3.6-35B-A3B, with the same bytes.
  • #1830: shared rounds timed at the served streams.
    • Multi-stream drafting no longer drops into a slower mode (fixes #1695, 1.2.2).

In progress: Inkling 2 Mini on HIP (gfx1151)

Porting Thinking Machines' Inkling 2 Mini (26.4B MoE, 5.4B active, 3-pass looped core) natively to TensorFold's HIP backend slice by slice under #4265 and #4274. Each operation has a named HIP baseline (HIP-DOT-Q4 for dense/expert/unembed dots, W32 orders for norms and loop gates), every faster kernel matches its baseline bit for bit, and every kernel follows the checkpoint's config or refuses by name.

  • 10 slices merged on main: attention (#4633, #5499), tiny-inkling2-mini fixtures (#5369), serve-flag refusals (#5034), text weights loader (#5031), loop kernels (#5012), NVFP4/MXFP8 routed experts (#4994), per-stream state and prompt snapshots (#5728), dense projections (#5797), and logits (#5800).
  • In review (final two kernel-contract slices):
    • #5809: short convolutions, conv-state rewind, and MoE router under named baselines.
    • #5813: embedding norm and attention residuals under HIP-RMS-W32 and HIP-RETRIEVE-W32.
  • Verified locally, queued behind #5813: full forward pass, native serve lane adapter and prompt cache, byte-exact HIP Graph and kernel optimizations, DSpark speculative drafter, 23-layer BF16 vision tower, and 64K served receipt on gfx1151 (43.6 tok/s at 1 stream and 105.2 tok/s aggregate at 4 streams in code with DSpark, bit-exact under HIP-DOT-Q4).

Done: DFlash2 speculative decoding on HIP for Qwen3.8-27B

Six chained PRs, all merged (#2314, #2477, #2545, #2726, #3665, #3918); parts 1 and 2 ship in 1.2.5, part 3 in 1.2.6, part 4 in 1.2.8, and parts 5 and 6, the serving wiring and depth control for shared rounds, in 1.3.4: at one stream and temperature 0, serve decodes Qwen3.8-27B 2.25x faster in code and 1.87x in chat. Measured locally, the whole chain decodes 2.5x faster in code and 2x in chat at one stream, with the same tokens.

Proposed in an issue, landed by the maintainer

  • #3765: fetch-inactive on prompt attention's v_permlane16, which drops a copy the tile never needs; cold prompts are 1.5% to 2.7% faster at 131K to 261K tokens on both checkpoints, with the same bits. Landed as #4080, 1.3.2.
  • #4061: a Qwen engine with no MTP head gets a plain price for its shared rounds; in a local prototype four streams with copies run 10% to 43% faster on Qwen3.8-27B at 8K to 131K tokens of context, and 12% to 42% faster from 32K on Qwen3.6-35B-A3B served without MTP drafts, with the same tokens. Landed as #4312, 1.3.3.

All 48 merged pull requests

PR Change Release
#1542 opt-in -Dhip-relax-branches for gfx1100 under clang 21 1.2.0
#1648 banded prefill WMMA GEMM: row blocks share weights 1.2.0
#1663 matrix tile inner loop free of selects and divisions 1.2.0
#1685 prompt GEMMs write the activation type directly 1.2.1
#1788 prompt attention keeps its probabilities in registers, 6 waves 1.2.1
#1830 shared rounds timed at the served streams and row buckets 1.2.2
#1855 narrowest stream columns at one- and two-row launches 1.2.2
#1932 decode score: four keys a warp on long spans 1.2.2
#1961 decode softmax stats and partial sums load sixteen ahead 1.2.2
#2007 decode router reads the bf16 router rows the model holds 1.2.3
#2099 prompt residual add and post-mixer norm in one launch 1.2.3
#2117 prompt conv writes q, k and v to their own rows 1.2.3
#1694 wide stream rounds reuse cached weights 1.2.3
#2233 decode records re-derived with the release hipcc (HIP 7.16) 1.2.3
#2247 decode tail issues a row's loads before its branches 1.2.4
#2374 resumed == fresh checks start their fresh runs from nothing 1.2.4
#2314 DFlash2 part 1: tap a drafter's layers into each stream's ring 1.2.5
#2455 sampled streams draft with the graphed head chain 1.2.5
#2477 DFlash2 part 2: drafter config and affine-4 weights 1.2.5
#2652 shared rows timed with a token a row, lone windows on one token 1.2.6
#2661 shared rows' token stride coprime to the vocabulary's span 1.2.6
#2087 skewed-row matrix tile, three blocks a WGP on gfx1151 1.2.6
#2582 @davidtai's prompt DeltaNet kernels, carried with gfx1151 receipts 1.2.6
#2674 CUDA's DFlash2 drafter config refuses a tap layer named twice 1.2.6
#2545 DFlash2 part 3: drafter kernels, each with a planted control 1.2.6
#2706 GPU test of Qwen3.8-Flash-Next's fused prompt prep through the layer, bit for bit 1.2.7
#2726 DFlash2 part 4: the drafter's engine for the qwen3_5 target 1.2.8
#2878 routed prompt tile takes K-parallel passes for experts of few rows 1.2.8
#3273 a plain prompt of 1 or 2 rows takes the 2-row K-parallel tile on gfx1151 1.2.10
#3508 the planned decode walk scores head size 256 without element tests 1.2.10
#3728 a lone stream's copy windows are priced from its own timed rounds 1.3.0
#3521 a routed prompt plan keeps the shared expert whole; gfx1151 takes the GEMM tile from 33 rows 1.3.3
#3665 DFlash2 part 5: serve runs Qwen3.8-27B with its DFlash2 drafter on HIP 1.3.4
#3918 DFlash2 part 6: a drafted round's holds run only the rows their drafts need 1.3.4
#4754 a drafted round's rows share one read of a stream's keys and values, with #4673's score half 1.3.5
#4207 Qwen prompts take the policy's 4,096-row prompt step on a lone RDNA 3.5 iGPU 1.3.5
#4633 Inkling 2 attention kernels for HIP, the first slice of Inkling 2 Mini on gfx1151 1.3.5
#5369 tiny-inkling2-mini config and model header fixtures, so kernels are checked at a second geometry 1.3.8
#5034 Inkling 2 Mini's serve flags HIP cannot run are refused before any load 1.3.8
#5031 Inkling 2 Mini's text weights load on one HIP rank, through CUDA's loader made generic 1.3.8
#5012 Inkling 2 Mini's loop kernels (cross-pass message and message gate) at hidden 2,304 and 256 under named W32 baselines 1.3.8
#4994 Inkling 2's routed experts (NVFP4 and MXFP8) under HIP-DOT-Q4, the HIP column's serial dot baseline 1.3.8
#5499 Inkling 2's attention at each layer's relative-bias extent (128 and 256 beside Mini's 1,024) 1.3.8
#5728 Inkling 2 Mini's per-stream state and byte-exact prompt snapshots on one HIP rank 1.3.8
#5797 Inkling 2's dense bf16 projections under HIP-DOT-Q4 and shared inkling2_family module 1.3.8
#5192 HIP prompt attention tile: a row with only NaN scores gives NaN as float64 does (refs #1821) 1.3.8
#5800 Inkling 2's logits under HIP-DOT-Q4, HIP-SOFTCAP-Z, and HIP-TOP1 next release
#4993 lanes: a stream count whose rounds run over twice the load-time table gets its plain price in its first rounds (fixes #3939) next release

Popular repositories Loading

  1. hermes-desktop-skins hermes-desktop-skins Public

    Pixel-art wallpaper themes for Hermes Desktop

    3

  2. hermes-pantheon hermes-pantheon Public

    Forked from Adolanium/hermes-pantheon

    Ten gods for your Hermes desktop: themes in dithered classical marble. Install once, switch with /skin.

  3. TensorFold TensorFold Public

    Forked from ashhart/TensorFold

    LLM Inference Engine for Metal, CUDA and Vulkan.

    Zig

  4. AbrahamCete AbrahamCete Public