Use MLC LLM if you want a compiled local model runtime rather than another chat app. The example below uses the project’s Mac CPU + Metal packages and one of its documented quantized models. It is a developer setup, not a DMG install.
Install on Mac: Terminal
Start in a native Apple Silicon Terminal. With a native Conda distribution already installed, check that conda info reports osx-arm64. The MLC documentation uses Python 3.13 in its current Conda example; check current wheel availability before changing Python versions.
conda create -n mlc-mac python=3.13 pip -y
conda activate mlc-mac
conda install -c conda-forge git-lfs -y
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly-cpu mlc-ai-nightly-cpu
python -c 'import mlc_llm; print(mlc_llm.__file__)'
Choose the project’s compatible model format instead of pointing it at an arbitrary GGUF. The quickstart’s 8B example calls for at least 6 GB of available GPU memory. For a lower-memory Mac, choose a smaller MLC-format model with documented Metal support.
mlc_llm chat HF://mlc-ai/Llama-3-8B-Instruct-q4f16_1-MLC --device metal
Verify on-device generation
Record the runtime selection from the session that actually answers your prompt. If an offline repeat works and Metal is absent from its startup information, count local generation as verified and leave GPU use unverified. For a cold-start check, use the complete local model directory and repeat with a fresh process.
Complete the model download and any first-run compilation online. Check that startup selects Metal, then disconnect and send a new prompt in that session. A generated reply plus the Metal startup output checks local GPU execution. If a fresh offline launch tries to fetch files, point the CLI at a complete local MLC model directory rather than the Hub URL.
Make a reproducible record of the first working session
Keep a short setup record before changing a model or reinstalling a package. Record the Mac chip, macOS version, Conda environment, Python executable and the version of the MLC packages. The architecture shown by conda info should match the environment you intend to use. If it shows an Intel environment on an Apple Silicon Mac, reproduce the initial environment in a native terminal before investigating model errors. A Python import from one environment does not establish that a different terminal will run the same installation.
Use the same shell for the first import and the chat command. For a later launch, check whether you activated the same environment before changing any files. Record where Python imported mlc_llm from, as in the installation example. If that path points to another environment, correct the environment first. A missing import, a command that cannot be found, and a model that starts to load then fails are three different problems. The first visible error tells you which part of the setup actually ran.
Select a supported model and retain the full identifier, including the quantization suffix. If two downloads share a family name, compare their published format and size before deciding which to use. The example here uses a package prepared for MLC. A file from a runner that takes GGUF cannot be substituted for this folder. Open the published model documentation if the architecture or quantization differs from the working example.
Verify the model folder and the compiled library separately
The MLC CLI reference describes MODEL as a model folder or a name with its quantization scheme. The optional --model-lib argument supplies a compiled model library. The converted model’s files provide weights and configuration. The library provides compiled code for the compatible model configuration and device. Those parts have to agree when you provide the library yourself. A directory containing downloaded weight files does not prove that a compatible library is present or ready in the current environment.
Keep a named copy of the first working model directory. If the directory was built from a remote package, record the original identifier as well as the location where you will keep it for offline use. Use the full local path for the later test. Opening a new terminal in another working directory can make a relative path resolve to a different place. Quoting paths with spaces and writing down the working directory helps separate a path error from a compile error.
The exact files required vary with the selected model and MLC build. Preserve the complete folder rather than collecting only the files that look largest. If the CLI cannot identify the folder, compare it with the publisher’s expected layout and check that extraction completed. If it opens the folder and reports a library or device problem, compare the compiled target and artifact metadata with the model you chose. Use the library option only when you have an appropriate library and a supported combination.
Do the first compile or any required build step while online. Let it finish before disconnecting and save its output. Record whether the working launch used a compiled library you specified or the runtime’s documented default path. If a later model attempts another compilation, check whether a different model, device or configuration is being selected. This preserves a reliable baseline for one model even when another combination requires additional setup.
Confirm a complete answer and the actual compute path
Create a simple prompt with a verifiable result. For example, give the model “Lantern stock count is 12. The new recount says 17. Return the final count and whether it changed.” Expect a final count of 17 and an indication that it changed. Try the prompt in a fresh session and save the complete answer. A launcher reporting that it selected a device does not by itself establish that a new answer completed. Record both facts.
Keep the startup output from the session that produced the answer. The --device metal setting requests the Metal path. Check the actual device selection reported by the running configuration. If it replies without a clear device record, you can report successful local generation and leave the accelerator unverified. When comparing another path, keep the same model and prompt and check both output correctness and what the runtime reports. This avoids treating a measured change in startup as a change in generation speed.
For the warm offline test, keep the model loaded, disconnect and ask a different question whose answer is clear. Change the source value rather than reusing the same transcript. For a cold offline test, quit the process, start a fresh terminal, activate the environment and point at the complete local directory. Verify that the correct model loads and produces a new answer. A warm response can succeed because required assets are already held in memory. The cold result tells you whether it can be restarted from the stored files.
Use the first failure to narrow the next check
If the shell returns an import or command error before it mentions a model, check environment activation and the package path. Confirm that the wheel and Python setup are appropriate for your OS and architecture before installing more software. If the error first appears when opening a path, confirm it points to the intended model directory rather than a parent folder, a partially downloaded package or a different quantization. Do not delete a working environment to test a second installation.
If the CLI identifies the model and fails while requesting resources online, repeat the documented preparation step before taking the Mac offline. For the cold retry, use a complete local folder so an unresolved Hub identifier does not turn the test into a network download. An error referring to a library or target calls for checking model configuration, build compatibility and requested device. If the default local setup is already working, compare the failing and successful command lines one field at a time.
If the model starts but cannot complete the small question, collect the end of the log and check memory pressure before enlarging the context. Try a smaller supported model and the same question if the initial model cannot finish comfortably. Keep the successful setup and its answer record. An application that remains responsive during the short test is a better starting point for subsequent work than one that only loaded a model once.
Before using longer input, add a little source text while keeping the actual answer and output allowance fixed. Compare the first answer signal, the complete result and whether the required values stayed right. If the response fails only after adding a long input, keep the original prompt and time budget. A smaller context or selecting the relevant source line may solve that part of the problem. The first complete answer, the cold-start result and the observed device should each have their own line in your record.
Hand off a working offline model directory
For a setup another person will use, give them the Mac and OS requirements for the tested package, your environment and model versions, the model directory layout, and the expected starting command. Keep any compiled library associated with the model artifact it was built for. If you used a file checksum to confirm the source, add it to the handoff so the recipient can distinguish an incomplete copy from a runtime error. Include the working environment result rather than requiring them to guess your Python or the selected backend from a screenshot.
Give the recipient two small inputs: a direct question to confirm the model loaded and a short example that requires selecting the newer of two facts. Provide the expected answer and describe what the device log should show if you confirmed Metal. If their machine responds to the direct question but misses the revised value, record the launch as working and the task as inaccurate. If their warm run succeeds but the cold restart cannot find a file, compare the directory contents and start command before changing the model.
For a second model, make a new record and preserve the existing one until it passes the same checks. A result for an eight-billion-parameter package cannot show that a larger compiled model or a different quantization will fit. Record memory pressure during the answer, whether you changed other open applications, and whether the answer remained complete on a second fresh request. This gives you a usable way to decide when to use the new package.
Check for dependencies on the original checkout
Repeat the handoff from a different working directory before distributing it. Use the same model with its full filesystem path, and do the same for the compiled library if the command takes one. Keep the known input unchanged. If the original directory works and the second one fails, the error may name a relative file or a setting inherited from the first shell. Fix the startup instructions or specify the missing dependency before changing the model. If both sessions find the package but only one answers correctly, compare the model package and conversation settings reported in the two startup logs.
Who makes MLC LLM?
The MLC Community builds the open-source project, with Carnegie Mellon University’s FLAME center documenting the work. The community announced MLC LLM on May 1, 2023; that is the project announcement date, not a company founding date.
References: Mac package instructions · CLI documentation.