Commit Graph
4 Commits
Author SHA1 Message Date
Niko1221 5369576ff4 DeepSeek out (3/7): the server no longer carries the DeepSeek code paths
A DeepSeek config stops in main() before the engine starts (commit 2), so everything that only served the
DeepSeek engine goes:
- serve/dsml.py (DSML tool calls), serve/ds_pictures.py (its picture tower); PICTURE_FORMATS, which every picture
  read uses, moves into serve/server.py unchanged.
- server.py: the family switch for deepseek41 (end token, DSML parser, effort words), the tokenizer-based arch
  ("deepseek3" pre-tokenizer), restore points (marks= / tail= / shared= keys and STRATA_DS4_RESTORE_*), the
  automatic pin of the system prompt (STRATA_DS4_AUTO_PIN), the --parallel conversations protocol (READY multi=N,
  rid= on GEN / STOP, T / PP / DONE / ERR with a request id, STAT) in the reader thread and in generate, the slot
  folder environment (STRATA_DS4_SLOT_*), the default thinking budget and the half-of-max_tokens cap, the model card
  sampling and model name of deepseek41, the DSML template swap.
- frontend.py: the DeepSeek effort table and numeric efforts; replicas.py: the deepseek41 guard.
For a Qwen engine nothing changes: multi was 0 (only strata-dsv41 printed multi=), so lines_q was self.lines and
the STOP line "STOP\n", as now; the family was None, so the Qwen effort table and stop ids are what they were.

Tests: serve/test_dsv41.py, test_ds_pictures.py, test_ds_parallel.py, test_ds4_restore_points.py and the
deepseek41 fixtures go; the DeepSeek cases leave test_anthropic_tool_results, test_exif_orientation (2 decodes, was 3),
test_family_name, test_replicas, test_stop_holdback (the unnamed-family routes stay), test_tool_corpus (the DSML
section), test_tool_format, test_vision_elastic.
2026-11-11 11:30:36 +01:00
Niko1221 37e91bfdbb strata_tokenizer: the approved wording for an unknown pre-tokenizer 2026-11-06 19:19:52 +01:00
Niko1221 e17394fe1c serve/test_tool_format: the real Qwen3 chat template selects the JSON parser 2026-11-06 17:31:44 +01:00
Niko1221 e7d4844637 serve: pick the tool-call parser from the chat template
serve/toolformat.py names the tool-call form a template documents (xml, json,
dsml, none, other). parser_for_template() gives JSON templates (Qwen3 / Hermes)
JsonOutputParser, which reads the JSON call as the template's own form whether
or not tool_call_recovery is on; every other template keeps OutputParser, so
the models that run today get the class they always had. Service takes it from
its template, set_family still picks DSML for DeepSeek.

The server stops at start, with one line and exit status 2, on a tokenizer pack
whose pre-tokenizer it has no rule for. serve/tool_parser_golden.json holds the
events of both parsers for fixed outputs, fed whole and in pieces.
2026-11-06 17:25:06 +01:00