Views
No views yet
1sudo apt update
2sudo apt install ocl-icd-opencl-dev clinfo vulkan-tools
3python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly mlc-ai-nightly
4mlc_llm chat HF://mlc-ai/Llama-3-8B-Instruct-q4f16_1-MLC
5
6___________________________________________________________________________________________________________________________________________
7$ mlc_llm --help
8usage: MLC LLM Command Line Interface. [-h] {compile,convert_weight,gen_config,chat,serve,bench,package}
9
10positional arguments:
11 {compile,convert_weight,gen_config,chat,serve,bench,package}
12 Subcommand to to run. (choices: compile, convert_weight, gen_config, chat, serve, bench, package)
13
14options:
15 -h, --help show this help message and exit
16
17
18____________________________________________________________________________________________________________________________________________
19$ mlc_llm chat --help
20usage: MLC LLM Chat CLI [-h] [--opt OPT] [--device DEVICE] [--overrides OVERRIDES] [--model-lib MODEL_LIB] model
21
22positional arguments:
23 model A path to ``mlc-chat-config.json``, or an MLC model directory that contains `mlc-chat-config.json`.
24 It can also be a link to a HF repository pointing to an MLC compiled model. (required)
25
26options:
27 -h, --help show this help message and exit
28 --opt OPT Optimization flags. MLC LLM maintains a predefined set of optimization flags, denoted as O0, O1, O2,
29 O3, where O0 means no optimization, O2 means majority of them, and O3 represents extreme
30 optimization that could potentially break the system. Meanwhile, optimization flags could be
31 explicitly specified via details knobs, e.g. --opt="cublas_gemm=1;cudagraph=0". (default: "O2")
32 --device DEVICE The device used to deploy the model such as "cuda" or "cuda:0". Will detect from local available
33 GPUs if not specified. (default: "auto")
34 --overrides OVERRIDES
35 Chat configuration override. Configurations to override ChatConfig. Supports `conv_template`,
36 `context_window_size`, `prefill_chunk_size`, `sliding_window_size`, `attention_sink_size`,
37 `max_batch_size` and `tensor_parallel_shards`. Meanwhile, model chat could be explicitly specified
38 via details knobs, e.g. --overrides "context_window_size=1024;prefill_chunk_size=128". (default: "")
39 --model-lib MODEL_LIB
40 The full path to the model library file to use (e.g. a ``.so`` file). If unspecified, we will use
41 the provided ``model`` to search over possible paths. It the model lib is not found, it will be
42 compiled in a JIT manner. (default: "None")
43
44
45------------------------------------------------------------------------------------------------------------------------------------------
46$ mlc_llm compile --help
47usage: mlc_llm compile [-h]
48 [--quantization {q0f16,q0f32,q3f16_0,q3f16_1,q4f16_0,q4f16_1,q4f32_1,q4f16_2,q4f16_autoawq,q4f16_ft,e5m2_e5m2_f16,e4m3_e4m3_f16}]
49 [--model-type {auto,llama,mistral,gemma,gpt2,mixtral,gpt_neox,gpt_bigcode,phi-msft,phi,phi3,qwen,qwen2,stablelm,baichuan,internlm,rwkv5,orion,llava,rwkv6,chatglm,eagle,bert,medusa}]
50 [--device DEVICE] [--host HOST] [--opt OPT] [--system-lib-prefix SYSTEM_LIB_PREFIX] --output OUTPUT
51 [--overrides OVERRIDES] [--debug-dump DEBUG_DUMP]
52 model
53
54positional arguments:
55 model A path to ``mlc-chat-config.json``, or an MLC model directory that contains `mlc-chat-config.json`.
56 It can also be a link to a HF repository pointing to an MLC compiled model. (required)
57
58options:
59 -h, --help show this help message and exit
60 --quantization {q0f16,q0f32,q3f16_0,q3f16_1,q4f16_0,q4f16_1,q4f32_1,q4f16_2,q4f16_autoawq,q4f16_ft,e5m2_e5m2_f16,e4m3_e4m3_f16}
61 The quantization mode we use to compile. If unprovided, will infer from `model`. (default: look up
62 mlc-chat-config.json, choices: q0f16, q0f32, q3f16_0, q3f16_1, q4f16_0, q4f16_1, q4f32_1, q4f16_2,
63 q4f16_autoawq, q4f16_ft, e5m2_e5m2_f16, e4m3_e4m3_f16)
64 --model-type {auto,llama,mistral,gemma,gpt2,mixtral,gpt_neox,gpt_bigcode,phi-msft,phi,phi3,qwen,qwen2,stablelm,baichuan,internlm,rwkv5,orion,llava,rwkv6,chatglm,eagle,bert,medusa}
65 Model architecture such as "llama". If not set, it is inferred from `mlc-chat-config.json`.
66 (default: "auto")
67 --device DEVICE The GPU device to compile the model to. If not set, it is inferred from GPUs available locally.
68 (default: "auto")
69 --host HOST The host LLVM triple to compile the model to. If not set, it is inferred from the local CPU and OS.
70 Examples of the LLVM triple: 1) iPhones: arm64-apple-ios; 2) ARM64 Android phones: aarch64-linux-
71 android; 3) WebAssembly: wasm32-unknown-unknown-wasm; 4) Windows: x86_64-pc-windows-msvc; 5) ARM
72 macOS: arm64-apple-darwin. (default: "auto")
73 --opt OPT Optimization flags. MLC LLM maintains a predefined set of optimization flags, denoted as O0, O1, O2,
74 O3, where O0 means no optimization, O2 means majority of them, and O3 represents extreme
75 optimization that could potentially break the system. Meanwhile, optimization flags could be
76 explicitly specified via details knobs, e.g. --opt="cublas_gemm=1;cudagraph=0". (default: "O2")
77 --system-lib-prefix SYSTEM_LIB_PREFIX
78 Adding a prefix to all symbols exported. Similar to "objcopy --prefix-symbols". This is useful when
79 compiling multiple models into a single library to avoid symbol conflicts. Different from objcopy,
80 this takes no effect for shared library. (default: "auto")
81 --output OUTPUT, -o OUTPUT
82 The path to the output file. The suffix determines if the output file is a shared library or
83 objects. Available suffixes: 1) Linux: .so (shared), .tar (objects); 2) macOS: .dylib (shared), .tar
84 (objects); 3) Windows: .dll (shared), .tar (objects); 4) Android, iOS: .tar (objects); 5) Web: .wasm
85 (web assembly). (required)
86 --overrides OVERRIDES
87 Model configuration override. Configurations to override `mlc-chat-config.json`. Supports
88 `context_window_size`, `prefill_chunk_size`, `sliding_window_size`, `attention_sink_size`,
89 `max_batch_size` and `tensor_parallel_shards`. Meanwhile, model config could be explicitly specified
90 via details knobs, e.g. --overrides "context_window_size=1024;prefill_chunk_size=128". (default: "")
91 --debug-dump DEBUG_DUMP
92 Specifies the directory where the compiler will store its IRs for debugging purposes during various
93 phases of compilation. By default, this is set to `None`, indicating that debug dumping is disabled.
94 (default: None)
95
96____________________________________________________________________________________________________________________________________________
97$ mlc_llm convert_weight --help
98usage: MLC AutoLLM Quantization Framework [-h] --quantization
99 {q0f16,q0f32,q3f16_0,q3f16_1,q4f16_0,q4f16_1,q4f32_1,q4f16_2,q4f16_autoawq,q4f16_ft,e5m2_e5m2_f16,e4m3_e4m3_f16}
100 [--model-type {auto,llama,mistral,gemma,gpt2,mixtral,gpt_neox,gpt_bigcode,phi-msft,phi,phi3,qwen,qwen2,stablelm,baichuan,internlm,rwkv5,orion,llava,rwkv6,chatglm,eagle,bert,medusa}]
101 [--device DEVICE] [--source SOURCE]
102 [--source-format {auto,huggingface-torch,huggingface-safetensor,awq}] --output
103 OUTPUT
104 config
105
106positional arguments:
107 config 1) Path to a HuggingFace model directory that contains a `config.json` or 2) Path to `config.json`
108 in HuggingFace format, or 3) The name of a pre-defined model architecture. A `config.json` file in
109 HuggingFace format defines the model architecture, including the vocabulary size, the number of
110 layers, the hidden size, number of attention heads, etc. Example:
111 https://huggingface.co/codellama/CodeLlama-7b-hf/blob/main/config.json. A HuggingFace directory
112 often contains a `config.json` which defines the model architecture, the non-quantized model weights
113 in PyTorch or SafeTensor format, tokenizer configurations, as well as an optional
114 `generation_config.json` provides additional default configuration for text generation. Example:
115 https://huggingface.co/codellama/CodeLlama-7b-hf/tree/main. (required)
116
117options:
118 -h, --help show this help message and exit
119 --quantization {q0f16,q0f32,q3f16_0,q3f16_1,q4f16_0,q4f16_1,q4f32_1,q4f16_2,q4f16_autoawq,q4f16_ft,e5m2_e5m2_f16,e4m3_e4m3_f16}
120 The quantization mode we use to compile. If unprovided, will infer from `model`. (required, choices:
121 q0f16, q0f32, q3f16_0, q3f16_1, q4f16_0, q4f16_1, q4f32_1, q4f16_2, q4f16_autoawq, q4f16_ft,
122 e5m2_e5m2_f16, e4m3_e4m3_f16)
123 --model-type {auto,llama,mistral,gemma,gpt2,mixtral,gpt_neox,gpt_bigcode,phi-msft,phi,phi3,qwen,qwen2,stablelm,baichuan,internlm,rwkv5,orion,llava,rwkv6,chatglm,eagle,bert,medusa}
124 Model architecture such as "llama". If not set, it is inferred from `mlc-chat-config.json`.
125 (default: "auto")
126 --device DEVICE The device used to do quantization such as "cuda" or "cuda:0". Will detect from local available GPUs
127 if not specified. (default: "auto")
128 --source SOURCE The path to original model weight, infer from `config` if missing. (default: "auto")
129 --source-format {auto,huggingface-torch,huggingface-safetensor,awq}
130 The format of source model weight, infer from `config` if missing. (default: "auto", choices: auto,
131 huggingface-torch, huggingface-safetensor, awq")
132 --output OUTPUT, -o OUTPUT
133 The output directory to save the quantized model weight. Will create `params_shard_*.bin` and
134 `ndarray-cache.json` in this directory. (required)
135
136--------------------------------------------------------------------------------------------------------------------------------
137$mlc_llm serve --help
138usage: MLC LLM Serve CLI [-h] [--device DEVICE] [--model-lib MODEL_LIB] [--mode {local,interactive,server}]
139 [--additional-models [ADDITIONAL_MODELS ...]] [--max-batch-size MAX_BATCH_SIZE]
140 [--max-total-seq-length MAX_TOTAL_SEQ_LENGTH] [--prefill-chunk-size PREFILL_CHUNK_SIZE]
141 [--max-history-size MAX_HISTORY_SIZE] [--gpu-memory-utilization GPU_MEMORY_UTILIZATION]
142 [--speculative-mode {disable,small_draft,eagle,medusa}] [--spec-draft-length SPEC_DRAFT_LENGTH]
143 [--enable-tracing] [--host HOST] [--port PORT] [--allow-credentials]
144 [--allow-origins ALLOW_ORIGINS] [--allow-methods ALLOW_METHODS] [--allow-headers ALLOW_HEADERS]
145 model
146
147positional arguments:
148 model A path to ``mlc-chat-config.json``, or an MLC model directory that contains `mlc-chat-config.json`.
149 It can also be a link to a HF repository pointing to an MLC compiled model. (required)
150
151options:
152 -h, --help show this help message and exit
153 --device DEVICE The device used to deploy the model such as "cuda" or "cuda:0". Will detect from local available
154 GPUs if not specified. (default: "auto")
155 --model-lib MODEL_LIB
156 The full path to the model library file to use (e.g. a ``.so`` file). If unspecified, we will use
157 the provided ``model`` to search over possible paths. It the model lib is not found, it will be
158 compiled in a JIT manner. (default: "None")
159 --mode {local,interactive,server}
160 The engine mode in MLC LLM. We provide three preset modes: "local", "interactive" and "server". The
161 default mode is "local". The choice of mode decides the values of "--max-batch-size", "--max-total-
162 seq-length" and "--prefill-chunk-size" when they are not explicitly specified. 1. Mode "local"
163 refers to the local server deployment which has low request concurrency. So the max batch size will
164 be set to 4, and max total sequence length and prefill chunk size are set to the context window size
165 (or sliding window size) of the model. 2. Mode "interactive" refers to the interactive use of
166 server, which has at most 1 concurrent request. So the max batch size will be set to 1, and max
167 total sequence length and prefill chunk size are set to the context window size (or sliding window
168 size) of the model. 3. Mode "server" refers to the large server use case which may handle many
169 concurrent request and want to use GPU memory as much as possible. In this mode, we will
170 automatically infer the largest possible max batch size and max total sequence length. You can
171 manually specify arguments "--max-batch-size", "--max-total-seq-length" and "--prefill-chunk-size"
172 to override the automatic inferred values. (default: "local")
173 --additional-models [ADDITIONAL_MODELS ...]
174 The model paths and (optional) model library paths of additional models (other than the main model).
175 When engine is enabled with speculative decoding, additional models are needed. The way of
176 specifying additional models is: "--additional-models model_path_1 model_path_2 ..." or "--
177 additional-models model_path_1:model_lib_1 model_path_2 ...". When the model lib of a model is not
178 given, JIT model compilation will be activated to compile the model automatically.
179 --max-batch-size MAX_BATCH_SIZE
180 The maximum allowed batch size set for the KV cache to concurrently support.
181 --max-total-seq-length MAX_TOTAL_SEQ_LENGTH
182 The KV cache total token capacity, i.e., the maximum total number of tokens that the KV cache
183 support. This decides the GPU memory size that the KV cache consumes. If not specified, system will
184 automatically estimate the maximum capacity based on the vRAM size on GPU.
185 --prefill-chunk-size PREFILL_CHUNK_SIZE
186 The maximum number of tokens the model passes for prefill each time. It should not exceed the
187 prefill chunk size in model config. If not specified, this defaults to the prefill chunk size in
188 model config.
189 --max-history-size MAX_HISTORY_SIZE
190 The maximum history length for rolling back the RNN state. If unspecified, the default value is 1.
191 KV cache does not need this.
192 --gpu-memory-utilization GPU_MEMORY_UTILIZATION
193 A number in (0, 1) denoting the fraction of GPU memory used by the server in total. It is used to
194 infer to maximum possible KV cache capacity. When it is unspecified, it defaults to 0.85. Under mode
195 "local" or "interactive", the actual memory usage may be significantly smaller than this number.
196 Under mode "server", the actual memory usage may be slightly larger than this number.
197 --speculative-mode {disable,small_draft,eagle,medusa}
198 The speculative decoding mode. Right now three options are supported: - "disable", where speculative
199 decoding is not enabled, - "small_draft", denoting the normal speculative decoding (small draft)
200 style, - "eagle", denoting the eagle-style speculative decoding. The default mode is "disable".
201 (default: "disable")
202 --spec-draft-length SPEC_DRAFT_LENGTH
203 The number of draft tokens to generate in speculative proposal. The default values is 4.
204 --enable-tracing Enable Chrome Tracing for the server. After enabling, you can send POST request to the
205 "debug/dump_event_trace" entrypoint to get the Chrome Trace. For example, "curl -X POST
206 http://127.0.0.1:8000/debug/dump_event_trace -H "Content-Type: application/json" -d '{"model":
207 "dist/llama"}'"
208 --host HOST host name (default: "127.0.0.1")
209 --port PORT port (default: "8000")
210 --allow-credentials allow credentials
211 --allow-origins ALLOW_ORIGINS
212 allowed origins (default: "['*']")
213 --allow-methods ALLOW_METHODS
214 allowed methods (default: "['*']")
215 --allow-headers ALLOW_HEADERS
216 allowed headers (default: "['*']")
217
218_________________________________________________________________________________________________________________________________________
219$ mlc_llm gen_config --help
220usage: MLC LLM Configuration Generator [-h] --quantization
221 {q0f16,q0f32,q3f16_0,q3f16_1,q4f16_0,q4f16_1,q4f32_1,q4f16_2,q4f16_autoawq,q4f16_ft,e5m2_e5m2_f16,e4m3_e4m3_f16}
222 [--model-type {auto,llama,mistral,gemma,gpt2,mixtral,gpt_neox,gpt_bigcode,phi-msft,phi,phi3,qwen,qwen2,stablelm,baichuan,internlm,rwkv5,orion,llava,rwkv6,chatglm,eagle,bert,medusa}]
223 --conv-template
224 {llama-3,custom,open_hermes_mistral,vicuna_v1.1,gorilla,gorilla-openfunctions-v2,llava,gpt2,minigpt,stablecode_completion,conv_one_shot,llama-2,stablelm-3b,guanaco,LM,rwkv_world,gpt_bigcode,codellama_instruct,phi-2,phi-3,wizardlm_7b,stablelm-2,mistral_default,redpajama_chat,oasst,stablelm,llama_default,moss,gemma_instruction,neural_hermes_mistral,rwkv,stablecode_instruct,codellama_completion,wizard_coder_or_math,chatml,orion,glm,dolly}
225 [--context-window-size CONTEXT_WINDOW_SIZE]
226 [--sliding-window-size SLIDING_WINDOW_SIZE] [--prefill-chunk-size PREFILL_CHUNK_SIZE]
227 [--attention-sink-size ATTENTION_SINK_SIZE]
228 [--tensor-parallel-shards TENSOR_PARALLEL_SHARDS] [--max-batch-size MAX_BATCH_SIZE]
229 --output OUTPUT
230 config
231
232positional arguments:
233 config 1) Path to a HuggingFace model directory that contains a `config.json` or 2) Path to `config.json`
234 in HuggingFace format, or 3) The name of a pre-defined model architecture. A `config.json` file in
235 HuggingFace format defines the model architecture, including the vocabulary size, the number of
236 layers, the hidden size, number of attention heads, etc. Example:
237 https://huggingface.co/codellama/CodeLlama-7b-hf/blob/main/config.json. A HuggingFace directory
238 often contains a `config.json` which defines the model architecture, the non-quantized model weights
239 in PyTorch or SafeTensor format, tokenizer configurations, as well as an optional
240 `generation_config.json` provides additional default configuration for text generation. Example:
241 https://huggingface.co/codellama/CodeLlama-7b-hf/tree/main. (required)
242
243options:
244 -h, --help show this help message and exit
245 --quantization {q0f16,q0f32,q3f16_0,q3f16_1,q4f16_0,q4f16_1,q4f32_1,q4f16_2,q4f16_autoawq,q4f16_ft,e5m2_e5m2_f16,e4m3_e4m3_f16}
246 The quantization mode we use to compile. If unprovided, will infer from `model`. (required, choices:
247 q0f16, q0f32, q3f16_0, q3f16_1, q4f16_0, q4f16_1, q4f32_1, q4f16_2, q4f16_autoawq, q4f16_ft,
248 e5m2_e5m2_f16, e4m3_e4m3_f16)
249 --model-type {auto,llama,mistral,gemma,gpt2,mixtral,gpt_neox,gpt_bigcode,phi-msft,phi,phi3,qwen,qwen2,stablelm,baichuan,internlm,rwkv5,orion,llava,rwkv6,chatglm,eagle,bert,medusa}
250 Model architecture such as "llama". If not set, it is inferred from `mlc-chat-config.json`.
251 (default: "auto", choices: auto, llama, mistral, gemma, gpt2, mixtral, gpt_neox, gpt_bigcode, phi-
252 msft, phi, phi3, qwen, qwen2, stablelm, baichuan, internlm, rwkv5, orion, llava, rwkv6, chatglm,
253 eagle, bert, medusa)
254 --conv-template {llama-3,custom,open_hermes_mistral,vicuna_v1.1,gorilla,gorilla-openfunctions-v2,llava,gpt2,minigpt,stablecode_completion,conv_one_shot,llama-2,stablelm-3b,guanaco,LM,rwkv_world,gpt_bigcode,codellama_instruct,phi-2,phi-3,wizardlm_7b,stablelm-2,mistral_default,redpajama_chat,oasst,stablelm,llama_default,moss,gemma_instruction,neural_hermes_mistral,rwkv,stablecode_instruct,codellama_completion,wizard_coder_or_math,chatml,orion,glm,dolly}
255 Conversation template. It depends on how the model is tuned. Use "LM" for vanilla base model
256 (required, choices: llama-3, custom, open_hermes_mistral, vicuna_v1.1, gorilla, gorilla-
257 openfunctions-v2, llava, gpt2, minigpt, stablecode_completion, conv_one_shot, llama-2, stablelm-3b,
258 guanaco, LM, rwkv_world, gpt_bigcode, codellama_instruct, phi-2, phi-3, wizardlm_7b, stablelm-2,
259 mistral_default, redpajama_chat, oasst, stablelm, llama_default, moss, gemma_instruction,
260 neural_hermes_mistral, rwkv, stablecode_instruct, codellama_completion, wizard_coder_or_math,
261 chatml, orion, glm, dolly)
262 --context-window-size CONTEXT_WINDOW_SIZE
263 Option to provide the maximum sequence length supported by the model. This is usually explicitly
264 shown as context length or context window in the model card. If this option is not set explicitly,
265 by default, it will be determined by `context_window_size` or `max_position_embeddings` in
266 `config.json`, and the latter is usually inaccurate for some models. (default: "None")
267 --sliding-window-size SLIDING_WINDOW_SIZE
268 (Experimental) The sliding window size in sliding window attention (SWA). This optional field
269 overrides the `sliding_window_size` in config.json for those models that use SWA. Currently only
270 useful when compiling Mistral. This flag subjects to future refactoring. (default: "None")
271 --prefill-chunk-size PREFILL_CHUNK_SIZE
272 (Experimental) The chunk size during prefilling. By default, the chunk size is the same as sliding
273 window or max sequence length. This flag subjects to future refactoring. (default: "None")
274 --attention-sink-size ATTENTION_SINK_SIZE
275 (Experimental) The number of stored sinks. Only supported on Mistral yet. By default, the number of
276 sinks is 4. This flag subjects to future refactoring. (default: "None")
277 --tensor-parallel-shards TENSOR_PARALLEL_SHARDS
278 Number of shards to split the model into in tensor parallelism multi-gpu inference. (default:
279 "None")
280 --max-batch-size MAX_BATCH_SIZE
281 The maximum allowed batch size set for the KV cache to concurrently support. (default: "80")
282 --output OUTPUT, -o OUTPUT
283 The output directory for generated configurations, including `mlc-chat-config.json` and tokenizer
284 configuration. (required)
285________________________________________________________________________________________________________________________________________
286$ mlc_llm bench --help
287usage: MLC LLM Chat CLI [-h] [--prompt PROMPT] [--opt OPT] [--device DEVICE] [--overrides OVERRIDES]
288 [--generate-length GENERATE_LENGTH] [--model-lib MODEL_LIB]
289 model
290
291positional arguments:
292 model A path to ``mlc-chat-config.json``, or an MLC model directory that contains `mlc-chat-config.json`.
293 It can also be a link to a HF repository pointing to an MLC compiled model. (required)
294
295options:
296 -h, --help show this help message and exit
297 --prompt PROMPT The prompt of the text generation. (default: "What is the meaning of life?")
298 --opt OPT Optimization flags. MLC LLM maintains a predefined set of optimization flags, denoted as O0, O1, O2,
299 O3, where O0 means no optimization, O2 means majority of them, and O3 represents extreme
300 optimization that could potentially break the system. Meanwhile, optimization flags could be
301 explicitly specified via details knobs, e.g. --opt="cublas_gemm=1;cudagraph=0". (default: "O2")
302 --device DEVICE The device used to deploy the model such as "cuda" or "cuda:0". Will detect from local available
303 GPUs if not specified. (default: "auto")
304 --overrides OVERRIDES
305 Chat configuration override. Configurations to override ChatConfig. Supports `conv_template`,
306 `context_window_size`, `prefill_chunk_size`, `sliding_window_size`, `attention_sink_size`,
307 `max_batch_size` and `tensor_parallel_shards`. Meanwhile, model chat could be explicitly specified
308 via details knobs, e.g. --overrides "context_window_size=1024;prefill_chunk_size=128". (default: "")
309 --generate-length GENERATE_LENGTH
310 The target length of the text generation. (default: "256")
311 --model-lib MODEL_LIB
312 The full path to the model library file to use (e.g. a ``.so`` file). If unspecified, we will use
313 the provided ``model`` to search over possible paths. It the model lib is not found, it will be
314 compiled in a JIT manner. (default: "None")
315
316__________________________________________________________________________________________________________________________________________
317
318$ mlc_llm package --help
319usage: MLC LLM Package CLI [-h] [--package-config PACKAGE_CONFIG] [--mlc-llm-home MLC_LLM_HOME] [--output OUTPUT]
320
321options:
322 -h, --help show this help message and exit
323 --package-config PACKAGE_CONFIG
324 The path to "mlc-package-config.json" which is used for package build. See "https://github.com/mlc-
325 ai/mlc-llm/blob/main/ios/MLCChat/mlc-package-config.json" as an example. (default: "mlc-package-
326 config.json")
327 --mlc-llm-home MLC_LLM_HOME
328 The source code path to MLC LLM. (default: the $MLC_LLM_HOME environment variable)
329 --output OUTPUT, -o OUTPUT
330 The path of output directory for the package build outputs. (default: "dist")
331