Skip to content

Repository files navigation

BitForge

Forge smaller, run faster, measure honestly.

BitForge is an Inference Foundry project for exploring LLM quantization—compressing models to lower bit widths and measuring the trade-offs in quality, speed, and memory.

Quick start

git clone https://github.com/Inference-Foundry/BitForge.git
cd BitForge
pip install -e .
bitforge --help
# Quantize
bitforge quantize --model-id meta-llama/Llama-2-7b-hf --bits 4 --method gptq --output-path ./out/model
# Evaluate
bitforge evaluate --model-id ./out/model --dataset wikitext2 --device cuda

Requirements: Python ≥ 3.8, PyTorch ≥ 2.1, GPU recommended for quantization.

What's in this repo

PathPurpose
bitforge/Python library — quantizers (GPTQ, AWQ, PTQ), calibration, metrics, CLI
experiments/Reproducible benchmark scripts (perplexity, latency, QLoRA merge, outliers)
site/Interactive quantization dashboard — open site/index.html in a browser

Documentation

Full documentation lives in the GitHub Wiki.

Wiki pageTopics
HomeOverview and research questions
Getting StartedInstall, hardware notes, first commands
ArchitecturePackage layout and module map
Quantization TheoryMethods, granularity, calibration
ExperimentsRunning benchmark scripts
CLI Referencequantize and evaluate
Runtime Integrationllama.cpp, vLLM, Super-Ollama
Interactive LabWeb dashboard guide
ContributingHow to help

Status

Early-stage (v0.1.0). Core interfaces and experiment scaffolding are in place; some pipelines return placeholder data until full calibration loops land. See the wiki Architecture page for details.

Related

Contributing

Contributions welcome. See the wiki Contributing page and open an issue before large changes.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages