Skip to content

Commit

Permalink
put llama back
Browse files Browse the repository at this point in the history
  • Loading branch information
AllentDan committed Mar 7, 2024
1 parent c85fcf9 commit bff5c43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lmdeploy/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def chat_template(self):
return model


@MODELS.register_module(name='llama')
@MODELS.register_module(name='base')
class BaseModel:
"""Base model."""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_lmdeploy/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_model_config(model_name, meta_instruction):


def test_base_model():
model = MODELS.get('base')()
model = MODELS.get('llama')()
assert model is not None
assert model.capability == 'chat'
assert model.get_prompt('test') == 'test'
Expand Down

0 comments on commit bff5c43

Please sign in to comment.