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

Refactor the code in train.py #212

Closed
wants to merge 2 commits into from
Closed

Refactor the code in train.py #212

wants to merge 2 commits into from

Conversation

Shengqiang-Li
Copy link
Collaborator

  1. The initialization consists of seven parts: (1) Get the dataset and data loader; (2) Get the tts model; (3) Dispatch the model from cpu to gpu; (4) Get the optimizer; (5) Load the checkpoint; (6) Get the scheduler; (7) Get the tensorboard summary.
  2. Set the model device via local_rank instead of rank;
  3. Get the global step from the checkpoint directly.

@Shengqiang-Li Shengqiang-Li deleted the sqli-dev branch March 19, 2024 10:34
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