Skip to content
Back to skills

Lmflow

ASecurity

"Routes LMFlow dataset, training, inference, evaluation, alignment,

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolspythongobashflaskapibackend

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill lmflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lmflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lmflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-lmflow/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-lmflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lmflow
description: "Routes LMFlow dataset, training, inference, evaluation, alignment,
  and multimodal workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# LMFlow

Use this skill for the LMFlow package when the task is about datasets, fine-tuning, inference, evaluation, post-training alignment, or optional multimodal extensions.

## Start Here

- Read `references/repo-provenance.md` when you need to compare this skill against the current checkout or decide whether it should be refreshed.
- Read `references/installation-and-environment.md` for install variants, optional extras, and backend split guidance.
- Read `references/api-map.md` for the core dataclasses, package entry points, and route map.
- Run `scripts/check_lmflow_environment.py` when you need a quick import and backend smoke check.

## Minimal Install

From the repository root, the base editable install is:

```bash
python -m pip install -e .
```

Base install covers LMFlow import, dataset utilities, full/LoRA/LISA fine-tuning, and Hugging Face-style inference/evaluation. Add only the extras needed for the selected workflow, for example:

- `pip install -e ".[vllm]"` for vLLM inference
- `pip install -e ".[sglang]"` for SGLang inference
- `pip install -e ".[trl]"` for DPO/DPOv2/iterative DPO
- `pip install -e ".[deepspeed]"` for DeepSpeed-backed workflows
- `pip install -e ".[ray]"` for reward-model inference and Ray-backed paths
- `pip install -e ".[multimodal]"` for image/text workflows
- `pip install -e ".[gradio]"` or `pip install -e ".[flask]"` for UI/service helpers

vLLM and SGLang have incompatible dependency stacks and should live in separate environments.

## Minimal Import Check

```bash
python -c "import lmflow; print(lmflow.__version__)"
```

If that works, you can route to a focused sub-skill for the workflow.

## Route Map

### `data-and-templates`
Use this for dataset JSON schemas, `Dataset` methods, conversation templates, validation, save/split/sample operations, and template customization.

### `training-and-optimization`
Use this for full fine-tuning, LoRA, QLoRA, LISA, custom optimizers, and command construction for the training launchers.

### `inference-and-evaluation`
Use this for non-training generation, chat/tool/speculative inference, evaluation, benchmarking, result handling, and optional vLLM/SGLang engines.

### `post-training-alignment`
Use this for reward modeling, reward-model inference, DPO, DPOv2, iterative DPO, RAFT, and LoRA merge workflows.

### `multimodal-and-extensions`
Use this for image/text data, visual chatbots, multimodal fine-tuning, and bounded extension notes such as tool finetuning or long-context templates.

## What Not To Expect From The Root

- Do not expect model-specific training recipes here.
- Do not expect engine-specific inference flags here.
- Do not expect dataset schema details here beyond the route map.
- Do not expect alignment algorithm depth here beyond the route map.
- Do not expect extension-specific guidance here beyond the route map.

## Shared Troubleshooting

Read `references/troubleshooting.md` for cross-cutting install/import issues, optional dependency pitfalls, data/config mistakes, CUDA availability, and output-path problems.

Files in this skill

  • SKILL.md3.2 KB
  • references/api-map.md2.6 KB
  • references/installation-and-environment.md2.4 KB
  • references/repo-provenance.md1.3 KB
  • references/repo-routing-metadata.json568 B
  • references/troubleshooting.md2.5 KB
  • scripts/check_lmflow_environment.py2.7 KB
  • sub-skills/data-and-templates/SKILL.md3 KB
  • sub-skills/data-and-templates/references/api-reference.md1.4 KB
  • sub-skills/data-and-templates/references/conversation-templates.md1.7 KB
  • sub-skills/data-and-templates/references/data-formats.md2.4 KB
  • sub-skills/data-and-templates/references/troubleshooting.md1.6 KB
  • sub-skills/data-and-templates/scripts/list_lmflow_templates.py1.6 KB
  • sub-skills/data-and-templates/scripts/validate_lmflow_dataset.py3.5 KB
  • sub-skills/inference-and-evaluation/SKILL.md2.6 KB
  • sub-skills/inference-and-evaluation/references/cli-reference.md1.3 KB
  • sub-skills/inference-and-evaluation/references/results-and-dataproto.md856 B
  • sub-skills/inference-and-evaluation/references/troubleshooting.md1.6 KB
  • sub-skills/inference-and-evaluation/references/workflows.md1.7 KB
  • sub-skills/inference-and-evaluation/scripts/build_inference_command.py7.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.