[shardformer] added embedding gradient check (#4124)

This commit is contained in:
Frank Lee
2023-06-30 16:16:44 +08:00
parent 44a190e6ac
commit ae035d305d
14 changed files with 255 additions and 74 deletions

View File

@@ -70,6 +70,8 @@ class ModelZooRegistry(dict):
for k, v in self.items():
if keyword in k:
new_dict[k] = v
assert len(new_dict) > 0, f'No model found with keyword {keyword}'
return new_dict