Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

MLC LLM

$ mlc_llm Foundation Med Risk
MLC AI · AI & Media · Apache-2.0 · macos / linux / windows

MLC LLM (mlc_llm) compiles and deploys quantized LLMs across CUDA, Metal, Vulkan, OpenCL, and mobile targets using Apache TVM. Its CLI orchestrates weight conversion (convert_weight), config generation (gen_config), model compilation (compile), interactive chat, and OpenAI-compatible serve.

FCRS-1.0 Score
69 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
pip install mlc-llm
CLI vs MCP Decision CLI Only

mlc_llm runs heavy native TVM compilation and GPU weight conversion on the local workstation.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 13 / 25

Interactive chat and blocking serve are common entrypoints; build subcommands (compile, convert_weight) emit verbose logs without --json.

  • No --json output mode across mlc_llm subcommands
  • mlc_llm chat opens an interactive REPL with /exit commands
Trust & Safety 20 / 25

Executes locally/offline once models are fetched, though convert_weight and compile write multi-GB artifacts to disk.

  • Local execution writing compiled libraries and quantized weights to -o
Setup & Portability 8 / 15

Requires matching mlc-llm + mlc-ai nightly/CUDA/Metal wheels or complex CMake/TVM source builds.

  • Wheel compatibility tied to specific CUDA/Metal/TVM builds
Utility & Efficiency 12 / 15

Enables portable GPU compilation across CUDA, Metal, Vulkan, and mobile runtimes.

  • Cross-backend --device targets (cuda, metal, vulkan, cpu)
Maintenance & Lineage 8 / 10

Maintained by MLC AI (mlc-ai/mlc-llm) under Apache-2.0.

  • Open-source mlc-ai/mlc-llm repository (Apache-2.0)
Docs & Verifiability 8 / 10

Thorough docs at llm.mlc.ai, though installation wheels and flags change frequently.

  • Official docs at llm.mlc.ai/docs/

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key
Credential Storage

Public models require no auth; gated Hugging Face weights pulled via HF:// read HF_TOKEN.

Side Effects
Read-Only Local Write
Cost & Quotas

Apache-2.0 open-source framework; requires GPU drivers/toolchains and matched mlc-ai wheels.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# MLC LLM Agent Rules
- Never run `mlc_llm chat` (interactive REPL) or `mlc_llm serve` (blocking daemon) synchronously.
- Set `--device` explicitly and confirm disk space before running `mlc_llm convert_weight` or `mlc_llm compile`.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect MLC LLM subcommands and flags
mlc_llm --help && mlc_llm compile --help

Lists compilation, weight conversion, and serving options without touching GPUs or downloading models.

Controlled Writes & Previews

Generate MLC chat configuration for a model
mlc_llm gen_config ./dist/Llama-3-8B --quantization q4f16_1 --conv-template llama-3 -o ./dist/Llama-3-8B-q4f16_1-MLC

Writes mlc-chat-config.json without executing a long model compilation.

Strengths for Agents

  • + Compiles LLMs across heterogeneous GPUs (CUDA, Metal, Vulkan) from one toolchain.
  • + Clean separation between gen_config, convert_weight, and compile stages.

Caveats & Pitfalls

  • ! Sensitive wheel/CUDA dependency matrix often requires isolated Conda environments.
  • ! No --json output support; chat is interactive and serve is a blocking daemon.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI