[Misc]Add customized information for models (#4132)

This commit is contained in:
Jee Li
2024-05-01 12:18:14 +08:00
committed by GitHub
parent c3845d82dc
commit d6f4bd7cdd
9 changed files with 87 additions and 0 deletions

View File

@@ -64,3 +64,8 @@ class RMSNorm(nn.Module):
self.variance_epsilon,
)
return out
def extra_repr(self) -> str:
s = f"hidden_size={self.weight.data.size(0)}"
s += f", eps={self.variance_epsilon}"
return s