Skip to content

Commit

Permalink
smollm2: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ysjprojects committed Dec 16, 2024
1 parent 613eb77 commit 1f1e737
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion litgpt/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def apply(self, prompt: str, **kwargs: str) -> str:
"qwen2.5": Qwen2_5,
"qwen2.5-math": Qwen2_5_Math,
"qwq": QwQ,
"smollm2": SmolLM2, # SmolLM uses a different template
"smollm2": SmolLM2,
"salamandra": Salamandra,
}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ def test_against_original_salamandra(model_name, device, dtype):


@torch.inference_mode()
@pytest.mark.parametrize("model_name", ("SmolLM2-135M", "SmolLM2-1.7B"))
@pytest.mark.parametrize("model_name", ("SmolLM2-135M", "SmolLM2-360M", "SmolLM2-1.7B"))
@pytest.mark.parametrize(
("device", "dtype"),
[
Expand Down

0 comments on commit 1f1e737

Please sign in to comment.