mlc_llm_convert_weights converts cloned model weights into MLC LLM format for a specified quantization type, target device, and output directory. It prepares weights for later configuration, compilation, and inference rather than serving the model by itself. section 11.3 section 11.5
A practical conversion workflow includes:
- Clone the model weights and configuration files, using Git LFS when required. section 11.3
- Choose quantization and a device, then write converted weights to a destination directory. section 11.3
- Generate chat configuration separately with mlc_llm_gen_config before compiling a platform-specific model library. section 11.3 section 11.5
CUDA conversion with q4f16_1
mlc_llm convert_weight ./RedPajama-INCITE-Instruct-3B-v1/ --quantization q4f16_1 --device cuda -o dist/RedPajama-INCITE-Instruct-3B-v1-q4f16_1-MLC
