본문으로 건너뛰기
cccskills
무료GitHub에 공개

bitsandbytes

Use bitsandbytes for k-bit PyTorch quantization, Hugging Face quantized model loading, 8-bit and paged optimizers, direct quantized layers/functions, and backend installation diagnostics.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Hugging Face
설치 방법 보기

포함된 파일(27)

  • SKILL.md4.3 KB
  • references/installation-compatibility.md1.9 KB
  • references/performance-and-benchmarks.md1.7 KB
  • references/repo-provenance.md1.8 KB
  • references/repo-routing-metadata.json561 B
  • references/troubleshooting.md2.4 KB
  • scripts/check-bitsandbytes-install.py1.6 KB
  • sub-skills/installation-diagnostics/references/backend-compatibility.md7.2 KB
  • sub-skills/installation-diagnostics/references/source-builds.md6.2 KB
  • sub-skills/installation-diagnostics/references/troubleshooting.md8.0 KB
  • sub-skills/installation-diagnostics/scripts/backend-report.py9.5 KB
  • sub-skills/installation-diagnostics/SKILL.md3.8 KB
  • sub-skills/optimizers-training/references/optimizer-api.md5.5 KB
  • sub-skills/optimizers-training/references/optimizer-workflows.md6.8 KB
  • sub-skills/optimizers-training/references/troubleshooting.md5.5 KB
  • sub-skills/optimizers-training/scripts/cpu-optimizer-smoke.py5.3 KB
  • sub-skills/optimizers-training/SKILL.md2.8 KB
  • sub-skills/quantized-modules-functions/references/api-reference.md8.4 KB
  • sub-skills/quantized-modules-functions/references/troubleshooting.md6.3 KB
  • sub-skills/quantized-modules-functions/references/workflows.md6.3 KB
  • sub-skills/quantized-modules-functions/scripts/quantized-module-smoke.py5.2 KB
  • sub-skills/quantized-modules-functions/SKILL.md2.3 KB
  • sub-skills/transformers-integrations/references/fsdp-qlora.md3.9 KB
  • sub-skills/transformers-integrations/references/integration-workflows.md6.9 KB
  • sub-skills/transformers-integrations/references/troubleshooting.md4.5 KB
  • sub-skills/transformers-integrations/scripts/transformers-bnb-config-check.py7.0 KB
  • sub-skills/transformers-integrations/SKILL.md2.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

bitsandbytes

Use this repo skill when a task involves bitsandbytes, k-bit PyTorch quantization, LLM.int8(), QLoRA, 4-bit/NF4/FP4 layers, 8-bit optimizers, paged optimizers, or bitsandbytes install/backend failures.

Start Here

  1. For any new environment, install with pip install bitsandbytes and verify with:

    python -c "import bitsandbytes as bnb; print(bnb.__version__)"
    python -m bitsandbytes
    
  2. If import or backend diagnostics fail, route first to sub-skills/installation-diagnostics/SKILL.md.

  3. If the user is using Hugging Face BitsAndBytesConfig, route to sub-skills/transformers-integrations/SKILL.md.

  4. If the user is replacing layers or calling bitsandbytes.functional, route to sub-skills/quantized-modules-functions/SKILL.md.

  5. If the user is choosing or debugging bitsandbytes.optim, route to sub-skills/optimizers-training/SKILL.md.

Route Map

User asks aboutUseWhy
pip install bitsandbytes, import bitsandbytes, python -m bitsandbytes, CUDA/ROCm/XPU/HPU/MPS/CPU support, missing libbitsandbytes_*, source builds, BNB_CUDA_VERSION, BNB_ROCM_VERSIONsub-skills/installation-diagnostics/SKILL.mdOwns install/backend compatibility and native library troubleshooting.
Transformers, Diffusers, PEFT, Accelerate, BitsAndBytesConfig, load_in_8bit, load_in_4bit, NF4, QLoRA, FSDP-QLoRAsub-skills/transformers-integrations/SKILL.mdOwns Hugging Face model-loading and finetuning integration patterns.
Linear8bitLt, Linear4bit, LinearNF4, Embedding8bit, Params4bit, Int8Params, QuantState, quantize_4bit, int8 vectorwise quantization, direct matmulsub-skills/quantized-modules-functions/SKILL.mdOwns direct module/function API usage and state-dict caveats.
Adam8bit, AdamW8bit, PagedAdamW8bit, Lion8bit, AdEMAMix8bit, GlobalOptimManager, StableEmbedding, optimizer memory savingssub-skills/optimizers-training/SKILL.mdOwns optimizer selection, training-loop integration, and state checks.

Shared References and Scripts

  • Read references/repo-provenance.md before deciding whether this skill matches a current bitsandbytes checkout or should be refreshed.
  • Read references/troubleshooting.md for cross-cutting routing from symptoms to the right sub-skill.
  • Read references/installation-compatibility.md for public install requirements and backend support summary.
  • Read references/performance-and-benchmarks.md before interpreting memory or speed claims.
  • Run scripts/check-bitsandbytes-install.py --json for a safe import/backend report that delegates to the bundled installation diagnostic helper.

Common Decision Points

  • BitsAndBytesConfig belongs to Transformers, not to the bitsandbytes package. Use the Transformers integration sub-skill for those configs.
  • CPU-only environments can validate imports, signatures, and some construction paths, but they do not prove CUDA/ROCm/XPU kernels or memory savings.
  • Direct quantized layers usually quantize when moved to a real device with .to(device). Construction on CPU is not the same as executing quantized kernels.
  • 8-bit optimizer memory savings depend on optimizer-state size; small tensors below min_8bit_size=4096 intentionally remain 32-bit.
  • Paged optimizers and many quantized model-loading paths need supported accelerator behavior and should not be promised from CPU-only checks.

Safe Validation Commands

python scripts/check-bitsandbytes-install.py --json
python sub-skills/installation-diagnostics/scripts/backend-report.py --json
python sub-skills/quantized-modules-functions/scripts/quantized-module-smoke.py --json
python sub-skills/optimizers-training/scripts/cpu-optimizer-smoke.py --optimizer adam8bit --steps 3
python sub-skills/transformers-integrations/scripts/transformers-bnb-config-check.py --mode qlora --json

Only run GPU or model-loading checks after confirming hardware, optional dependencies, model access, and that downloads or cache use are allowed.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa

무료

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa-v2

무료

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

ab3dmot

무료

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

acme

무료

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

VectorSpaceLab의 스킬 모두 보기

이 스킬의 문제 신고