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

Add resize embedding layer #208

Open
lllAlexanderlll opened this issue Aug 5, 2024 · 0 comments
Open

Add resize embedding layer #208

lllAlexanderlll opened this issue Aug 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lllAlexanderlll
Copy link
Contributor

lllAlexanderlll commented Aug 5, 2024

Feature request

If new tokens are introduced and must be trained, resizing the embedding matrix is needed. This is supported for HF checkpoints but not for Modalities checkpoints.

Motivation

Extend pre-trained models with new tokens, which can be trained to fulfill special purposes, e.g., tool call start token, assistant end generation token, etc.

@lllAlexanderlll lllAlexanderlll added the enhancement New feature or request label Aug 5, 2024
@lllAlexanderlll lllAlexanderlll changed the title Add special tokens and resize embedding layer Add resize embedding layer Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant