adapters icon indicating copy to clipboard operation
adapters copied to clipboard

Identity Adapter

Open armin-zd opened this issue 1 year ago • 3 comments

I am exploring a personalisation model that has one adapter per user. When there's enough data for a given user, an adapter is trained for that user, otherwise the default model weights are used (no adapters).

The problem is inference with Parallel. A batch contains samples from multiple users, some have adapters and some don't. However, it's not possible to extract default model weights with Parallel, eg. by using None adapter.

What is the best way to achieve this? I'm thinking of making a PR with an Identity Adapter.

Thanks!

armin-zd avatar Jul 07 '23 09:07 armin-zd

This issue has been automatically marked as stale because it has been without activity for 90 days. This issue will be closed in 14 days unless you comment or remove the stale label.

adapter-hub-bert avatar Oct 06 '23 06:10 adapter-hub-bert

This issue was closed because it was stale for 14 days without any activity.

adapter-hub-bert avatar Oct 21 '23 06:10 adapter-hub-bert

Sorry for not responding to this issue! Passing None for forward pass without adapters sounds like a sensible addition especially for Parallel and BatchSplit blocks (functionality would have to be added here).

Re-opening as feature requests. Open for PR, otherwise we'll look into it :)

calpt avatar Nov 19 '23 13:11 calpt