Skip to content

Respect injected adapter models - #94

Merged
JulesBelveze merged 1 commit into
mainfrom
fix/adapter-model-injection
Aug 1, 2026
Merged

Respect injected adapter models#94
JulesBelveze merged 1 commit into
mainfrom
fix/adapter-model-injection

Conversation

@JulesBelveze

Copy link
Copy Markdown
Owner

LtAdapter accepted a model argument but replaced it during setup. This makes AutoAdapterModel the default loader and configures the supplied instance in place. Existing adapters and classification heads are kept, and adapter activation now uses Stack.

Tests cover local checkpoint loading and preconfigured model injection.

 - Refactored the model initialization to streamline the adapter configuration process.
 - Added tests to ensure that the adapter model loads correctly and preserves its configuration.
@JulesBelveze
JulesBelveze merged commit fcdbe1f into main Aug 1, 2026
16 of 18 checks passed
@JulesBelveze
JulesBelveze deleted the fix/adapter-model-injection branch August 1, 2026 10:10
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