Skip to content

Add resize embedding layer #208

@lllAlexanderlll

Description

@lllAlexanderlll

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions