Skip to content

Commit

Permalink
ignore import error
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy committed Sep 25, 2024
1 parent 874e94a commit c59eb52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/sglang/srt/model_executor/model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,12 +581,12 @@ def import_model_classes():
for tmp in entry:
assert (
tmp.__name__ not in model_arch_name_to_cls
), f"{tmp.__name__}"
), f"Duplicated model implementation for {tmp.__name__}"
model_arch_name_to_cls[tmp.__name__] = tmp
else:
assert (
entry.__name__ not in model_arch_name_to_cls
), f"{entry.__name__}"
), f"Duplicated model implementation for {entry.__name__}"
model_arch_name_to_cls[entry.__name__] = entry

return model_arch_name_to_cls
Expand Down

0 comments on commit c59eb52

Please sign in to comment.