Skip to content

Commit

Permalink
Expected to have finished reduction ~対策
Browse files Browse the repository at this point in the history
  • Loading branch information
isletennos committed Feb 11, 2023
1 parent dd3696c commit c8c08d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions train_ms.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ def run(rank, n_gpus, hps):
hps.train.learning_rate,
betas=hps.train.betas,
eps=hps.train.eps)
net_g = parallel(net_g, device_ids=[rank])
net_d = parallel(net_d, device_ids=[rank])
#modelを変更した場合、"必ず" find_unused_parameters=TrueをFalseにして、計算されていない勾配グラフがあるか確認すること!
net_g = parallel(net_g, device_ids=[rank],find_unused_parameters=True)
net_d = parallel(net_d, device_ids=[rank],find_unused_parameters=True)
#処理速度を取るか(CPU処理)、GPUメモリを取るか…
hubert = torch.hub.load("bshall/hubert:main", "hubert_soft").cuda(rank)

Expand Down

0 comments on commit c8c08d0

Please sign in to comment.