Qwen 3.5 4B Vision β€” Stateless Multi-Context CoreML (Apple Neural Engine)

Standalone stateless Apple Neural Engine (ANE) CoreML conversion of Qwen/Qwen3.5-4B (0 MLState ops, explicit KV + Gated DeltaNet conv/SSM state tensors) with weight-sharing multi-context support (2048 / 4096 / 8192) designed for on-device iOS (8 GB+ iPhone) and macOS inference.

Bundle Highlights

  • Architecture: Hybrid Gated DeltaNet (24 linear-attention layers) + Full GQA (8 full-attention layers) + Lazy 384Γ—384 Vision Encoder (144 soft visual tokens)
  • Format: Precompiled .mlmodelc weight-sharing multifunction bundles (decode_<ctx> T=1 + prefill_<ctx> T=8 for ctx ∈ {2048, 4096, 8192}, default 4096)
  • Chunking: 8 balanced chunks (4 layers per chunk = 3 Gated DeltaNet + 1 Full GQA, 224–337 MB per chunk) for low peak ANE compiler memory & fast first-run compilation on iOS
  • Quantization: Auto-calibrated mixed INT4 / INT6 exact kmeans1d LUT palettization (group_size=32), 4-slice INT6 lm_head, INT8 mmap-friendly embeddings (embed_tokens_q8.bin), lazy INT6 vision encoder (vision_encoder.mlmodelc)
  • Supported Context Lengths: 2048, 4096 (default), 8192 tokens β€” weights are 100% shared across all three context buckets (+7 MB total overhead over single-context 2K!)
  • Total Size: 3.86 GB (3,858,100,000 bytes)
  • Zero MLState ops: Verified stateless across every compiled model.mil for reliable background / locked-screen ANE execution

Files

  • model_config.json β€” full model, multi-context (supported_contexts), chunk split, quantization, and vision metadata
  • chunk_0.mlmodelc .. chunk_7.mlmodelc β€” 8 multifunction (decode_2048/4096/8192 T=1, prefill_2048/4096/8192 T=8) transformer chunks
  • lm_head_0.mlmodelc .. lm_head_3.mlmodelc β€” 4 vocab-sliced LM head chunks (248,320 vocab)
  • vision_encoder.mlmodelc β€” lazy 384Γ—384 ViT image encoder (144 visual embeddings)
  • embed_tokens_q8.bin & embed_tokens_scales.bin β€” streaming INT8 token embeddings
  • hf_model/ β€” original tokenizer & chat template files

License

Apache 2.0 (inherited from Qwen/Qwen3.5-4B).

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for BuboAI/qwen3.5-4b-vision-coreml

Finetuned
Qwen/Qwen3.5-4B
Finetuned
(1,741)
this model