2 Commits
Author SHA1 Message Date
Niko1221 df943c23cb ling32: picture batch runner (--mm-runs), projector width from the file, preparation tests for rgba / gray / palette / 1920x1080 pictures
- strata-ling32 --mm-runs FILE: many prompts with and without pictures in one engine process, CPU or GPU encoder per run, idle-unload report
- VisionWeights::load takes out_dim from linear_proj.2 (the synthetic mini shard of the dry run has 256)
- ling32_vision_cpu_test: prep-only pictures (alpha dropped, gray, palette, 8160 patches) byte-equal to the processor
2026-12-01 01:08:19 +01:00
Niko1221 fcf36afd20 ling32: picture input (qwen3_moe_vit encoder on CPU and GPU, picture preparation, M-RoPE in the MLA layers, embedding override)
- ling32_vision: Ling-3.2-Air-Vision.strata loader, smart_resize + Pillow bicubic resize + normalise + patchify (byte-equal to the model's processor on the test set),
  float32 CPU encoder (AVX2/FMA, scalar fallback), 3-axis M-RoPE positions and placeholder expansion (equal to upstream get_rope_index on 7 cases)
- ling32_vision_gpu: float32 CUDA encoder (tiled SGEMM, online-softmax attention), weights uploaded on first use and freed after an idle time (default 120 s)
- engine: Ling32Engine::forward_mm (picture rows replace placeholder embeddings, per-token (T, H, W) rope positions in mla_prep, default path unchanged),
  set_rope_delta for the text after the prompt; strata-ling32 --vision / --image / --vision-device / --vision-encode
- tests: ling32_vision_cpu_test, ling32_vision_gpu_test, ling32_mm_test
2026-12-01 00:56:08 +01:00