baKon
b64b0de7de
convert: --chat-template, bake a template a release ships none of
...
DeepSeek's release carries no chat_template.jinja and its tokenizer_config.json
names none, so an HF-direct container answers /v1/chat/completions with 501
unless the serve passes --override-chat-template. The converter now takes the
template itself and bakes it into the vocab section, overriding whatever the
checkpoint carried or lacked. Trailing newlines are stripped as for a sibling
chat_template.jinja, and an unreadable or empty file is refused rather than
skipped. Both paths are covered: text_test reads the file, convert_test
converts the tiny checkpoint and reads the template back out of the container.
(cherry picked from commit 6381f61794cd61d1f86925fd23ea61e1b1544dfe)
2026-10-28 13:50:16 +01:00
..
2026-10-27 16:47:35 +01:00
2026-10-16 18:25:18 +02:00
2026-10-27 16:47:35 +01:00
2026-10-24 13:12:28 +02:00
2026-10-27 18:16:26 +01:00
2026-10-27 16:47:35 +01:00
2026-10-27 16:47:35 +01:00
2026-10-16 18:25:18 +02:00
2026-10-27 16:47:35 +01:00
2026-10-27 16:47:35 +01:00
2026-10-28 12:20:10 +01:00
2026-10-20 23:07:33 +02:00
2026-10-16 18:25:18 +02:00
2026-10-16 18:25:18 +02:00
2026-10-27 20:59:42 +01:00
2026-10-27 18:15:58 +01:00
2026-10-19 15:34:15 +02:00
2026-10-27 18:16:26 +01:00
2026-10-28 12:48:13 +01:00
2026-10-28 11:37:51 +01:00
2026-10-28 12:50:54 +01:00
2026-10-28 13:50:16 +01:00
2026-10-23 11:57:52 +02:00
2026-10-24 13:12:28 +02:00
2026-10-23 11:57:52 +02:00
2026-10-16 18:25:18 +02:00
2026-10-16 18:25:18 +02:00
2026-10-27 16:47:35 +01:00
2026-10-16 18:25:18 +02:00
2026-10-27 18:15:44 +01:00
2026-10-16 18:25:18 +02:00
2026-10-16 18:25:18 +02:00
2026-10-28 11:38:40 +01:00
2026-10-16 18:25:18 +02:00
2026-10-20 07:04:01 +00:00
2026-10-20 21:05:16 +02:00
2026-10-23 11:57:52 +02:00
2026-10-28 12:48:13 +01:00
2026-10-22 11:06:34 +02:00
2026-10-22 11:06:34 +02:00
2026-10-27 16:47:35 +01:00
2026-10-16 18:25:18 +02:00
2026-10-19 13:37:01 +02:00
2026-10-20 23:07:33 +02:00
2026-10-16 18:25:18 +02:00
2026-10-23 11:57:52 +02:00
2026-10-16 18:25:18 +02:00
2026-10-25 12:09:29 +01:00
2026-10-25 10:55:27 +01:00
2026-10-16 18:25:18 +02:00
2026-10-16 18:25:18 +02:00
2026-10-18 11:38:37 +02:00
2026-10-16 18:25:18 +02:00
2026-10-28 11:37:51 +01:00
2026-10-16 18:25:18 +02:00
2026-10-23 11:57:52 +02:00
2026-10-12 11:46:14 +02:00
2026-10-16 18:25:18 +02:00
2026-10-16 20:52:09 -05:00
2026-10-20 21:05:16 +02:00
2026-10-28 12:50:54 +01:00
2026-10-16 18:25:18 +02:00
2026-10-20 21:05:16 +02:00
2026-10-20 21:05:16 +02:00
2026-10-16 18:25:18 +02:00
2026-10-16 18:25:18 +02:00
2026-10-22 11:06:34 +02:00
2026-10-04 12:02:41 +02:00
2026-10-16 18:25:18 +02:00
2026-10-12 11:46:14 +02:00
2026-10-16 18:25:18 +02:00
2026-10-20 07:04:01 +00:00
2026-10-20 07:04:01 +00:00
2026-10-04 12:02:41 +02:00
2026-10-26 09:17:48 +01:00
2026-10-24 13:12:28 +02:00
2026-10-16 18:25:18 +02:00
2026-10-27 16:47:35 +01:00
2026-10-20 07:04:01 +00:00
2026-10-16 18:25:18 +02:00
2026-10-28 12:40:47 +01:00
2026-10-28 12:49:18 +01:00
2026-10-20 21:05:16 +02:00
2026-10-20 21:05:16 +02:00
2026-10-21 09:26:17 +02:00
2026-10-19 10:41:22 +02:00
2026-10-16 18:25:18 +02:00
2026-10-28 12:48:13 +01:00
2026-10-26 15:22:39 +01:00
2026-10-19 10:42:13 +02:00
2026-10-16 18:25:18 +02:00
2026-10-23 11:57:52 +02:00
2026-10-16 18:25:18 +02:00
2026-10-19 13:37:01 +02:00
2026-10-23 11:57:52 +02:00
2026-10-27 16:47:35 +01:00
2026-10-27 18:28:46 +01:00
2026-10-28 12:49:18 +01:00
2026-10-20 07:06:18 +00:00
2026-10-27 16:47:35 +01:00
2026-10-24 13:12:28 +02:00
2026-10-27 18:17:21 +01:00
2026-10-28 12:50:54 +01:00
2026-10-27 16:47:35 +01:00
2026-10-25 14:19:31 +01:00
2026-10-19 20:13:47 +02:00
2026-10-27 20:58:47 +01:00
2026-10-24 13:12:28 +02:00
2026-10-24 13:12:28 +02:00
2026-10-24 13:12:28 +02:00
2026-10-27 18:37:28 +01:00
2026-10-27 18:37:28 +01:00
2026-10-18 11:38:37 +02:00
2026-10-21 01:00:13 +02:00
2026-10-16 18:25:18 +02:00
2026-10-16 18:25:18 +02:00
2026-10-18 11:38:37 +02:00
2026-10-28 13:50:16 +01:00
2026-10-16 18:25:18 +02:00
2026-10-18 11:38:37 +02:00
2026-10-16 18:25:18 +02:00
2026-10-18 11:38:37 +02:00
2026-10-16 18:25:18 +02:00
2026-10-19 10:36:27 +02:00
2026-10-16 18:25:18 +02:00
2026-10-24 13:12:28 +02:00
2026-10-24 13:12:28 +02:00
2026-10-16 18:25:18 +02:00
2026-10-20 07:04:01 +00:00
2026-10-23 11:57:52 +02:00
2026-10-27 16:47:35 +01:00
2026-10-27 16:47:35 +01:00
2026-10-28 12:37:10 +01:00
2026-10-28 12:37:10 +01:00
2026-10-16 18:25:18 +02:00
2026-10-18 11:38:37 +02:00
2026-10-27 18:34:32 +01:00
2026-10-16 18:25:18 +02:00