Skip to content

Commit

Permalink
don't raise value error since child module searches could fail and be ok
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Apr 1, 2024
1 parent 3b19656 commit 03b0066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_module_class_from_name(module, name):
if module_class is not None:
return module_class

raise ValueError(f"module class {name} not found in {module.__class__.__name__}")
return None


def check_model_config(cfg: DictDefault, model_config: Union[AutoConfig, DictDefault]):
Expand Down

0 comments on commit 03b0066

Please sign in to comment.