Commit dbd1792
evo2-sae dashboard: single-container serve (static frontend baked into image)
Make the dashboard + API deployable as ONE container so a public-repo user (or coworker) can
launch it with a single 'docker run', no Node and no second process:
* Dockerfile: add a Node build stage that compiles feature_explorer -> static dist/, COPY it
into the runtime image, and set DASHBOARD_DIST so server.py serves it at / (Node lives only
in the build stage, never in the runtime GPU image).
* vite.config.js: drop the /api rewrite — proxy /api straight through to :8001/api. Dev now hits
the same paths as production (the server serves the API under /api), so there's no dev/prod drift.
* move the /gene_embed endpoint onto the /api router (rebased onto the new server.py); frontend
already calls ${BACKEND}/gene_embed (= /api/gene_embed), so no frontend code change.
* re-point the gene_embed contract test to /api/gene_embed.
Dev mode (vite + launch_dashboard.py) is unchanged for UI iteration; the baked-in static build is
the deploy path. Frontend compile is exercised by the image build.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Polina Binder <pbinder@nvidia.com>1 parent d0e4d4c commit dbd1792
3 files changed
Lines changed: 32 additions & 6 deletions
File tree
- interpretability/sparse_autoencoders/recipes/evo2
- feature_explorer
- tests
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
12 | 32 | | |
13 | 33 | | |
14 | 34 | | |
| |||
31 | 51 | | |
32 | 52 | | |
33 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
34 | 60 | | |
35 | 61 | | |
36 | 62 | | |
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
0 commit comments