nx_gen_modelid.nx
buildroot/runtime/nx_gen_modelid.nx
about
nx_gen_modelid.nx -- identify ANY model file: container, family, role. The front door of a
hot-swappable pipeline.
Operator 2026-08-07: *"when i use krea or something else it needs to have comfyui capabilities
without its messy interface"*. ComfyUI's real capability is not its node graph -- it is that you
can drop in an arbitrary set of parts and it knows what they are and how they wire. The UI is
the part worth leaving behind.
So: point this at a file and it answers "what IS this", by probing TENSOR NAMES. Names are the
only honest signature -- the installed zoo already proves why:
* a `.safetensors` DiT can be Z-Image or FLUX (Realism_Engine_Klein_V2 is Flux)
* a `.gguf` can be a DiT or a text-encoder LLM
* one file can be 453 tensors or 789 and still be the same family
★ FILENAME AND EXTENSION ARE CLAIMS; THE TENSOR NAMES ARE EVIDENCE.
It REFUSES to guess. An unknown file is reported UNKNOWN, never defaulted to the family we
happen to support -- a wrong family runs to completion and produces a wrong picture.
Usage: nx_gen_modelid <model_file>
license_tier: ORIGINAL
dependencies 11 imports · 0 importers
diagram shows first 10 each side; +1 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_le.nxnx_f32.nxnx_f32_div.nxnx_f32_cvt.nxnx_f16.nxnx_strconv.nxnx_genver.nxnx_genweights.nxnx_genarch.nxnx_genrole.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 34 | func mi_puts(s: *u8) -> i64 |
| 39 | func mi_len(s: *u8) -> i64 called by 1: mi_has |
| 44 | func mi_has(gw: *i64, name: *u8) -> i64 |
| 49 | func main(argc: i64, argv: *i64) -> i64 |