mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-07 12:01:39 +00:00
[shardformer] added embedding gradient check (#4124)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user