Skip to content

Will all of the model weights be saved? #1

@function2-llx

Description

@function2-llx

Hello, thank you so much for sharing this repository! I want to ask a question about the implementation.

According to the code, the ModelCheckpoint callback is used to save the model weights. However, according to my understanding, it will save the whole model weights, while usually only the adapter weights is saved for memory efficiency. Could you please share your thoughts on this?

checkpoint_callback = ModelCheckpoint(
filename="{epoch}-{Val_F1_Score:.2f}",
monitor="Val_F1_Score",
mode="max",
verbose=True,
save_top_k=1,
)
# Run the training loop.
trainer = Trainer(
callbacks=[
EarlyStopping(
monitor="Val_F1_Score",
min_delta=config.min_delta,
patience=config.patience,
verbose=True,
mode="max",
),
checkpoint_callback,
],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions