Qwen/Qwen2.5-Coder-0.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).
Default build (faster). See also the FP16 build.
| Base model | Qwen2.5-Coder-0.5B (base, not instruct) |
| Context length | 2048 (fixed at conversion) |
| Prefill batch | 64 |
| Quantization | 6-bit LUT palettization (embeddings, transformer, LM head) |
| Size | ~463 MB (3 parts: embeddings, transformer with infer/prefill functions, LM head) |
| 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-0.5B-ANE-ctx2048-LUT6 --local-dir models/qwen25coder-0.5b-ctx2048-lut6
Then run it with the ane-fim server (server-py/server.py --meta models/qwen25coder-0.5b-ctx2048-lut6/meta.yaml),
or with ANEMLL's own tools (tests/chat.py --meta .../meta.yaml --no-template).
The model weights are Qwen2.5-Coder-0.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_01of01.mlmodelc/weights/weight.bin 262 MiBqwen25_lm_head_lut6.mlmodelc/weights/weight.bin 100 MiBqwen25_embeddings_lut6.mlmodelc/weights/weight.bin 100 MiBqwen25_FFN_PF_lut6_chunk_01of01.mlmodelc/coremldata.bin 1 KiBqwen25_lm_head_lut6.mlmodelc/coremldata.bin 0.8 KiBqwen25_embeddings_lut6.mlmodelc/coremldata.bin 0.6 KiBqwen25_FFN_PF_lut6_chunk_01of01.mlmodelc/analytics/coremldata.bin 0.2 KiBqwen25_embeddings_lut6.mlmodelc/analytics/coremldata.bin 0.2 KiBqwen25_lm_head_lut6.mlmodelc/analytics/coremldata.bin 0.2 KiBQwen/Qwen2.5-Coder-0.5B