Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

How to set hyperparameters when fine-tune? #175

@WeiyueSu

Description

@WeiyueSu

I fine tune bert in some classification task and get better result, but I have some confuse.

  1. I found the fine tuning is unstable. The f1 has 2% diff when fine-tuning with the same hyperparameters. (I tried to tf.set_random_seed(1024) but the result is still different.)
  2. A classification task with about 80million train data. In the first epoch, the train loss always keep descending, the valid loss descend at first and increase after about 1 million train data is feed. It means model overfit in the first epoch?
  3. Any guide about how to set a better warmup step? I found the fine-tuning performance is highly depend on the epoch num and warmup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions