hsfast-ml / README.md
ali
Deploy hsFAST ML service β€” ESM2-150M gated model (epoch 4)
b72d311
|
Raw
History Blame Contribute Delete
1.05 kB
---
title: hsFAST ML Service
emoji: 🧬
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false
---
# hsFAST ML Service
FastAPI service serving the ESM2-35M + LoRA protein stability (Ξ”G) model for the
Enzyme Stability ML Prediction Platform.
This is the **ML inference backend** only β€” it is called server-to-server by the
Node/Express API, not directly by the browser.
## Endpoints
- `GET /health` β€” liveness + model status
- `GET /model/info` β€” architecture + training metadata
- `POST /predict` β€” Ξ”G for a single sequence (negative Ξ”G = more stable)
- `POST /predict/batch` β€” Ξ”G for up to 100 sequences
- `POST /suggest` β€” residue-level ΔΔG scan β†’ ranked stabilizing mutations + hotspots
- `GET /dataset/stats` β€” training dataset statistics
## Notes
- The ESM2 weights are bundled in `models/best_model.pt` (Git LFS).
- The tokenizer is pre-cached at build time (see `Dockerfile`) so runtime
offline mode works.
- First request after the Space wakes from sleep takes ~30–60 s (model load).