Repository navigation
Description
What users see today
The requirement-check aLoRA on LocalHFBackend never activates, for any granite-4.1 slot. A caller that registers it explicitly gets base-model answers and a one-time WARNING saying the adapter's invocation sequence is missing from the prompt. The default requirement_check() path is unaffected, because it resolves to the LoRA.
Once this is done, the aLoRA activates as published and the differential e2e test passes.
Cause
The published requirement-check/granite-4.1-{3b,8b,30b}/alora/io.yaml instruction starts <requirements>: {requirement}. The Granite tokeniser merges >: into one token, so the declared alora_invocation_tokens (<requirements>) never appear in the prompt. The activation fix in #1685 correctly leaves the adapter off in that case.
The adapter owners have agreed to correct the aLoRA io.yaml files by dropping the colon. The LoRA files need no change, since a LoRA has no invocation sequence. A sweep of every io.yaml in granitelib-{core,rag,guardian}-r1.0 at the pinned revisions found no other affected aLoRA.
To do
- Wait for the corrected io.yaml files in
ibm-granite/granitelib-core-r1.0. - Bump
_CORE_R1_SHAinmellea/backends/adapters/catalog.pyto the new revision. - Remove the strict
xfailfromtest_requirement_check_adapter_moves_scoreintest/formatters/granite/base/test_base_alora_activation.py. Withstrict=Trueit reports XPASS as a failure once the fix is picked up. - Run the core intrinsic e2e tests on a GPU (
-m slow, at least the requirement-check and uncertainty differential tests plustest/stdlib/components/intrinsic/test_core.py) and post the output. CI skips these, and the pin covers every core adapter, so the bump can change more than requirement-check.
Related
- bug(adapters): published
requirement-checkaLoRA never activates, and scores worse than the LoRA #1679: original report. This issue's PR should close it. - fix(backends): activate aLoRA adapters on the LocalHFBackend generate path #1685: the activation fix. It dropped a local io.yaml repair in favour of the upstream correction, and the repair is kept on
planetf1/melleabranchbackup/issue-1679-alora-repairin case it's needed. - feat(adapters)!: prompt fallback for adapter functions without a trained adapter #1654: preferring the aLoRA for requirement-check depends on this.
Activity
chore(adapters): bump granitelib-core pin for fixed requirement-check…