NHA-EX-001 | Software repair

Windows ROCm APU model loading

Unsloth Studio | Scoped compatibility repair

Evidence status

Merged; independent release confirmation

A Windows Strix Halo system could admit a fully GPU-resident model and then incorrectly warn that the host had insufficient RAM. The proposed change preserved the existing safeguards while preventing double-counting of capacity on a verified single ROCm APU. The original reporter confirmed the correction in v0.1.923-beta.

Illustrative project price

£2,700

Illustrative project estimate; VAT excluded where applicable.

Compare example prices

Illustrative engagement scope

StageExample fee
Investigation£900
Corrective engineering£900
Qualification£600
Technical handover£300
Illustrative total£2,700

The merged upstream source correction, exact reversible patch, affected source and upstream regression test, source-level acceptance checks and integration/rollback instructions. The repair is delivered as a Python source change.

Actual engineering deliverables

Complete software repair example

The merged upstream source correction, exact reversible patch, affected source and upstream regression test, source-level acceptance checks and integration/rollback instructions. The repair is delivered as a Python source change.

Included in the ZIP

  • Exact merged source patch and both changed Python files (including upstream pytest tests).
  • AGPL-3.0-only Studio source licence, original notices, upstream provenance and SHA-256 hashes.
  • Portable mock-based checks, recorded 11/11 PASS results, and deployment/rollback instructions.

Implementation excerpt

Excerpt of merged advisory logic: retain the original warning unless verified capacity is greater; the preceding eligibility and exception guards remain part of the complete patch.

if carve_out_bytes > free_bytes:
    message = shortfall(carve_out_bytes)
return message

Package verification

Patch check, byte-for-byte application to the pinned upstream parent, byte-for-byte reverse application and Python AST parsing: PASS. New extracted-function controls: 11/11 PASS. The separate published hardware outcomes are summarised below.

Installation, acceptance and rollback

Preferred installation: use the upstream released version v0.1.923-beta or a later version containing the fix. The supplied patch targets the exact parent of the merged commit; do not apply it to an already corrected or unrelated version. Full Studio integration and the customer workload require separate execution.

Detailed instructions are included in the implementation folder. Download the delivery ZIP.

Technical investigation

Tested environment

Windows / Radeon 8060S (gfx1151); reported 97.12 GiB GGUF model, approximately 36.4 GiB lazy lookup table, 49 GPU-offloaded layers and approximately 96 GiB BIOS GPU carve-out.

  • Compare the initial placement decision with the later host-shortfall advisory for explicit load-mode none and full GPU offload.
  • Trace why a free-memory reading limited by Windows-visible RAM can make GPU-resident weights appear to need host spill.
  • Separate eligible single-APU full-offload cases from partial/CPU offload, other device pools and missing telemetry.

Corrective engineering or recommendation

  • Use the undiscounted model size for the existing conservative carve-out verifier while retaining the normal host estimation policy.
  • Use the larger of verified carve-out capacity and reported free capacity, never their sum. Preserve the original protective warning if verification fails or the device is ineligible.
  • The maintainer subsequently restricted the expensive verifier to cases that would otherwise warn and adjusted the tests. The merged upstream implementation incorporates those maintainer changes.

Published qualification evidence

Published hardware and engineering results are shown below, alongside the separate portable package qualification above.

Evidence or conditionPublished resultScope / qualification
Local source-extracted differential40/40 passedNH Applied PR report; constrained positive and negative controls
Patch application / AST checksPassedNH Applied PR report; not a complete Studio test run
Maintainer Windows AMD CI52/52 matching advisory outcomes26 sizes × full/partial offload; small 0.33 GiB carve-out, not the reporter's 96 GiB setup
Affected reporter earlier candidate49/49 layers offloaded; 0 MiB CPU model bufferEarlier candidate; not the rebased PR commit
Released v0.1.923-betaReporter confirmed model loadsIndependent release confirmation

Qualification scope

The earlier candidate hardware result, NH Applied's rebased PR source-extracted controls and upstream release confirmation are distinct qualification stages. The maintainer's CI used a smaller carve-out; the reported 97 GiB model result belongs to the earlier hardware investigation. Customer-specific compatibility is qualified against the agreed environment and workload.

Engineering handover

Example reproduction and acceptance checklist for a scoped customer engagement.

  • Pin Studio version, model identity, actual launch arguments, GPU type, carve-out and runtime.
  • Record baseline placement/advisory behaviour and confirm that requested loading mode is respected under the affected configuration.
  • Compare a verified single-APU full-offload case with partial/CPU offload, missing verification, multiple GPUs and insufficient verified capacity.
  • Verify corrected loading and protection of genuine shortfalls on the customer's environment; preserve raw results and rollback instructions.

Public sources

Download the sample package

The merged upstream source correction, exact reversible patch, affected source and upstream regression test, source-level acceptance checks and integration/rollback instructions. The repair is delivered as a Python source change. The ZIP also contains the PDF report, technical findings, evidence CSV, acceptance checklist, source references, example scope and SHA-256 manifest.

View original achievement · Confidentiality and NDAs · Discuss comparable work