8000 GitHub - looskis/labski: Reproducible local AI research, starting with measured open-weight inference recipes on NVIDIA DGX Spark. · GitHub
[go: up one dir, main page]

Skip to content
looskisPublic

About

Reproducible local AI research, starting with measured open-weight inference recipes on NVIDIA DGX Spark.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

187 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

labski

labski publishes reproducible experiments on local AI hardware. Each research scope keeps its own code, hardware assumptions and results.

Research scope First platform What you can reproduce
Inference recipes Four NVIDIA DGX Sparks Serve open-weight models and measure how checkpoint precision, speculative decoding and the number of Sparks affect inference.
Inkling architecture and decision models CPU audit and a proposed one-Spark experiment Reproduce where five checkpoints put an answer, examine original Inkling’s constrained-answer accuracy, and compare the computation needed at different loop depths.
Inkling-2 recurrent loop retrofits Four NVIDIA DGX Sparks Retrofit Thinking Machines’ Inkling 2 Mini prelude-reset recurrent loop and 0.74M scalar-gate variant onto dense, MoE and hybrid open-weight LLMs with zero P = 1 degradation, unseen-depth (P = 1..5) evaluation and causal message ablations.

Measured on DGX Spark

  • Inkling-2 recurrent loop retrofits on four Sparks. Thirteen concurrent runs retrofitted prelude-reset recurrent looping (max |logits(P=3) - logits(P=1)| = 0.0 at step 0, zero P = 1 forgetting) onto Gemma-4-31B-it (dense), Gemma-4-26B-A4B-it (MoE), Qwen3.8-27B (hybrid GatedDeltaNet) and Qwen3-4B. Frozen-base looping beat 97.9M 1-pass LoRA on unseen deeper OOD hops on Gemma-4-31B-it (13.8% vs 8.8%, OOD NLL 1.74 vs 2.25, cup-swap OOD 10% → 40%), pushed Gemma-4-26B-A4B-it graph BFS to 100% (46.7% → 100%) while doubling LoRA on unseen 5–6 hop pointer chasing (20% vs 10%), and collapsed under cross-pass token shuffling (0.8% on 26B-A4B, 3.7% on 31B). On Qwen3-4B, replacing the 63.2M rank-64 gate MLP with a 0.74M (0.018%) per-channel ScalarPassGate doubled looped ID accuracy (16.0% → 41.0%, 95% CI [+16.7, +33.3 pts], +54 / -10), eliminated numeric mode-hedging (GSM8K 37.5% → 39.6%), beat 66.1M LoRA on OOD NLL (1.73 vs 2.17) and ran 15% faster (179 vs 208 ms at P = 3). Code, 13-run results and figures · Adapter weights on Hugging Face

  • DeepSeek V4.1 Flash 1017 on four Sparks. Direct RoCE decode raised one-client throughput from 37.63 to 43.61 tokens/s and four-client throughput from 61.79 to 72.21. All 60 paired visible outputs matched, including 20/28 correct short answers and eight exact lookups. Reproduce both transports

  • MiMo-V2.6-Pro MOPD on four Sparks. The 1.02T model served one client at 5.85 tok/s and four at 11.74 aggregate. Only the head needed the 419 GB GGUF. Placement, quality and GPU energy

  • MiMo-V2.6-Flash MOPD. One Spark served Q2_K_S at 20.23 / 38.72 output tok/s for one / four clients. The Q8_0 MTP2 sidecar delivered 22.37 / 43.32. One draft token was within 0.3% of two at both client counts, while three slowed generation. On two Sparks both conversions scored 81/112 constrained answers, with seven gains and seven losses. Q2_K_S led MXFP4 at four clients, 38.82 vs 28.00 tok/s. Quality and GPU energy

  • Ling 3.1 Flash 1019 on one Spark. Use two native draft tokens for one client (22.67 tok/s) and one draft token for four (46.65 aggregate). At four clients, four draft tokens dropped below ordinary decoding. All three depths scored 15/28 constrained letters. ARM64 recipe, timing and output checks

  • Step-5 Preview on four Sparks. Storing only each rank’s experts cut fleet weight files from 1.37 TB to 485.27 GB. Full and compact layouts returned 8/8 exact lookups and reached 57.88 and 53.49 aggregate tokens/s at four clients. On a new set of 64 inventories, a live client that closed reasoning and retried once when its reader declined returned 64/64 correct values. It cut mean GPU energy 53.2% (340.9 to 159.6 J/query) and median latency from 2.004 to 0.875 s. Storage and serving · Lookup policy and measured costs

  • MiniMax M3.1 Flash on one Spark. The ARM64 Maya build served the 93 GB XS release at 30.25 aggregate tok/s for four clients. Capping GPU-resident experts lowered that to 23.93. Both runs scored 14/28 and passed eight exact lookups. 7085 Placement, quality and energy

  • Full GLM-5.3 on four Sparks. The 753B model with a 6-bit output head delivered 32.85 generated tok/s for one client and 63.33 aggregate for four. Both it and the BF16 output head scored 21/28, with one item gained and one lost. Recipe and measurements

  • Thinking Machines Inkling 2 Small on four Sparks. The native 393.48 GB checkpoint delivered 39.34 generated tokens/s across two clients and 2.98 GPU J/output token on the switchless ring. Six inventory lookups were exact up to 3,597 input tokens. Storing only the expert rows each rank uses cut allocated weight storage 72.31%. The four-rank replay matched all 14 longer final answers and six lookups byte for byte and delivered 40.68 tok/s at two clients. Paired measurements Rank-local storage · Reproduce the run

  • Qwen3.8 Flash-Next on one or two Sparks. The one-Spark NVIDIA FP4-Local checkpoint reached 33.98 tok/s for one client and 72.86 aggregate for four, using 1.08 and 0.52 GPU J/token. The tuned two-Spark recipe reached 21.73 and 64.96 tok/s and returned the first delta sooner at one client. Recipes, accuracy and raw timing

  • Selective BF16 with Qwen3.8 27B. A mixed-first policy reproduced all 112 held-out BF16 answer letters while escalating 42 questions. It used 21.4% less two-Spark GPU energy than always querying BF16. Mixed alone was fastest and scored 73/112 against 72/112 for BF16 and the policy. Live replay, accuracy and cost

  • Qwen3.8 27B with DFlash2. On one Spark, increasing the KV pool from 3 to 5.5 GiB with seven proposals raised four-client throughput from 48.20 to 93.86 tok/s and cut the median time to first streamed text from 2.10 s to 296 ms. A 5.25 GiB run admitted three clients and queued one, as predicted. Adding 256 MiB cut p95 time to first text from 3.70 s to 296 ms. All three settings scored 19/28 on short answers and 8/8 on lookups. Timing, GPU energy and queue measurements At the original 3 GiB budget, BF16 recurrent state reached 94.78 and 104.34 tok/s across two launches versus 53.73 in a fresh FP32 run. The BF16 repeat admitted all four clients together. All three launches matched 28 short answers, 16 lookups and 62 short-passage likelihoods. On 6,144-token windows, only 19/49,144 per-token likelihoods matched between state settings, with perplexity 7.1389 for FP32 and 7.1091 for BF16. Doubling the prefill budget from 2,048 to 4,096 moved the first FP32/BF16 top-token disagreement from positions 2,113–2,141 to 4,097–4,116 across eight windows. Total disagreements fell from 3,144 to 1,630 of 49,144. Direct greedy choices matched at 61/64 and 62/64 fixed prefixes respectively. Precision trade-off

  • Code editing with Qwen3.8 27B. On one Spark, current-request suffix drafting reached 50.74 tok/s against 12.07 for ordinary decoding, with all 12 single-client edits matching token for token. Four clients reached 151.76 aggregate tok/s. Unrelated prose showed much smaller gains or a loss, depending on the proposer. Four draft policies, paired outputs and GPU energy

  • Qwen3.8 27B on one Spark. Mixed FP4 delivered 2.78–2.79× the BF16 throughput on the same machines at one client. BF16 scored 83/112 on a short-answer diagnostic and mixed FP4 scored 74/112 and 78/112 on the two machines. Timing, paired answers and recipes

  • One, two or four Sparks for Qwen3.8 27B. One client reached 12.40, 20.46 and 33.94 output tok/s on one, two and four Sparks. Four clients reached 110.77 tok/s on the switchless RoCE ring using stock NCCL. With native BF16 those four delivered 54.33 tok/s and retained every sampled correctness verdict from the single-Spark BF16 baseline. Transport, quality and GPU energy At 32 clients with 9 GiB KV per GPU, TP2 reached 354.39 tok/s at 0.21 GPU J/token. Two replicas reached 296.47 tok/s with a shorter p95 first-token wait (455 vs 587 ms). On the second pair, 3.25 GiB per GPU was enough for all 32 short requests and 351.58 tok/s on TP2. Replica comparison

  • K2 Horizon 32B on one Spark. At four clients, BF16, FP8 and NVFP4 generated 13.15, 21.04 and 40.81 tok/s. FP8 used 43.0% less GPU energy per token than BF16 and increased perplexity by 0.98% on 30,935 matched predictions. NVFP4 used 66.1% less energy and increased perplexity by 8.2%. Three-way precision comparison

  • Nanbeige4.3-33B precision on one Spark. At four clients, official BF16, official FP8 and community NVFP4 delivered 14.10, 24.14 and 43.50 aggregate tok/s. Free-answer scores were 63, 63 and 60 out of 112. GPU energy fell from 2.54 J/token with BF16 to 0.80 with NVFP4. Three precision recipes and paired answers

  • GLM‑5.3‑Flash on two Sparks. Two 8K-chunk runs improved 32K-input throughput by 10.8–11.2% over a 4K chunk. The two chunk settings scored 22/28 and 23/28 respectively on a short-answer check. A separate TensorFold kernel experiment gained 4.3% on the same-length workload while matching the control's sampled answers and likelihoods. Chunk-size experiment · Kernel patch and quality checks On TensorFold 1.3.0, tuned dispatch improved cold prefill 1.75–3.40% in a fresh two-launch replay. Both modes matched all 14 first tokens in each matched pass. Repeating the same prompts within either mode reproduced 6/14, and both scored 1/24 on long inventory retrieval. Tuned dispatch, repeatability and retrieval

  • Qwen3 0.6B on four replicas. Sixteen concurrent clients reached 1,894 aggregate output tok/s across four Sparks. At four clients a single Spark was faster. Replication crossover

The inference queue tracks 44 ranked open-weight releases, with pinned checkpoints and one-, two- and four-Spark capacity estimates. Leaderboard and weight inventory

About

Reproducible local AI research, starting with measured open-weight inference recipes on NVIDIA DGX Spark.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0