You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Class names and parameter names / values changed between the versions. The PR that added the alora support directly to peft has an example of a fine-tuning script. We should make sure our fine-tuning example complies with that version.
Because of different parameter names / values, I believe aloras trained with this script will also stop working. For example, the original granite aloras do not work with the new peft version:
/opt/homebrew/Caskroom/miniforge/base/envs/gcom/lib/python3.12/site-packages/peft/config.py:165: UserWarning: Unexpected keyword arguments ['alora_invocation_tokens'] for class LoraConfig, these are ignored. This probably means that you're loading a configuration file that was saved using a higher version of the library and additional parameters have been introduced since. It is highly recommended to upgrade the PEFT version before continuing (e.g. by running `pip install -U peft`).
fyi @nrfulton, I believe this will cause aloras trained with the script to not work with our huggingface backend once my rag-intrinsic changes are merged.
Status (2026-10-06): the port completed in PR #422. Suggestion: close as done.
cli/alora/train.py now uses PEFT 0.18.1's native aLoRA support: it imports LoraConfig straight from peft and sets alora_invocation_tokens there, and the IBM activated-lora fork is no longer referenced anywhere in the code. The pin is peft>=0.18.1 in pyproject.toml (native aLoRA arrived in 0.18.0).
On your "make sure it's not broken" note from May: the unit test test/cli/test_alora_train.py asserts the config train.py passes to PEFT and runs in normal CI; the integration test test/cli/test_alora_train_integration.py does a full adapter training run, passed on CUDA at merge time (2026-02-06), and runs in the GPU nightly environment. The aLoRA 101 example was also rewritten against the new API in PR #1557 (merged 2026-08-24).
One expected residue: adapters trained with the old fork still warn about unexpected keyword arguments when loaded under the new peft. That is the normal behaviour for stale artefacts, and the scope of this issue was the training script, so we do not count it as open work.
Activity
jakelorocco commentedon Oct 24, 2025
fyi @nrfulton, I believe this will cause aloras trained with the script to not work with our huggingface backend once my rag-intrinsic changes are merged.
nrfulton commentedon Dec 10, 2025
Assigning @avinash2692 for now, but we can pull in someone else if he doesn't have bandwidth.
planetf1 commentedon Feb 6, 2026
Now looking at this. Planning to update training.
planetf1 commentedon Feb 6, 2026
Updated train command & adding unit tests & integration tests
Noted when adding an integration test
Raised #421 - will test on cuda.
planetf1 commentedon Feb 6, 2026
Works on cuda:
jakelorocco commentedon May 12, 2026
Whoever picks up this issue, please make sure that it's not broken. It may actually be working right now.
planetf1 commentedon Oct 6, 2026
Status (2026-10-06): the port completed in PR #422. Suggestion: close as done.
cli/alora/train.pynow uses PEFT 0.18.1's native aLoRA support: it importsLoraConfigstraight frompeftand setsalora_invocation_tokensthere, and the IBM activated-lora fork is no longer referenced anywhere in the code. The pin ispeft>=0.18.1inpyproject.toml(native aLoRA arrived in 0.18.0).On your "make sure it's not broken" note from May: the unit test
test/cli/test_alora_train.pyasserts the config train.py passes to PEFT and runs in normal CI; the integration testtest/cli/test_alora_train_integration.pydoes a full adapter training run, passed on CUDA at merge time (2026-02-06), and runs in the GPU nightly environment. The aLoRA 101 example was also rewritten against the new API in PR #1557 (merged 2026-08-24).One expected residue: adapters trained with the old fork still warn about unexpected keyword arguments when loaded under the new peft. That is the normal behaviour for stale artefacts, and the scope of this issue was the training script, so we do not count it as open work.
Would it be ok to close this one as done?