How kadirefeyazili/setpoint works
Setpoint is a local-inference configuration tool: its main workflow inspects a model and machine, estimates a feasible configuration, benchmarks candidates, and stores reliable results as hardware/model-specific profiles. Those profiles then inform serving, routing, exports, and regression checks. The README documents several additional command capabilities whose implementation details were not sampled; those branches are included without inferring internal call chains. Source-level links are limited to relationships shown in the index or excerpts.
Main entry points: cli.py CLI commands · data.py Panel data · __init__.py Hardware probe · store.py Profile store
Components 23
Command interface
- CLI commands
src/setpoint/cli.py
Model and hardware analysis
- Model resolution
src/setpoint/model/index.py - GGUF analysis
src/setpoint/model/analyze.py - Hardware probe
src/setpoint/hardware/__init__.py - VRAM budget
src/setpoint/budget/planner.py - System diagnosis
src/setpoint/doctor/checks.py
Measurement and profiles
- Tuning search
src/setpoint/tune/search.py - Benchmark execution
src/setpoint/tune/measure.py - llama.cpp adapter
src/setpoint/backend/llamacpp.py - Profile signature
src/setpoint/profile/signature.py - Profile store
src/setpoint/profile/store.py
Inference decisions
- Configured server
src/setpoint/serve.py - Chat client
src/setpoint/chat.py - Model choice
src/setpoint/route.py - Runner export
src/setpoint/export/llamaswap.py
Monitoring and tools
- Regression watch
src/setpoint/sentinel.py - Live monitoring
src/setpoint/monitor.py - Panel data
src/setpoint/panel/data.py - Interactive panel
src/setpoint/panel/app.py - Quant comparison
src/setpoint/quant.py - Speculation tests
src/setpoint/speculate.py - Chunking benchmark
src/setpoint/chunk/measure.py
Other components
- Operator
Connections 37
- Operator → CLI commands: invokes
- CLI commands → Model resolution: resolves model
src/setpoint/cli.py - Model resolution → GGUF analysis: analyzes model
src/setpoint/model/__init__.py - CLI commands → Hardware probe: probes machine
src/setpoint/cli.py - CLI commands → VRAM budget: requests budget
src/setpoint/cli.py - VRAM budget → GGUF analysis: uses model data
src/setpoint/budget/planner.py - VRAM budget → Hardware probe: uses snapshot
- CLI commands → System diagnosis: runs checks
src/setpoint/cli.py - CLI commands → Tuning search: starts tuning
src/setpoint/cli.py - Tuning search → Benchmark execution: searches candidates
src/setpoint/tune/search.py - Benchmark execution → llama.cpp adapter: runs benchmarks
src/setpoint/tune/measure.py - Benchmark execution → Hardware probe: reads hardware
src/setpoint/tune/measure.py - CLI commands → Profile store: loads and saves
src/setpoint/cli.py - Profile signature → GGUF analysis: digests model
src/setpoint/profile/signature.py - Profile signature → Hardware probe: signs machine
src/setpoint/profile/signature.py - CLI commands → Configured server: starts configured server
src/setpoint/cli.py - Configured server → llama.cpp adapter: builds server arguments
src/setpoint/serve.py - CLI commands → Chat client: opens chat
src/setpoint/cli.py - Chat client → Configured server: requests inference
- CLI commands → Model choice: chooses model
src/setpoint/cli.py - Model choice → Profile store: reads measured profiles
src/setpoint/route.py - CLI commands → Runner export: exports runner config
- Runner export → Profile store: formats profiles
src/setpoint/export/llamaswap.py - CLI commands → Regression watch: checks regressions
src/setpoint/cli.py - Regression watch → Profile store: uses stored evidence
src/setpoint/sentinel.py - CLI commands → Live monitoring: shows live state
src/setpoint/cli.py - CLI commands → Quant comparison: compares quantizations
src/setpoint/cli.py - CLI commands → Speculation tests: tests speculation
src/setpoint/cli.py - CLI commands → Chunking benchmark: measures chunking
- Interactive panel → Panel data: gathers views
src/setpoint/panel/app.py - Panel data → VRAM budget: reads budget
src/setpoint/panel/data.py - Panel data → Profile store: reads profiles
src/setpoint/panel/data.py - Panel data → Model choice: reads switch costs
src/setpoint/panel/data.py - Panel data → Regression watch: reads history
src/setpoint/panel/data.py - Panel data → Hardware probe: reads card state
src/setpoint/panel/data.py - Interactive panel → Configured server: starts chat server
src/setpoint/panel/app.py - Interactive panel → Chat client: maintains conversation
src/setpoint/panel/app.py