Skip to content

native: name the Python engine 0.6.6 only for the model types it serves - #4008

Merged
ashhart merged 3 commits into
mainfrom
lead/no-backend-hint
Nov 20, 2026
Merged

ashhart merged 3 commits into
mainfrom
lead/no-backend-hint

Conversation

@ashhart

@ashhart ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

What this changes

A user on 1.2.10 ran tensorfold serve on a Hunyuan 4 Flash checkpoint (hy_v4_flash) and was told: "the native engine has no backend for hy_v4_flash checkpoints yet; the Python engine 0.6.6 may serve them". They installed 0.6.6, and it refused too, because 0.6.6 has no recipe for that model type. The hint sent them round in a circle.

Now the native refusal names 0.6.6 only for the ten model types 0.6.6 serves (deepseek_v4, gemma4, gemma4_text, glm5_next, nemotron_h, prism_hadamard_qwen35, qwen3_5, qwen3_5_moe, qwen3_8_flash_next, qwen4_exp). Those keep today's sentence word for word. Any other type gets "no TensorFold release serves ... checkpoints yet", with the recipe book and runbook links that 0.6.6's own refusal gives.

  • zig/src/native/no_backend.zig (new, 50 lines) holds the one shared list and the message.
  • zig/src/native/metal.zig and zig/src/native/none.zig call it instead of building the sentence themselves.
  • test-no-backend-host (in test) checks both cases: all ten listed types keep the 0.6.6 hint, and hy_v4_flash gets neither "0.6.6" nor "pip install".

No serving behaviour changes; only the refusal text for unserved model types.

  • Synthena

A checkpoint no native backend serves was told the Python engine 0.6.6 may serve it, even for types 0.6.6 refuses
too (hy_v4_flash). zig/src/native/no_backend.zig keeps the one list of 0.6.6's model types and builds the refusal
for metal.zig and none.zig: a listed type keeps the install hint word for word; any other is told no TensorFold
release serves it yet and pointed to the recipe book and the runbook. test-no-backend-host covers both.
@ashhart
ashhart force-pushed the lead/no-backend-hint branch from 22acaef to a9516da Compare November 20, 2026 12:40
@ashhart
ashhart merged commit bace014 into main Nov 20, 2026
2 of 11 checks passed
ashhart added a commit that referenced this pull request Nov 20, 2026
@ashhart
ashhart deleted the lead/no-backend-hint branch November 20, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant