Skip to content
Back to skills

Backend Extension

ASecurity

"Tune LMDeploy PyTorch/TurboMind backend configs and extend PyTorch

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
devopspythonbashdebuggingapibackend

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Backend Extension?

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

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

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: backend-extension
description: "Tune LMDeploy PyTorch/TurboMind backend configs and extend PyTorch
  model/backend support safely."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# LMDeploy Backend Extension

Use this sub-skill when the task is about advanced LMDeploy backend selection, PyTorch/TurboMind engine tuning, scheduler/cache behavior, TurboMind build/runtime failures, or maintainer workflows for adding PyTorch model support.

Route elsewhere when the task is mainly:

- Basic offline text generation or prompt batching: use `pipeline-inference`.
- OpenAI-compatible API server, proxy, or client usage: use `serving-apis`.
- `lmdeploy lite` quantization artifact creation: use `quantization`.
- Images, video, multimodal messages, or VLM media loading: use `vision-language`.

## Start Here

1. Identify whether the user is tuning an existing deployment, selecting PyTorch vs TurboMind, debugging a backend/build failure, or adding model support.
2. For config tuning, read `references/backend-config.md` first, then `references/turbomind-config.md` for TurboMind-specific cache/config.ini details.
3. For new PyTorch model support, read `references/new-model-support.md` before editing model/configuration/registration code.
4. For import/build/runtime symptoms, read `references/troubleshooting.md` and run the smallest safe probe before changing dependencies or rebuilding.
5. Use `scripts/inspect_backend_config.py` to inspect installed `PytorchEngineConfig`, `TurbomindEngineConfig`, `QuantPolicy`, and module-map keys without loading model weights.

## Safe Probes

```bash
python scripts/inspect_backend_config.py --help
python scripts/inspect_backend_config.py --json --filter qwen
python -m lmdeploy check_env
```

If working inside an LMDeploy source checkout after backend/model edits, prefer targeted validation before broad tests:

```bash
pytest tests/pytorch/config/test_model_config.py
pytest tests/pytorch/paging/test_scheduler.py
```

## Key References

- `references/backend-config.md`: backend choice, high-value config fields, scheduler/cache knobs, and validation patterns.
- `references/turbomind-config.md`: TurboMind config.ini concepts, cache block sizing, prefix caching, and KV quant policy.
- `references/new-model-support.md`: PyTorch model patching, configuration builders, `custom_module_map`, model methods, and focused tests.
- `references/troubleshooting.md`: missing `_turbomind`, CUDA/NCCL/runtime mismatches, OOM cache tuning, multiprocessing guards, and source-build choices.

Files in this skill

  • SKILL.md2.5 KB
  • references/backend-config.md7.1 KB
  • references/new-model-support.md7.1 KB
  • references/troubleshooting.md6.9 KB
  • references/turbomind-config.md6 KB
  • scripts/inspect_backend_config.py11.6 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.