Skip to content

Increase adapter reuse + consistent reuse pattern - #281

Open
arielge wants to merge 3 commits into
mainfrom
reuse
Open

Increase adapter reuse + consistent reuse pattern#281
arielge wants to merge 3 commits into
mainfrom
reuse

Conversation

@arielge

@arielge arielge commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@arielge arielge changed the title Increase granite reuse + consistent reuse pattern Increase adapter reuse + consistent reuse pattern Aug 4, 2026
@arielge
arielge marked this pull request as ready for review August 4, 2026 13:20
@arielge
arielge requested review from BenjSz and kiszk as code owners August 4, 2026 13:20
backbone = adapter.get_backbone(model)
# emb_mult = backbone.embedding_multiplier
# Falls back to 1.0 for models (Mistral) that don't scale embeddings
emb_mult = getattr(backbone, "embedding_multiplier", 1.0)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was it commented and not rehabilitated?

@arielge arielge Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no reason I can see for keeping it (line 150 covers it completely)

@arielge
arielge force-pushed the reuse branch 2 times, most recently from 4d3580f to f73c60a Compare August 5, 2026 15:00
arielge added 3 commits August 6, 2026 15:53
Signed-off-by: Ariel Gera <ariel.gera1@ibm.com>
Signed-off-by: Ariel Gera <ariel.gera1@ibm.com>
Signed-off-by: Ariel Gera <ariel.gera1@ibm.com>
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.

2 participants