DataSense_E2B / DEPLOY.md
sanjaymalladi's picture
DataSense E2B hackathon demo - Gradio agent, story, eval assets
52674b8 verified
|
Raw
History Blame Contribute Delete
1.55 kB
# DataSense HF Demo β€” layout
```
hf_demo/
β”œβ”€β”€ app.py # Gradio UI + examples
β”œβ”€β”€ agent.py # generate β†’ execute loop (sandbox)
β”œβ”€β”€ model_loader.py # base + Peft adapter
β”œβ”€β”€ config.py # model IDs & env overrides
β”œβ”€β”€ prompts.py # SYSTEM_PROMPT
β”œβ”€β”€ examples.py # 6 built-in demo tasks
β”œβ”€β”€ requirements.txt # Space dependencies
β”œβ”€β”€ README.md # HF Space card (YAML frontmatter)
β”œβ”€β”€ story.html # Full project narrative + eval tables
β”œβ”€β”€ eval_hackathon_benchmarks.json
β”œβ”€β”€ data/
β”‚ β”œβ”€β”€ sales.csv
β”‚ β”œβ”€β”€ employees.csv
β”‚ └── students.csv
└── assets/illustrations/ # story.html figures (9 PNGs)
```
## Deploy checklist
1. Create Space (Gradio, **GPU T4** minimum)
2. Upload this folder or `git push`
3. Add secret `HF_TOKEN` if the adapter repo is private
4. Set hardware to `gpu-t4` in README frontmatter
5. Smoke-test all 6 examples after build
## Model swap path
| Checkpoint | `DATASENSE_ADAPTER_MODEL` |
|------------|---------------------------|
| **SFT v1 (demo default)** | `sanjaymalladi/DataSense-Modal-E2B-SFT` |
| EVTE-STaR Micro-1 | `sanjaymalladi/DataSense-Modal-E2B-EVTE-Star-Micro1` |
| EVTE-STaR (final) | `sanjaymalladi/DataSense-Modal-E2B-EVTE-Star` |
| SFT v2 | `sanjaymalladi/DataSense-Modal-E2B-SFT-v2` |
## Project story
Open [`story.html`](story.html) for the full narrative, hackathon eval tables, and why we ship **SFT v1** on the live demo.