95 Commits
Author SHA1 Message Date
carsten e9619bf8f0 Add text-level Hermes tool-call parser for Trinity
Trinity's tokenizer has no <tool_call> special token, so token-id based
parsers never detect calls. Adds a reasoning- and Markdown-aware
text-level parser selected with tool_parser = "hermes".
2026-10-14 12:23:49 +00:00
halleriteandGitHub bdb96b0c84 fix(renderers): bridge merge must not mutate prior multi_modal_data (#104) 2026-07-16 14:48:57 +02:00
faresobeidandGitHub 201f88516c Merge pull request #102 from PrimeIntellect-ai/feat/kept-tokens-parse
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
feat: parse kept_tokens sampling masks from /generate responses
renderers-v0.1.8
2026-07-14 00:43:25 +01:00
faresandClaude Fable 5 b6635d261c refactor: drop strip_routed_experts_data wrapper
Both base64 splices call _strip_base64_field directly now.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 18:36:45 +00:00
HubertandGitHub fa04acd916 feat(sft): opt-in final stop token in build_training_sample (#101)
* feat(sft): opt-in final stop token in build_training_sample

Templates like GLM close assistant turns with the next message's role marker, leaving a final assistant turn with no stop supervision; ensure_final_stop appends the canonical stop as a trainable target while remaining a no-op for in-message closes.
2026-07-10 15:36:14 -07:00
HubertandGitHub 33c8e6f897 feat(renderers): support PrimeIntellect Qwen3 templates (#100)
* feat(renderers): support PrimeIntellect Qwen3 templates

Mirror the custom template with exact token attribution so PrimeIntellect Qwen3 models can use typed rendering instead of the metadata-free fallback.
2026-07-10 13:12:15 -07:00
faresandClaude Fable 5 0d104d82e3 feat: parse kept_tokens sampling masks from /generate responses
Splice the base64 kept-set ids out of the raw response bytes before
json.loads (same fast path as routed_experts) and surface the
{ids, counts} payload on the generate() result dict for sampling-mask
replay training.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-09 02:00:35 +00:00
halleriteandGitHub defaf8fe2e feat(hy3): add Tencent Hunyuan Hy3 renderer (#98) 2026-07-08 04:55:26 +02:00
halleriteandGitHub 4472b743a6 fix(laguna): rework XS-2.1 renderer against the rewritten upstream chat template (#99) 2026-07-08 01:19:43 +02:00
minh hoangandGitHub 5904fa24aa feat(laguna): support Laguna-XS-2.1 via no-default-system-message variant (#97) 2026-07-03 20:47:43 +02:00
HubertandGitHub db8698aaa8 feat(sft): surface multimodal payload through build_training_sample (#94) 2026-06-30 13:21:31 -07:00
halleriteandGitHub a5efbb97e4 feat(thinking): replace preserve_* bools with thinking_retention, respected by the bridge (#88) 2026-06-26 15:14:41 -07:00
halleriteandGitHub 082836b5a8 remove fastokens entirely for now (#95) 2026-06-26 05:25:08 +02:00
halleriteandGitHub 42d6ee930b adopt verifiers-style dynamic versioning (#96) 2026-06-26 05:12:13 +02:00
minh hoangandGitHub 1933293372 Merge pull request #90 from PrimeIntellect-ai/fix/unsloth-llama-tokenizer
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
fix: use ungated llama tokenizer mirrors
renderers-v0.1.8.dev49
2026-06-18 18:46:32 -07:00
eexwhyzee 0dc19a060e Classify canonical Llama as preserve-thinking no-op 2026-06-18 16:22:01 -07:00
eexwhyzee fe1dcdaed7 Format tokenizer alias test 2026-06-18 16:20:02 -07:00
eexwhyzee 20d89be418 Use ungated Llama tokenizer mirrors 2026-06-18 16:05:01 -07:00
Matej SirovatkaandGitHub 67568f79cf fix: _get_offset_tokenizer immune to global fastokens patch (concurrent-pool race) (#86)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev45
2026-06-15 01:22:27 +02:00
halleriteandGitHub a3bf7e88b4 fix(nemotron3): faithful Nano/Super/Ultra rendering + per-variant config split (#84)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev44
2026-06-12 11:01:40 -07:00
halleriteandGitHub d80f36e287 feat(deepseek): split into separate DeepSeek-V3 and DeepSeek-R1 renderers (#81)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev43
2026-06-09 17:03:22 -07:00
1dca3b9a2d fix(parsing): don't parse in-<think> tool calls as real calls (#78) (#80)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
* fix(parsing): don't parse in-<think> tool calls as real calls

Reasoning models (Qwen3-*-Thinking, Kimi-K2.5, R1-distill via the
DeepSeek-V3 renderer) routinely draft tool-call syntax *inside* their
<think>...</think> trace while planning. The qwen3, deepseek_v3, and
kimi_k2.5 parsers scanned the whole completion for tool-call delimiters
and only extracted reasoning afterward, so those in-think drafts were
mis-parsed. Symptoms differed by format but all corrupt the tool result:

- qwen3 / qwen3_vl: emits the draft *and* the real call -> phantom
  duplicate (the reported #78 case; same code executed twice).
- kimi_k2.5: the in-think section trips the "truncated reasoning" guard
  and *all* tool calls are dropped (returns zero).
- deepseek_v3: returns the *wrong* call (the draft) and loses reasoning.

Fix: extract reasoning first, then scan for tool calls only in the
post-</think> region — mirroring vLLM's DelegatingParser (reasoning
parser runs before the tool parser). Where </think> is a single special
token (Qwen3) we anchor on its id; where it's multi-token / context-
sensitive text (DeepSeek-V3, Kimi-K2.5) we locate the boundary by
decoding. content_ids still starts at 0 so reasoning extraction is
unchanged, and genuine parallel calls after </think> are preserved.

Audited all parsers: qwen3.5/glm/minimax/laguna/nemotron3 already strip
reasoning first; gpt_oss (channel-segregated) and llama_3 (no reasoning)
are safe; kimi_k2 (K2-Instruct) has no thinking path so is unaffected.

Validated against real Qwen3, Kimi-K2.5 and DeepSeek-V3 tokenizers.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* style: ruff format

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
renderers-v0.1.8.dev42
2026-06-10 00:26:25 +02:00
halleriteandGitHub e6dba5ad6c feat: add Llama-3 renderer for Llama-3.2-1B/3B-Instruct (#9)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev41
2026-06-08 19:47:06 +02:00
halleriteandGitHub 596c15ffd9 feat(nemotron3): add Nemotron-3 Ultra chat-template variant (#77)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev40
2026-06-04 16:46:36 +02:00
Kemal ErdemandGitHub 942449c37a Merge pull request #76 from PrimeIntellect-ai/security/cooldown-7d
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
security: extend cooldown exempt list with prime-pydantic-config
renderers-v0.1.8.dev39
2026-05-31 00:30:01 +02:00
Kemal ErdemandClaude Opus 4.7 9f3b24c0ac chore(security): extend cooldown exempt list with prime-pydantic-config
renderers already had exclude-newer = "7 days" with a per-package
exemption for fastokens. This PR splits the inline table into a
[tool.uv.exclude-newer-package] section and adds the only other
PrimeIntellect-published package in renderers' dep closure:
prime-pydantic-config.

Only packages in this project's `uv tree` are exempted — the resolver
ignores entries for packages it never sees.

Pins `required-version = ">=0.11.1"` so older uvs fail loudly instead
of silently parsing "7 days" as an RFC 3339 date and proceeding
*without* the cooldown — see uv#17908.

Part 1 of 3 in a coordinated supply-chain hardening across PI repos.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-29 22:30:23 +02:00
halleriteandGitHub 35c2407e92 fix(tokenizer): apply config-build fallback to offset tokenizer too (#75)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev37
2026-05-28 20:58:02 +02:00
Sebastian MüllerandGitHub a11f8d8193 feat(base): add message_tool_names field for per-message tool attribution (#74)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev36
2026-05-28 20:49:47 +02:00
halleriteandGitHub 89ab3f0bed fix(tokenizer): fall back to direct fast-tokenizer load when model config build fails (#72)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev35
2026-05-28 00:19:19 +02:00
halleriteandGitHub e729baa5af refactor(qwen3.5): hard-code enable_thinking default per model (#71)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev34
2026-05-27 19:54:58 +02:00
halleriteandGitHub 74425da166 fix(examples): update multi-turn examples to current renderer API (#68)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev33
2026-05-27 19:07:11 +02:00
halleriteandGitHub 1569dc980d fix(deps): lower openai-harmony floor to >=0.0.4 for SGLang compatibility (#69)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev32
2026-05-27 19:01:20 +02:00
halleriteandGitHub 1d69232253 feat(glm): make next-message role marker trainable after assistant turns (#66)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev31
2026-05-26 22:56:24 +02:00
halleriteandGitHub 88aa42d40f fix(nemotron3): forward tools to parse_qwen35 for schema-aware coercion (#65)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev30
2026-05-26 16:52:50 +02:00
eligottsandGitHub 647335489d fix(parsing): accept bare-string args for union schemas with string (#63)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev29
2026-05-26 15:59:43 +02:00
halleriteandGitHub 2ec28a8543 Lazy-load concrete renderer classes via PEP 562 __getattr__ (#64)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev28
2026-05-26 01:51:14 +02:00
c86c50b72e Typed renderer configs (#60)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
Co-authored-by: hallerite <git@hallerite.com>
renderers-v0.1.8.dev27
2026-05-26 00:07:01 +02:00
halleriteandGitHub 1831bcc50c fix(base): suppress fastokens per-load print, log once instead (#61)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev26
2026-05-24 13:29:35 +02:00
3ae276c446 ci: auto-publish dev release to PyPI on every commit to main (#58)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
Adds .github/workflows/publish-dev.yml which, on every push to main, tags
the commit as ``renderers-v<next-patch>.dev<commits-since-release>`` and
publishes the resulting wheel to PyPI as a pre-release. Build runs from
the freshly-created tag so hatch-vcs produces a clean PEP 440 version
without the ``+gHASH`` local segment PyPI rejects.

Mirrors the build/publish split from publish.yml so OIDC stays scoped to
the publish job only.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
renderers-v0.1.8.dev25
2026-05-21 11:19:14 -07:00
Sebastian MüllerandGitHub 1691f87e90 feat(base): per-token is_content mask for body/scaffold attribution (#53) 2026-05-20 16:42:24 +02:00
Zafir StojanovskiandGitHub 9e11214dd5 fix(kimi_k25): emit JSON literals for bool/null in tool schema rendering (#55) 2026-05-20 15:09:19 +02:00
dependabot[bot]andGitHub 143ffdee56 build(deps): bump idna from 3.13 to 3.15 (#56) 2026-05-20 13:59:13 +02:00
halleriteandGitHub f9414b1e95 chore(deps): bump fastokens to 0.2.0, drop MiniMax-M2 from denylist (#57) 2026-05-20 13:54:05 +02:00
will brownandGitHub ee9703fcc9 Merge pull request #54 from PrimeIntellect-ai/fix/routed-experts-sidecar-parse
Handle routed experts as response sidecar
2026-05-19 21:15:42 -05:00
S1ro1 3177399b79 Handle routed experts as response sidecar 2026-05-19 21:49:28 +05:30
halleriteandGitHub 8704f9d502 feat(map): add Qwen3-30B-A3B-{Instruct,Thinking}-2507, GLM-5-FP8 (#50)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev4
2026-05-18 19:47:42 +02:00
halleriteandGitHub fdc03f2861 feat(client): pre-flight overflow check with auto-discovery (#48) 2026-05-18 18:33:28 +02:00
eligottsandGitHub d547eef54c fix(client): add Qwen35Renderer to _build_mm_features dispatch (#45) 2026-05-18 12:11:01 +02:00
eligottsandGitHub 25ba413d46 fix(qwen3_vl): require truthy value in untyped image_part fallback (#46) 2026-05-18 12:09:58 +02:00
halleriteandGitHub 17d0584f87 feat(base): per-message / per-role analytics on RenderedTokens (#38)
Publish / build (push) Canceled after 0s
Publish / publish (push) Canceled after 0s
renderers-v0.1.8.dev3
2026-05-16 14:08:10 +02:00