bitsandbytes
Use bitsandbytes for k-bit PyTorch quantization, Hugging Face quantized model loading, 8-bit and paged optimizers, direct quantized layers/functions, and…
Skill by VectorSpaceLab
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/vectorspacelab-bitsandbytes
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/bitsandbytes
What's inside
- Skill name
bitsandbytes- Description
- 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.
- License
- MIT
- Metadata
- disco-role: operating
- Instructions
- 56 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (27)
- SKILL.md
- installation-compatibility.md · references/
- performance-and-benchmarks.md · references/
- repo-provenance.md · references/
- repo-routing-metadata.json · references/
- troubleshooting.md · references/
- check-bitsandbytes-install.py · scripts/
- SKILL.md · sub-skills/installation-diagnostics/
- backend-compatibility.md · sub-skills/installation-diagnostics/references/
- source-builds.md · sub-skills/installation-diagnostics/references/
- troubleshooting.md · sub-skills/installation-diagnostics/references/
- backend-report.py · sub-skills/installation-diagnostics/scripts/
- SKILL.md · sub-skills/optimizers-training/
- optimizer-api.md · sub-skills/optimizers-training/references/
- optimizer-workflows.md · sub-skills/optimizers-training/references/
- troubleshooting.md · sub-skills/optimizers-training/references/
- cpu-optimizer-smoke.py · sub-skills/optimizers-training/scripts/
- SKILL.md · sub-skills/quantized-modules-functions/
- api-reference.md · sub-skills/quantized-modules-functions/references/
- troubleshooting.md · sub-skills/quantized-modules-functions/references/
- workflows.md · sub-skills/quantized-modules-functions/references/
- quantized-module-smoke.py · sub-skills/quantized-modules-functions/scripts/
- SKILL.md · sub-skills/transformers-integrations/
- fsdp-qlora.md · sub-skills/transformers-integrations/references/
- integration-workflows.md · sub-skills/transformers-integrations/references/
- troubleshooting.md · sub-skills/transformers-integrations/references/
- transformers-bnb-config-check.py · sub-skills/transformers-integrations/scripts/
SKILL.md (first lines)
# 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: ```bash 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 about | Use | Why | | --- | --- | --- | | `pip install bitsandbytes`, `import bitsandbytes`, `python -m bitsandbytes`, CUDA/ROCm/XPU/HPU/MPS/CPU support, missing `libbitsandbytes_*`, source builds, `BNB_CUDA_VERSION`, `BNB_ROCM_VERSION` | `sub-skills/installation-diagnostics/SKILL.md` | Owns install/backend compatibility and native library troubleshooting. | | Transformers, Diffusers, PEFT, Accelerate, `BitsAndBytesConfig`, `load_in_8bit`, `load_in_4bit`, NF4, QLoRA, FSDP-QLoRA | `sub-skills/transformers-integrations/SKILL.md` | Owns Hugging Face model-loading and finetuning integration patterns. | | `Linear8bitLt`, `Linear4bit`, `LinearNF4`, `Embedding8bit`, `Params4bit`, `Int8Params`, `QuantState`, `quantize_4bit`, int8 vectorwise quantization, direct matmul | `sub-skills/quantized-modules-functions/SKILL.md` | Owns direct module/function API usage and state-dict caveats. | | `Adam8bit`, `AdamW8bit`, `PagedAdamW8bit`, `Lion8bit`, `AdEMAMix8bit`, `GlobalOptimManager`, `StableEmbedding`, optimizer memory savings | `sub-skills/optimizers-training/SKILL.md` | Owns 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 ```bash 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.
From VectorSpaceLab/AREX-Skill, MIT.
More from VectorSpaceLab/AREX-Skill
- 0.563score
data-designer-repo-skill
VectorSpaceLab
Use when you need to design DataDesigner configs, run preview/create/validate workflows, inspect the CLI or agent context, work with plugins or MCP tools, or…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
everos
VectorSpaceLab
Use this skill for EverOS local-first Markdown memory service setup, HTTP memory and knowledge APIs, cascade/OME operations, and observability integration.
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
bentoml
VectorSpaceLab
Use BentoML to author model-serving Services, build and containerize Bentos, run HTTP/gRPC servers and clients, manage models, operate the CLI and BentoCloud…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
dash
VectorSpaceLab
Use when building, debugging, testing, or maintaining Plotly Dash applications, callbacks, server backends, component packages, renderer internals, and Dash…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
diffusers
VectorSpaceLab
Use this skill for Hugging Face Diffusers tasks: pipeline inference, schedulers, adapters/loaders, training recipes, modular pipelines, conversion helpers…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
espnet
VectorSpaceLab
Use when working with ESPnet speech AI toolkit: installation, ESPnet2 recipes and training, pretrained inference/model zoo, ESPnet3 stage workflows, and…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
alphafold3
VectorSpaceLab
Use this skill for AlphaFold 3 input preparation, prediction command planning, output interpretation, and Python API inspection.
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
autogen
VectorSpaceLab
Use this skill for maintaining, migrating, debugging, and safely operating Microsoft AutoGen Python 0.7.x applications, including AgentChat, Core runtimes…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
browser-use
VectorSpaceLab
Use this self-contained Browser Use repo skill for Python agents that automate websites, browser sessions, custom tools, LLM/provider setup, persistent CLI…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
dagster
VectorSpaceLab
Use when working with Dagster OSS: assets, jobs, Definitions, config/resources, schedules/sensors, automation, CLI/local development, deployment operations…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
datasets
VectorSpaceLab
Use this skill when working with Hugging Face Datasets: loading local or Hub datasets, defining Features schemas, processing/streaming datasets, converting…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
geopandas
VectorSpaceLab
Use when working with GeoPandas GeoDataFrame and GeoSeries workflows, vector geospatial I/O, CRS-aware spatial operations, mapping, geocoding, and…
SkillBFreshness: B★ 341Claude Code +9
Signals
- Stars
- 341
- Forks
- 26
- Open issues
- 0
- Last commit (this folder)
- Aug 26, 2026 (2 months ago)
- Last release
- Sep 2, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/VectorSpaceLab/AREX-Skill
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from VectorSpaceLab
- 0.563score
bentoml
VectorSpaceLab
Use BentoML to author model-serving Services, build and containerize Bentos, run HTTP/gRPC servers and clients, manage models, operate the CLI and BentoCloud…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
dagster
VectorSpaceLab
Use when working with Dagster OSS: assets, jobs, Definitions, config/resources, schedules/sensors, automation, CLI/local development, deployment operations…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
alphafold3
VectorSpaceLab
Use this skill for AlphaFold 3 input preparation, prediction command planning, output interpretation, and Python API inspection.
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
autogen
VectorSpaceLab
Use this skill for maintaining, migrating, debugging, and safely operating Microsoft AutoGen Python 0.7.x applications, including AgentChat, Core runtimes…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
browser-use
VectorSpaceLab
Use this self-contained Browser Use repo skill for Python agents that automate websites, browser sessions, custom tools, LLM/provider setup, persistent CLI…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
dash
VectorSpaceLab
Use when building, debugging, testing, or maintaining Plotly Dash applications, callbacks, server backends, component packages, renderer internals, and Dash…
SkillBFreshness: B★ 341Claude Code +9
Cite this page
bitsandbytes skill. Agent Mart. https://agentmart.dev/skills/vectorspacelab-bitsandbytes (last updated 2026-10-24)