# akgithub2028/efficient-smolvla architecture

> Architecture diagram of the GitHub repository akgithub2028/efficient-smolvla, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/akgithub2028/efficient-smolvla
- Repository: https://github.com/akgithub2028/efficient-smolvla

## Overview

This repository is a reproducible SmolVLA inference-efficiency study, not a general-purpose serving system. The principal workflow is to load the checkpoint and LIBERO environment, profile or evaluate inference variants on paired episodes, persist episode measurements, and compute paired statistics and report figures. Separate probes examine CUDA-graph replay, flow-noise sensitivity, and warm-start calibration. The graph preserves those documented branches; some internal wiring is shown only by the README or source index, so uncertain links are omitted. Only the supplied excerpts and index were inspected.

Main entry points: [`src/evla/loading.py`](https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/loading.py) (Policy and env loading), [`src/evla/run_eval.py`](https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/run_eval.py) (Paired rollout runner), [`src/evla/profile.py`](https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/profile.py) (Component profiling), [`src/evla/methods.py`](https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/methods.py) (Inference variants)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inference["Inference and evaluation"]
  node_loading["Policy and env loading<br/>[loading.py]"]
  node_methods["Inference variants<br/>[methods.py]"]
  node_runner["Paired rollout runner<br/>[run_eval.py]"]
end

subgraph group_experiments["Profiling and probes"]
  node_profile["Component profiling<br/>[profile.py]"]
  node_graphbench["CUDA graph benchmark<br/>[bench_graph.py]"]
  node_noise["Noise sensitivity probe<br/>[noise_spread.py]"]
  node_warmcal["Warm-start calibration<br/>[calibrate_warm.py]"]
end

subgraph group_analysis["Results and analysis"]
  node_episodes[("Episode results")]
  node_common["Episode data helpers<br/>[common.py]"]
  node_analyze["Run analysis<br/>[analyze.py]"]
  node_stats["Paired statistics<br/>[stats.py]"]
  node_reportnums["Report number aggregation<br/>[report_numbers.py]"]
  node_profiles[("Profile and latency data")]
end

subgraph group_presentation["Research outputs"]
  node_website["Interactive study site<br/>[lab.js]"]
  node_report["Research report<br/>[main.tex]"]
  node_literature["Literature matrix"]
end

node_researcher(("Researcher"))
node_lerobot["LeRobot rollout"]
node_libero["LIBERO simulation"]
node_checkpoint["SmolVLA checkpoint"]
node_gpu["GPU device"]

node_researcher -->|"launches evaluation"| node_runner
node_runner -->|"builds policy"| node_loading
node_loading -->|"loads weights"| node_checkpoint
node_loading -->|"configures environment"| node_libero
node_runner -->|"installs variants"| node_methods
node_runner -->|"calls rollout"| node_lerobot
node_runner -->|"writes episode data"| node_episodes
node_researcher -->|"launches profiling"| node_profile
node_profile -->|"builds policy"| node_loading
node_profile -->|"measures sampler"| node_methods
node_profile -->|"measures timings"| node_gpu
node_researcher -->|"launches benchmark"| node_graphbench
node_graphbench -->|"builds policy"| node_loading
node_graphbench -->|"benchmarks graph sampler"| node_methods
node_researcher -->|"launches probe"| node_noise
node_noise -->|"builds policy"| node_loading
node_noise -->|"instruments policy"| node_methods
node_researcher -->|"launches calibration"| node_warmcal
node_warmcal -->|"builds policy"| node_loading
node_warmcal -->|"tests warm starts"| node_methods
node_researcher -->|"runs analysis"| node_analyze
node_analyze -->|"reads episode data"| node_episodes
node_analyze -->|"uses row helpers"| node_common
node_analyze -->|"computes comparisons"| node_stats
node_reportnums -->|"reads episode data"| node_episodes
node_reportnums -->|"computes paired results"| node_stats
node_reportnums -->|"reads latency data"| node_profiles
node_profile -->|"writes profile data"| node_profiles
node_researcher -->|"opens study site"| node_website
node_researcher -->|"reads study report"| node_report
node_researcher -->|"consults matrix"| node_literature

click node_loading "https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/loading.py"
click node_methods "https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/methods.py"
click node_runner "https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/run_eval.py"
click node_profile "https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/profile.py"
click node_graphbench "https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/bench_graph.py"
click node_noise "https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/noise_spread.py"
click node_warmcal "https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/calibrate_warm.py"
click node_episodes "https://github.com/akgithub2028/efficient-smolvla/tree/main/results/t4/raw"
click node_common "https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/common.py"
click node_analyze "https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/analyze.py"
click node_stats "https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/stats.py"
click node_reportnums "https://github.com/akgithub2028/efficient-smolvla/blob/main/scripts/report_numbers.py"
click node_profiles "https://github.com/akgithub2028/efficient-smolvla/tree/main/results/t4/profile"
click node_website "https://github.com/akgithub2028/efficient-smolvla/blob/main/website/lab.js"
click node_report "https://github.com/akgithub2028/efficient-smolvla/blob/main/paper/main.tex"
click node_literature "https://github.com/akgithub2028/efficient-smolvla/blob/main/deliverables/literature_matrix.xlsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_loading,node_methods,node_runner toneBlue
class node_profile,node_graphbench,node_noise,node_warmcal toneAmber
class node_episodes,node_common,node_analyze,node_stats,node_reportnums,node_profiles toneMint
class node_website,node_report,node_literature toneRose
class node_researcher,node_lerobot,node_libero,node_checkpoint,node_gpu toneIndigo
```

## Components

### Inference and evaluation

- [Policy and env loading](https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/loading.py): `src/evla/loading.py`
- [Inference variants](https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/methods.py): `src/evla/methods.py`
- [Paired rollout runner](https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/run_eval.py): `src/evla/run_eval.py`

### Profiling and probes

- [Component profiling](https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/profile.py): `src/evla/profile.py`
- [CUDA graph benchmark](https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/bench_graph.py): `src/evla/bench_graph.py`
- [Noise sensitivity probe](https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/noise_spread.py): `src/evla/noise_spread.py`
- [Warm-start calibration](https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/calibrate_warm.py): `src/evla/calibrate_warm.py`

### Results and analysis

- [Episode results](https://github.com/akgithub2028/efficient-smolvla/tree/main/results/t4/raw): `results/t4/raw`
- [Episode data helpers](https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/common.py): `src/evla/common.py`
- [Run analysis](https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/analyze.py): `src/evla/analyze.py`
- [Paired statistics](https://github.com/akgithub2028/efficient-smolvla/blob/main/src/evla/stats.py): `src/evla/stats.py`
- [Report number aggregation](https://github.com/akgithub2028/efficient-smolvla/blob/main/scripts/report_numbers.py): `scripts/report_numbers.py`
- [Profile and latency data](https://github.com/akgithub2028/efficient-smolvla/tree/main/results/t4/profile): `results/t4/profile`

### Research outputs

- [Interactive study site](https://github.com/akgithub2028/efficient-smolvla/blob/main/website/lab.js): `website/lab.js`
- [Research report](https://github.com/akgithub2028/efficient-smolvla/blob/main/paper/main.tex): `paper/main.tex`
- [Literature matrix](https://github.com/akgithub2028/efficient-smolvla/blob/main/deliverables/literature_matrix.xlsx): `deliverables/literature_matrix.xlsx`

### Other components

- **Researcher**
- **LeRobot rollout**
- **LIBERO simulation**
- **SmolVLA checkpoint**
- **GPU device**

## Connections

- Researcher → Paired rollout runner: launches evaluation (evidence: `README.md`)
- Paired rollout runner → Policy and env loading: builds policy (evidence: `src/evla/run_eval.py`)
- Policy and env loading → SmolVLA checkpoint: loads weights (evidence: `README.md`)
- Policy and env loading → LIBERO simulation: configures environment (evidence: `src/evla/loading.py`)
- Paired rollout runner → Inference variants: installs variants (evidence: `src/evla/run_eval.py`)
- Paired rollout runner → LeRobot rollout: calls rollout (evidence: `src/evla/run_eval.py`)
- Paired rollout runner → Episode results: writes episode data (evidence: `README.md`)
- Researcher → Component profiling: launches profiling (evidence: `README.md`)
- Component profiling → Policy and env loading: builds policy (evidence: `src/evla/profile.py`)
- Component profiling → Inference variants: measures sampler (evidence: `src/evla/profile.py`)
- Component profiling → GPU device: measures timings (evidence: `src/evla/profile.py`)
- Researcher → CUDA graph benchmark: launches benchmark (evidence: `README.md`)
- CUDA graph benchmark → Policy and env loading: builds policy (evidence: `src/evla/bench_graph.py`)
- CUDA graph benchmark → Inference variants: benchmarks graph sampler (evidence: `src/evla/bench_graph.py`)
- Researcher → Noise sensitivity probe: launches probe (evidence: `src/evla/noise_spread.py`)
- Noise sensitivity probe → Policy and env loading: builds policy (evidence: `src/evla/noise_spread.py`)
- Noise sensitivity probe → Inference variants: instruments policy (evidence: `src/evla/noise_spread.py`)
- Researcher → Warm-start calibration: launches calibration (evidence: `README.md`)
- Warm-start calibration → Policy and env loading: builds policy (evidence: `src/evla/calibrate_warm.py`)
- Warm-start calibration → Inference variants: tests warm starts (evidence: `src/evla/calibrate_warm.py`)
- Researcher → Run analysis: runs analysis (evidence: `README.md`)
- Run analysis → Episode results: reads episode data (evidence: `README.md`)
- Run analysis → Episode data helpers: uses row helpers (evidence: `src/evla/analyze.py`)
- Run analysis → Paired statistics: computes comparisons (evidence: `src/evla/analyze.py`)
- Report number aggregation → Episode results: reads episode data (evidence: `scripts/report_numbers.py`)
- Report number aggregation → Paired statistics: computes paired results (evidence: `scripts/report_numbers.py`)
- Report number aggregation → Profile and latency data: reads latency data (evidence: `README.md`)
- Component profiling → Profile and latency data: writes profile data (evidence: `README.md`)
- Researcher → Interactive study site: opens study site (evidence: `README.md`)
- Researcher → Research report: reads study report (evidence: `README.md`)
- Researcher → Literature matrix: consults matrix (evidence: `README.md`)
