Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pad embeds to multiple #465

Merged
merged 3 commits into from
Dec 1, 2024
Merged

Pad embeds to multiple #465

merged 3 commits into from
Dec 1, 2024

Conversation

cg123
Copy link
Collaborator

@cg123 cg123 commented Dec 1, 2024

Add the ability to pad the output embeddings to a multiple of a user-defined factor when merging tokenizers.

Config syntax example:

merge_method: linear
models:
  - model: model_a
  - model: model_b
parameters:
  weight: 0.5
tokenizer:
  source: union
  pad_to_multiple_of: 64

@cg123 cg123 merged commit 01e60a2 into main Dec 1, 2024
6 checks passed
@cg123 cg123 deleted the pad-embeds-to-multiple branch December 1, 2024 00:21
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