How karitselmuthu/enterprise_llm_systems works
This is a local-first LLM inference lab, combining a bounded generation API and command-line experiments. Users submit prompts through the API or choose an experiment from the CLI; requests reach the runtime, which uses the deterministic toy model by default or an optionally configured local Transformers model. The experiments cover serving benchmarks, caching, speculative decoding, attention, quantization, memory estimates, and analytical parallelism. The excerpts establish the API/runtime and experiment/model relationships; CLI routing is documented in the README, but its implementation was not sampled.
Main entry points: cli.py Lab CLI · runtime.py Inference runtime · toy.py Toy causal model · api.py HTTP API
Components 13
Inference serving
- Inference runtime
src/enterprise_llm/runtime.py
Optimization experiments
- Serving benchmark
src/enterprise_llm/experiments.py - Parallelism analysis
src/enterprise_llm/experiments.py - KV cache experiment
src/enterprise_llm/experiments.py - Speculative decoding
src/enterprise_llm/experiments.py - Attention benchmark
src/enterprise_llm/experiments.py - Quantization experiment
src/enterprise_llm/experiments.py - Memory estimator
src/enterprise_llm/experiments.py
Model backends
- Toy causal model
src/enterprise_llm/toy.py - Transformers model
Other components
- User
Connections 15
- User → Lab CLI: runs experiments
README.md - User → HTTP API: sends requests
README.md - Lab CLI → Parallelism analysis: selects experiment
README.md - Lab CLI → Serving benchmark: selects benchmark
README.md - Lab CLI → KV cache experiment: selects experiment
README.md - Lab CLI → Speculative decoding: selects experiment
README.md - Lab CLI → Attention benchmark: selects benchmark
README.md - Lab CLI → Quantization experiment: selects experiment
README.md - Lab CLI → Memory estimator: selects estimate
README.md - HTTP API → Inference runtime: generates with
src/enterprise_llm/api.py - Serving benchmark → Inference runtime: benchmarks
src/enterprise_llm/experiments.py - KV cache experiment → Toy causal model: compares generation
src/enterprise_llm/experiments.py - Speculative decoding → Toy causal model: tests decoding
src/enterprise_llm/experiments.py - Inference runtime → Toy causal model: generates with
src/enterprise_llm/runtime.py - Inference runtime → Transformers model: loads optionally
src/enterprise_llm/runtime.py