writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
backend-extensionTune LMDeploy PyTorch/TurboMind backend configs and extend PyTorch model/backend support safely.
Independent GitHub snapshot · Automated classification · Original documentation governs
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:
pipeline-inference.serving-apis.lmdeploy lite quantization artifact creation: use quantization.vision-language.references/backend-config.md first, then references/turbomind-config.md for TurboMind-specific cache/config.ini details.references/new-model-support.md before editing model/configuration/registration code.references/troubleshooting.md and run the smallest safe probe before changing dependencies or rebuilding.scripts/inspect_backend_config.py to inspect installed PytorchEngineConfig, TurbomindEngineConfig, QuantPolicy, and module-map keys without loading model weights.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:
pytest tests/pytorch/config/test_model_config.py
pytest tests/pytorch/paging/test_scheduler.py
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.