Commit 4e918f8
Add general formatter for chat api, with chat template based (#1728)
Add general formatter for chat api, with chat template based on the model tokenizer
The model_name should be overried at runtime (e.g. chat_api_with_tokenizer_chat_template[model_name=ibm-granite/granite-3.1-2b-instruct])
Currently, we already have HFSystemFormat based formats (formats.models.llava_interleave)
which may be used in the same why. But since the name is very confusing, I
add this format).
Co-authored-by: Elron Bandel <elronbandel@gmail.com>1 parent 1ab791d commit 4e918f8
2 files changed
Lines changed: 10 additions & 0 deletions
File tree
- prepare/formats
- src/unitxt/catalog/formats
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments