Skip to content

fix(tests): test-dflash n_layer assignment after hparams getter refactor#103

Merged
marksverdhei merged 1 commit into
htfrom
fix/test-dflash-n-layer-getter
Jun 12, 2026
Merged

fix(tests): test-dflash n_layer assignment after hparams getter refactor#103
marksverdhei merged 1 commit into
htfrom
fix/test-dflash-n-layer-getter

Conversation

@marksverdhei

Copy link
Copy Markdown

Unbreaks CI: every CUDA/cpu PR build since the #93 upstream sync (2026-06-07) fails compiling tests/test-dflash.cpp — the sync vendored upstream's llama_hparams getter refactor (n_layer is now n_layer_all - n_layer_nextn), but the test still assigned hparams.n_layer.

n_layer_nextn defaults to 0, so n_layer_all = 5 preserves the tests' intent exactly.

Verified locally: test-dflash compiles and all cases pass (sm_86 build, All DFlash unit tests passed.).

Found while triaging PR #102's CI — the failures predate that branch; once this lands, re-running #102's checks should clear the CUDA/cpu legs.

🤖 Generated with Claude Code

The upstream sync (#93) vendored the llama_hparams getter refactor:
n_layer is now a getter returning n_layer_all - n_layer_nextn, with
the settable member renamed. test-dflash still assigned the getter,
breaking every CUDA/cpu CI build since 2026-06-07.

n_layer_nextn defaults to 0, so n_layer_all = 5 preserves the tests'
intent exactly. Verified: test-dflash compiles and all cases pass.
@marksverdhei marksverdhei merged commit 001662c into ht Jun 12, 2026
3 of 7 checks passed
@marksverdhei marksverdhei deleted the fix/test-dflash-n-layer-getter branch June 12, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant