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 #213

Merged
merged 1 commit into from
Mar 27, 2024
Merged

Refactor the code in train.py #213

merged 1 commit into from
Mar 27, 2024

Conversation

Shengqiang-Li
Copy link
Collaborator

@Shengqiang-Li Shengqiang-Li commented Mar 19, 2024

  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 device to local_rank instead of rank;

@pengzhendong pengzhendong merged commit 4dd2794 into main Mar 27, 2024
3 checks passed
@pengzhendong pengzhendong deleted the sqli-dev branch March 27, 2024 07:47
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.

2 participants