ludwig
Guides agents using Ludwig declarative machine learning configs, CLI commands, Python APIs, AutoML, HPO, serving, export, and deployment workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- ludwig
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guides agents using Ludwig declarative machine learning configs, CLI commands, Python APIs, AutoML, HPO, serving, export, and deployment workflows.
- disable-model-invocation
- true
02 资源文件 16
- 参考文档references/api-reference.md3.9 KB
- 参考文档references/cli-reference.md3.5 KB
- 参考文档references/configuration.md366 B
- 参考文档references/data-formats.md335 B
- 参考文档references/installation-and-extras.md2.7 KB
- 参考文档references/llm-and-multimodal.md307 B
- 参考文档references/repo-provenance.md1.5 KB
- 参考文档references/repo-routing-metadata.json553 B
- 参考文档references/troubleshooting.md2.1 KB
- 参考文档references/workflows.md234 B
- 脚本scripts/build_prediction_dataset.py842 B
- 脚本scripts/build_serving_payload.py1.8 KB
- 脚本scripts/check_env.py2.5 KB
- 脚本scripts/make_tiny_dataset.py1.5 KB
- 脚本scripts/make_tiny_tabular_project.py1.2 KB
- 脚本scripts/validate_ludwig_config.py2.4 KB
03 SKILL.md 正文
Ludwig Repo Skill
Use this skill when the task is about Ludwig, a declarative machine-learning framework that trains, fine-tunes, evaluates, serves, exports, and inspects models from YAML configs or the LudwigModel Python API.
First checks
- Confirm the task is using Ludwig as an installed package or intends to create Ludwig YAML/config/API calls. If the task is about editing this repository itself, use the maintainer notes in the relevant sub-skill and keep changes source-backed.
- Confirm Python 3.12+ for current Ludwig releases.
- Start with a minimal import check before relying on optional workflows:
python -c "import ludwig; print(ludwig.__version__)"
ludwig --help
- For a structured environment check, run the bundled helper:
python scripts/check_env.py --check-cli
Read installation-and-extras.md for extras and backend decisions. Read troubleshooting.md when imports, optional dependencies, configs, data columns, GPU paths, servers, or artifact paths fail.
Route by task
| User intent | Read this |
|---|---|
| Write or validate a Ludwig YAML config, generate a config from natural language, initialize/render a config, export JSON schema, prepare CSV/JSON/Parquet data, synthesize a tiny dataset, or debug config/data validation | configuration-and-data |
Run ludwig train, ludwig experiment, ludwig check_install, or Python LudwigModel.train/experiment; plan ECD, LLM, VLM, multimodal, timeseries, adapter, or quantization training |
training-and-experiments |
Load a trained model, predict, evaluate, forecast, inspect, collect weights/activations, reason about prediction/evaluation outputs, or use LudwigModel.predict/evaluate/forecast/generate |
prediction-evaluation-and-inspection |
Use AutoML, init_config, auto_train, hyperopt, Ray/Optuna executors, search spaces, or distributed tuning |
automl-and-hyperopt |
Serve a model, build /predict or /batch_predict payloads, use FastAPI/Ray Serve/KServe/vLLM shims, export models, export MLflow, or upload to a hub |
serving-export-and-deployment |
| Need all CLI subcommands and common flags | cli-reference.md |
| Need stable Python API signatures and return shapes | api-reference.md |
| Need to know whether this skill matches a current checkout | repo-provenance.md |
Core Ludwig mental model
- Ludwig configs declare
input_features,output_features, optionalcombiner,trainer,backend, preprocessing, hyperopt, adapter, quantization, and model-type sections. - Use
model_type: ecdfor ordinary encoder-combiner-decoder models over tabular, text, image, audio, timeseries, vector, H3, and related features. Usemodel_type: llmfor LLM fine-tuning/generation workflows. - CLI commands and Python APIs share the same config concepts. Prefer the CLI for reproducible shell workflows and
LudwigModelwhen embedding training/prediction in Python. - Output artifacts usually live under an output directory with experiment/model run subdirectories, model weights/config metadata, training statistics, prediction files, and optional logs/reports.
- GPU, Ray, KServe, vLLM, provider APIs, Hub uploads, and external dataset downloads are optional operational paths. Verify prerequisites before claiming they work.
Safe workflow defaults
- Use tiny local fixtures first. The bundled data/training helpers create local CSV/config files without network or credentials.
- Prefer help/schema/import checks before long training or server startup.
- Never start a long-running server, download large datasets/models, launch Ray clusters, upload artifacts, or run GPU LLM fine-tuning unless the user explicitly asks and the environment is prepared.
- When a workflow mentions optional extras, diagnose the missing package and suggest the narrow extra rather than installing
fullby default.
Evidence and staleness
This skill was distilled from source, package metadata, examples, and focused tests listed in repo-provenance.md. If the package version, CLI commands, config schema, or source commit differs, refresh this skill before relying on exact signatures or option names.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).