计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
installation-diagnostics【效率与协作】Diagnose and fix bitsandbytes installation, import, backend compatibility, native-library loading, and source-build issues.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task involves installing bitsandbytes, debugging import bitsandbytes, checking CPU/CUDA/ROCm/XPU/HPU/MPS support, interpreting python -m bitsandbytes, choosing a source build, resolving native library load failures, or preparing sanitized environment details for an issue.
libbitsandbytes_cpu, libbitsandbytes_cuda*, libbitsandbytes_rocm*, libcudart, amdhip64, fatbinwrap, no kernel image, Configured CUDA binary not found, or CPU-only native methods.BNB_CUDA_VERSION or BNB_ROCM_VERSION, or the selected binary does not match PyTorch's reported accelerator runtime.BitsAndBytesConfig, QLoRA, PEFT, Accelerate, Diffusers, or model-loading choices: route to ../transformers-integrations/SKILL.md.bitsandbytes.nn, bitsandbytes.functional, quantized layer, state dict, or primitive API usage: route to ../quantized-modules-functions/SKILL.md.GlobalOptimManager, training-loop integration, or paged optimizer usage: route to ../optimizers-training/SKILL.md.python -m bitsandbytes, python -c "import torch; print(torch.__version__, torch.version.cuda, torch.version.hip, torch.cuda.is_available())", and python scripts/backend-report.py --json from this sub-skill when available.torch.version.cuda or torch.version.hip) plus any BNB_*_VERSION override against the bundled libbitsandbytes_* filenames.references/backend-compatibility.md for support matrices and expected binaries, references/source-builds.md for safe build choices, and references/troubleshooting.md for symptom-to-fix guidance.python -m bitsandbytes
python sub-skills/installation-diagnostics/scripts/backend-report.py --help
python sub-skills/installation-diagnostics/scripts/backend-report.py --json
python -c "import bitsandbytes, torch; print(bitsandbytes.__version__, torch.__version__)"
Avoid running GPU optimizer or quantized model smoke tests unless the user confirms accelerator hardware is available and they want kernel execution. Avoid installer scripts that download or mutate CUDA/ROCm; distill their intent into source-build guidance instead.
Collect only sanitized details: OS and architecture, Python/PyTorch/bitsandbytes versions, torch.version.cuda or torch.version.hip, torch.cuda.is_available(), visible device names if the user agrees, BNB_CUDA_VERSION/BNB_ROCM_VERSION values, expected/bundled native library names, the minimal traceback, and whether the install came from a wheel or source build. Do not include access tokens, usernames, full home paths, private project paths, or complete environment dumps.