Qwen/Qwen2.5-Coder-1.5B (base model, fill-in-the-middle capable) converted to Core ML with ANEMLL 0.3.5_beta to run on the Apple Neural Engine.
Built for ane-fim: local, offline, Copilot-style code completion in VS Code
(llama.cpp-compatible /infill server, works with the llama.vscode extension).
ane-fim's default model. For a faster, lower-power option see the 0.5B LUT6 build.
| Base model | Qwen2.5-Coder-1.5B (base, not instruct), 1.54B parameters |
| Context length | 2048 (fixed at conversion) |
| Prefill batch | 64 |
| Quantization | 6-bit LUT palettization (embeddings, transformer, LM head) |
| Size | ~1.3 GB in 4 parts: embeddings (169 MB), transformer in 2 chunks (2 × 477 MB, each with infer/prefill functions, sharing one KV-cache state), LM head (169 MB) |
| LM head | argmax computed in-model (argmax_in_model: true), so greedy decoding only |
| Converted with | ANEMLL 0.3.5_beta, coremltools 9.0 |
| Requirements | Apple Silicon, macOS 15+ |
Measured on an M3 (16 GB, macOS 27):
Only tested on one Mac so far. Reports from other chips and macOS versions are welcome.
Raw FIM, no chat template, no BOS token:
<|fim_prefix|>{code before cursor}<|fim_suffix|>{code after cursor}<|fim_middle|>
Stop on any of <|endoftext|>, <|fim_pad|>, <|file_sep|>, <|fim_prefix|>, <|fim_suffix|>, <|fim_middle|>, <|repo_name|>
(the model often ends with <|file_sep|> or <|fim_pad|>).
hf download tianharjuno/Qwen2.5-Coder-1.5B-ANE-ctx2048-LUT6 --local-dir models/qwen25coder-1.5b-ctx2048-lut6
Then run it with the ane-fim server (make start, which uses this folder by default),
or with ANEMLL's own tools (tests/chat.py --meta .../meta.yaml --no-template).
The model weights are Qwen2.5-Coder-1.5B by the Qwen team (Alibaba Cloud), licensed under Apache 2.0 (see LICENSE). This repository contains a format conversion (Core ML, 6-bit LUT weight palettization); no further training was done. The conversion used ANEMLL (MIT).
qwen25_FFN_PF_lut6_chunk_02of02.mlmodelc/weights/weight.bin 499 MBqwen25_FFN_PF_lut6_chunk_01of02.mlmodelc/weights/weight.bin 499 MBqwen25_lm_head_lut6.mlmodelc/weights/weight.bin 177 MBqwen25_embeddings_lut6.mlmodelc/weights/weight.bin 177 MBqwen25_FFN_PF_lut6_chunk_01of02.mlmodelc/coremldata.bin 1 kBqwen25_FFN_PF_lut6_chunk_02of02.mlmodelc/coremldata.bin 1 kBqwen25_lm_head_lut6.mlmodelc/coremldata.bin 0.8 kBqwen25_embeddings_lut6.mlmodelc/coremldata.bin 0.6 kBqwen25_FFN_PF_lut6_chunk_01of02.mlmodelc/analytics/coremldata.bin 0.2 kBqwen25_FFN_PF_lut6_chunk_02of02.mlmodelc/analytics/coremldata.bin 0.2 kBqwen25_embeddings_lut6.mlmodelc/analytics/coremldata.bin 0.2 kBqwen25_lm_head_lut6.mlmodelc/analytics/coremldata.bin 0.2 kBQwen/Qwen2.5-Coder-1.5B