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 f073d46 commit f65667b
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 @@ -71,7 +71,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 f65667b

Please sign in to comment.