`mlc_llm compile` builds a model library for a target device using a generated `mlc-chat-config.json`. It follows model conversion and chat-configuration generation, preparing the model for deployment. section 11.3 section 11.5
CUDA compilation
Compile a generated RedPajama chat configuration for an NVIDIA GPU and write the library to `dist/libs`: `mlc_llm compile ./dist/RedPajama-INCITE-Instruct-3B-v1-q4f16_1-MLC/mlc-chat-config.json --device cuda -o dist/libs/RedPajama-INCITE-Instruct-3B-v1-q4f16_1-cuda.so`. section 11.3
Figure 11.3 The end-to-end workflow for MLC LLM, from model conversion to deployment on the supported platforms’ native runtimes
See where compilation fits between model conversion and deployment to platform runtimes. section 11.3
