mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 07:48:45 +00:00
The shared importer (strata_control/models.plan_import; `strata models import --plan`, which the app's local-GGUF import and the Terminal's "use my own files" both call) accepted architecture qwen4exp only, so a Qwen3.6 (qwen35moe) file was "not supported" in both. It now names family qwen36 for a qwen35moe file set when every tensor passes the checks the Qwen3.6 engine's loader makes (strata_control/q36_types.py, a mirror of src/qwen35/q36_engine.cu load()): - routed experts: gate and up one type, in STRATA_GU_FMTS; down in STRATA_D_FMTS (the release build, STRATA_Q6K_EXPERTS=ON); - the matrices mat() loads: native_mmvq_supported; - the vectors f32() loads: F32, F16, BF16, Q8_0; token_embd: a known type. The run-time fused / int8 / FP16 kernels fall back to these and refuse no file. Any tensor that fails, or more than one file, keeps the existing "not supported" words. A file under the published name is that size; under another name the closest size by its expert type, with the existing "not exactly a build Strata has tested ... layout of ..." line. gguf_preflight gets tensor_types() (the per-name directory, same bounds). setup's install_own_path with --gguf-dir now takes the folder's one model file when it is not under the published name (own_path_gguf_in; mmproj and .part files do not count; two files are not guessed); the size and SHA-256 checks keep the published file's values and verify_sha256's existing own-file rules (a complete GGUF of another size or hash is used with its warning). Tests: tests/terminal/test_q36_types.py (11): the sets equal the CUDA source text (iq_kernels.cu, native_mmvq.cu, q36_engine.cu upload_f32) and the packaging flag; every name f32()/mat() reads is classified; setup's size list and file pattern; the catalog's three published sets are all accepted, from their real tensor type tables (tests/data/q36_types/*.types.json: read from the GGUF headers by HTTP range at the pinned revision 5bc3e238d916f48a861bac2f8a1990a0e9b7e98d, URL in each file, 753 tensors each; no model bytes kept); a Q4_K down, a Q4_K norm and gate/up of two types are refused; plan_import: published name -> qwen36/UD-Q4_K_XL, renamed -> closest size with the line, an unsupported quant -> the existing words, the CLI the app calls gives the same plan, qwen4exp unchanged; own_path_gguf_in. With test_own_files, test_models, tools/test_setup_qwen36 and test_launch 203 passed on p2003.