Gheubj/Adaptive
A llama.cpp CLI for local GGUF inference, hardware profiling, and repeatable benchmarks
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Adaptive is a Python control layer for llama.cpp, not a separate inference engine. The adaptive console script enters at adaptive_local.cli:entrypoint; strict TOML/Pydantic configuration, doctor, hardware inspection, and a local JSON model registry sit above RuntimeAdapter v1. The caller supplies a registered model ID or GGUF path. The llama.cpp adapter manages an owned process group and sends inference traffic to a private 127.0.0.1 llama-server.
The manifest includes httpx, huggingface_hub, pydantic, and psutil, with Optuna available through an optional extra. Read-only Linux collectors separate a stable hardware fingerprint from a live resource snapshot and persist profiles in an atomic local cache. The benchmark engine writes local JSONL evidence and feeds experimental AutoTune; the runtime manager separately handles artifact compatibility, integrity checks, isolated caching, and rollback. The adapter is an extension boundary, not evidence that multiple inference backends ship today.
Key Capabilities & Differentiators
The verified execution path is Linux x86_64 CPU with llama.cpp and user-supplied GGUF weights. It supports streaming, cancellation, timeouts, and conservative RAM admission. Hugging Face discovery is limited to metadata searches and heuristic recommendations; acquisition requires explicit approval and a pinned commit. It does not execute repository code or fetch weights automatically. Local GGUF imports can be registered with optional SHA-256 verification.
The benchmark engine supports explicit configuration comparisons, resource measurements, desktop-impact checks, deterministic quality evaluation, and uncertainty summaries. Experimental AutoTune includes heuristic and random search, optional Optuna TPE, successive halving, Pareto analysis, and independent validation infrastructure. Opt-in resource management adds observation and reservation accounting; CPU affinity additionally requires explicit flags and a verified Adaptive-owned child. These mechanisms do not establish a performance gain, and detection code does not establish CUDA, ROCm, Vulkan, Windows, or macOS support.
Trade-offs & Limitations
Compared with running llama-server directly, Adaptive adds hardware inspection, artifact lifecycle controls, and repeatable configuration comparisons. That is useful when you manage several machines or need to justify a configuration change with measurements; it is additional setup if all you need is to launch one known model. Compared with a hosted OpenAI API, the offline path keeps prompts and weights under local control and needs no cloud key, but leaves model selection, capacity, and runtime maintenance to the operator.
Do not adopt it on the assumption that tuning will improve throughput: none of the four preregistered confirmatory hypotheses met acceptance criteria on the tested Linux/CPU configurations. Unverified profiles are not applied automatically, and resource management is opt-in. Size for the chosen GGUF and quantization, context, and concurrent workload rather than assuming a collection label guarantees fit. Adaptive is Apache-2.0; model weights and runtime artifacts need separate license review.
Hardware & Deployment Guide
Use Python 3.11 or 3.12 on the verified Linux x86_64 CPU path. Install adaptive-local==0.5.0a1 in a virtual environment, then use adaptive doctor and adaptive hardware inspect to check readiness. The Python package bundles neither llama.cpp nor model weights. Supply a compatible llama-server or a reviewed runtime archive, plus a GGUF file. adaptive runtime install presents a plan for explicit approval; the checked-in llamacpp-a300a9c-linux-x86_64-cpu-local artifact has no download URL. Once the runtime and weights are present, inference can run offline without a cloud key.
Start with an explicit adaptive run, then use adaptive benchmark run --suite quick with an explicit model and thread settings before adopting a tuning profile. The v0.2.0a1 preview introduced cloud BYOK and gateway features, whereas the v0.5.0-alpha.1 snapshot centers on local GGUF execution, runtime management, and benchmarks. Do not use the older gateway milestone as evidence of a supported public serving path in this alpha.
Engineers running chosen GGUF models on Linux x86_64 CPU who want offline execution, runtime provenance, and measured comparisons before changing settings.
You need validated GPU or multi-GPU inference, a supported public serving API, or automatic speedups you can rely on in production.
Quick Start & Installation
python3 -m venv .venv . .venv/bin/activate python -m pip install --upgrade pip python -m pip install adaptive-local==0.5.0a1 adaptive --version adaptive doctor adaptive hardware inspect
Comparison vs. Top LLMs & Inference Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| Adaptive ★ | 20 | — | Python | Apache-2.0 | A llama.cpp CLI for local GGUF inference, hardware profiling, and repeatable ben |
| OmniRoute | 92.2k | +1.4k | TypeScript | MIT | Self-hosted OpenAI-compatible gateway for multi-provider routing and fallback |
| nano-vllm | 16.7k | +95 | Python | MIT | A compact vLLM-style Python engine for offline GPU batch inference |
| ollama | 189.1k | +741 | Go | MIT | Go-based LLM serving layer for local model management and inference |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Gheubj/Adaptive.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about Adaptive
How do I integrate Adaptive into a local workflow?
adaptive run. The llama.cpp adapter owns a llama-server process and communicates over private loopback. The verified integration surface is the CLI; treat the loopback server as an internal component rather than a supported public API.Is a 16 GB machine sufficient, and how much VRAM do I need?
adaptive hardware inspect and benchmark the exact model and context you intend to run.Can we use Adaptive commercially and run it entirely on our own machines?
When should I choose Adaptive over direct llama.cpp or a hosted OpenAI API?
llama-server when you need hardware diagnostics, runtime verification and rollback, or repeatable comparisons between configurations. Use llama-server directly if you already manage those pieces. A hosted OpenAI API is a different deployment choice: it avoids local runtime and weight management but requires a remote service and sends inference requests off the machine.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy