mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-31 23:35:47 +00:00
move empty cache
This commit is contained in:
parent
ff3ca30a35
commit
f7e532511c
@ -285,7 +285,6 @@ class GRPOConsumer(BaseConsumer):
|
||||
kl = all_reduce_mean(torch.mean(torch.stack(kl)).to(loss.device), self.plugin).data
|
||||
mean_kl.append(kl)
|
||||
mean_loss.append(all_reduce_mean(loss, self.plugin).data)
|
||||
torch.cuda.empty_cache()
|
||||
else:
|
||||
|
||||
policy_model_logits = self.policy_model(
|
||||
|
Loading…
Reference in New Issue
Block a user