From 6e97ff6b3c47287168b65d7a880ef96aa86542e7 Mon Sep 17 00:00:00 2001 From: Jean Mercat Date: Wed, 17 Apr 2024 18:42:23 -0700 Subject: [PATCH] small fix in hf_config --- open_lm/utils/transformers/hf_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open_lm/utils/transformers/hf_config.py b/open_lm/utils/transformers/hf_config.py index fa04515a..edf3839f 100644 --- a/open_lm/utils/transformers/hf_config.py +++ b/open_lm/utils/transformers/hf_config.py @@ -40,5 +40,5 @@ def __init__( def set_params(self, params: Params): self.tie_word_embeddings = params.weight_tying - for field in fields(params): + for field in fields(Params): setattr(self, field.name, getattr(params, field.name))