"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "fc0309615e42c32989e060e733d871e16617874e"
Unverified Commit f7278638 authored by Will Berman's avatar Will Berman Committed by GitHub
Browse files

ema step, don't empty cuda cache (#2563)

parent b36cbd4f
...@@ -203,8 +203,6 @@ class EMAModel: ...@@ -203,8 +203,6 @@ class EMAModel:
else: else:
s_param.copy_(param) s_param.copy_(param)
torch.cuda.empty_cache()
def copy_to(self, parameters: Iterable[torch.nn.Parameter]) -> None: def copy_to(self, parameters: Iterable[torch.nn.Parameter]) -> None:
""" """
Copy current averaged parameters into given collection of parameters. Copy current averaged parameters into given collection of parameters.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment