How pedromglo/tesy works
Tesy is an experimental research toolkit for assessing sparse/MoE inference on memory-constrained local hosts, not a production inference runtime. The main workflow inspects a host and locked model/backend, plans feasible placement, captures or ingests expert-routing traces, then simulates cache behavior and analyzes expert-byte capacity. Separate experiments measure mixed residency and expert crossover, with provenance checks supporting reproducible claims. The README documents these capabilities; relationships below use explicit CLI dispatch/import references or README statements, and unsampled implementation details are not inferred.
Main entry points: cli.py Tesy CLI · trace.py Routing Trace · tesy_moe_trace.cpp Native MoE Trace · native_trace.py Trace Summary
Components 23
Host and Inputs
- Local Host
- Model Artifact
- Tesy CLI
src/tesy/cli.py - Host Inspection
src/tesy/doctor.py - Model Verification
src/tesy/models.py - Backend Checks
src/tesy/backend.py - Placement Planning
src/tesy/planner.py
Trace Analysis
- Routing Trace
src/tesy/trace.py - Native MoE Trace
native/tesy_moe_trace.cpp - Trace Summary
src/tesy/native_trace.py - Expert Windows
src/tesy/weighted_trace.py - Cache Simulation
src/tesy/simulator.py - GGUF Inventory
src/tesy/gguf_inventory.py - Capacity Headroom
src/tesy/headroom.py
Residency Experiments
- Mixed Residency
src/tesy/mixed_residency.py - Overlap Bounds
src/tesy/mixed_residency_overlap_bound.py - Expert Crossover
src/tesy/expert_crossover.py - Placement Capacity
src/tesy/placement_capacity.py
Measurement Evidence
- Runtime Provenance
src/tesy/runtime_provenance.py - Crossover Provenance
src/tesy/crossover_provenance.py
Other components
- Researcher
- llama.cpp
- Research Results
Connections 25
- Researcher → Tesy CLI: runs commands
README.md - Tesy CLI → Host Inspection: dispatches inspection
src/tesy/cli.py - Tesy CLI → Model Verification: dispatches model checks
src/tesy/cli.py - Tesy CLI → Backend Checks: dispatches backend checks
src/tesy/cli.py - Tesy CLI → Placement Planning: dispatches planning
src/tesy/cli.py - Tesy CLI → Trace Summary: dispatches trace tools
src/tesy/cli.py - Tesy CLI → Cache Simulation: dispatches simulation
src/tesy/cli.py - Host Inspection → Local Host: inspects
src/tesy/doctor.py - Model Verification → Model Artifact: verifies
src/tesy/models.py - Backend Checks → llama.cpp: probes backend
src/tesy/backend.py - Researcher → Routing Trace: provides trace
README.md - llama.cpp → Native MoE Trace: emits routed experts
README.md - Routing Trace → Trace Summary: summarizes
README.md - Trace Summary → Expert Windows: supports window analysis
src/tesy/weighted_trace.py - Routing Trace → Cache Simulation: drives simulation
README.md - GGUF Inventory → Model Artifact: derives expert bytes
src/tesy/gguf_inventory.py - Native MoE Trace → GGUF Inventory: pairs with inventory
README.md - Native MoE Trace → Capacity Headroom: supports headroom analysis
src/tesy/headroom.py - Researcher → Mixed Residency: runs experiments
README.md - Mixed Residency → Overlap Bounds: analyzes overlap
- Researcher → Expert Crossover: runs crossover
README.md - Researcher → Placement Capacity: evaluates placement
README.md - Researcher → Runtime Provenance: checks runtime identity
README.md - Runtime Provenance → Crossover Provenance: shared provenance checks
src/tesy/crossover_provenance.py - Tesy CLI → Research Results: prints analysis output
README.md