mtmd: add mtmd_tokenize_from_parts() - #28250
Conversation
|
tests are all passed |
|
/bot review |
Automated code reviewStatic review of Blocking (point 1) Per-part
Either split the flag per part (add_bos/add_eos) or document precisely that per-part Will slow the review (point 2) No test exercises the new public API. (point 3) Input validation in Nits (point 4) Near-identical names for different things: public (point 5) (point 6) (point 7) Scope checks that pass: linked issue exists (#28249), the change is self-contained, reuses the existing This review was generated automatically by pi coding agent using |
* add mtmd_tokenize_from_parts * use it in mtmd-cli * move add_special to call level
* add mtmd_tokenize_from_parts * use it in mtmd-cli * move add_special to call level
* add mtmd_tokenize_from_parts * use it in mtmd-cli * move add_special to call level
* add mtmd_tokenize_from_parts * use it in mtmd-cli * move add_special to call level
* add mtmd_tokenize_from_parts * use it in mtmd-cli * move add_special to call level
Overview
Target support jinja's input marking: #28249
Add
mtmd_tokenize_from_parts()for fine-control per-segment tokenization (for example, one segment can be marked asparse_special, while other doesn't)Requirements