Skip to content

Conversation

@yichunk
Copy link
Contributor

@yichunk yichunk commented Jul 9, 2025

  • Add replace method for string type and update unit tests.
  • Support slice expression with omitted start or end index and update unit tests.
  • Fix the bug that in operator does not work for string type.
  • Update testing script to support fetching chat-template.jinja when the template is not in tokenizer_config.json.

Test passed with SmolLM 3B model:
https://huggingface.co/HuggingFaceTB/SmolLM3-3B

Copy link
Contributor

@ochafik ochafik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yichunk !!

yichunk added 2 commits July 10, 2025 17:51
- Add `replace` method for string type and update unit tests.
- Support slice expression with omitted start or end index and update unit tests.
- Fix the bug that `in` operator does not work for string type.
- Update testing script to support fetching `chat-template.jinja` when the template is not in `tokenizer_config.json`.

Test passed with SmolLM 3B model:
https://huggingface.co/HuggingFaceTB/SmolLM3-3B
@ochafik ochafik merged commit 5856862 into google:main Jul 11, 2025
1 check passed
@yichunk yichunk deleted the smollm3 branch July 11, 2025 17:10
ochafik added a commit to ochafik/minja that referenced this pull request Nov 2, 2025
* Enable SmolLM 3 template.
- Add `replace` method for string type and update unit tests.
- Support slice expression with omitted start or end index and update unit tests.
- Fix the bug that `in` operator does not work for string type.
- Update testing script to support fetching `chat-template.jinja` when the template is not in `tokenizer_config.json`.

Test passed with SmolLM 3B model:
https://huggingface.co/HuggingFaceTB/SmolLM3-3B

* Update test cases of string replace.

---------

Co-authored-by: Olivier Chafik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants