Commit f734971
Explicit check for existence of chat_template (#1725)
`conversational` does not always imply chat_template. Example:
https://huggingface.co/facebook/blenderbot-400M-distill/blob/main/README.md
In our internal codebase we auto-set `conversational` if a chat template
exists, but the opposite is not always true. The model above has an
explicit `conversational` tag, but no chat template.
See #1722
---------
Co-authored-by: Julien Chaumond <[email protected]>1 parent b3a6468 commit f734971
File tree
2 files changed
+10
-1
lines changed- packages/tasks/src
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1476 | 1476 | | |
1477 | 1477 | | |
1478 | 1478 | | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
1479 | 1484 | | |
1480 | 1485 | | |
1481 | 1486 | | |
| |||
1498 | 1503 | | |
1499 | 1504 | | |
1500 | 1505 | | |
1501 | | - | |
| 1506 | + | |
1502 | 1507 | | |
1503 | 1508 | | |
1504 | 1509 | | |
| |||
0 commit comments