writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
quantizationPlan LMDeploy Lite quantization, KV-cache quantization, and quantized model handoff workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is to create, select, validate, or hand off quantized LMDeploy model artifacts. It covers LMDeploy Lite weight quantization, online KV-cache quantization, and the minimum inference/server commands needed to prove a quantized artifact is usable.
lmdeploy lite auto_awq, auto_gptq, calibrate, and smooth_quant command planning.quant_policy selection for online KV-cache quantization: none, INT4, INT8, FP8, FP8_E5M2, and TurboQuant.pipeline, lmdeploy chat, and lmdeploy serve api_server.pipeline() usage depth to pipeline-inference.serving-apis.vision-language.backend-extension.references/cli-reference.md for command flags, defaults, artifact formats, and quant_policy values.references/workflows.md for AWQ, GPTQ, SmoothQuant/FP8, KV-cache quantization, and validation workflows.references/qwen3-quantization-recipes.md for adaptable Qwen3 llm-compressor AWQ/GPTQ recipes.references/troubleshooting.md when quantization fails or a quantized output will not load.scripts/plan_quantization_command.py to generate safe, non-executing command plans and catch common incompatible options.--w-bits 4 --w-group-size 128 --calib-samples 128 --calib-seqlen 2048 --batch-size 1 for a first W4A16 artifact.--calib-seqlen and keep --batch-size 1 before reducing samples when calibration OOMs.--work-dir after the base model and quantization format, such as model-name-awq-4bit, so LMDeploy can more easily infer the intended chat template.--model-format awq for LMDeploy AWQ artifacts and --model-format gptq for GPTQ artifacts; do not swap them.--quant-policy 8 when accuracy matters, use 4 for more memory pressure, and reserve 42 for PyTorch TurboQuant-compatible workloads.