Rahul Rajpurohit commited on
Commit
4eb5538
·
1 Parent(s): 672bc59

Static landing page · Lysos · MI300X + Gemma 4

Browse files
Files changed (2) hide show
  1. README.md +100 -6
  2. index.html +248 -0
README.md CHANGED
@@ -1,10 +1,104 @@
1
  ---
2
  title: Lysos
3
- emoji: 📈
4
- colorFrom: pink
5
- colorTo: blue
6
- sdk: docker
7
- pinned: false
 
 
 
 
 
 
 
 
 
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  title: Lysos
3
+ emoji: 🧬
4
+ colorFrom: purple
5
+ colorTo: red
6
+ sdk: static
7
+ pinned: true
8
+ license: mit
9
+ short_description: Agentic antibiotic designer · Gemma 4 + MI300X
10
+ tags:
11
+ - antibiotic-discovery
12
+ - drug-design
13
+ - gemma
14
+ - mi300x
15
+ - amd
16
+ - amr
17
+ - agentic-ai
18
+ - antimicrobial-resistance
19
  ---
20
 
21
+ # Lysos · Open-source antibiotic designer for the AMR pandemic
22
+
23
+ > **Three-stage fine-tune of Gemma 4 31B-it on AMD MI300X. Multi-agent debate engine. End-to-end live agentic workspace.**
24
+
25
+ 🏆 **AMD Developer Hackathon 2026** · Track 2 — Fine-Tuning on AMD GPUs
26
+
27
+ ---
28
+
29
+ ## What it is
30
+
31
+ Lysos is an end-to-end open-source antibiotic discovery platform that takes Google's **Gemma 4 31B-it** and specializes it for antimicrobial-resistance (AMR) drug design via a three-stage fine-tune on a single AMD MI300X. The fine-tuned model drives a multi-agent debate engine and a live agentic workspace.
32
+
33
+ ## Live links
34
+
35
+ | Asset | Where |
36
+ |---|---|
37
+ | 📂 GitHub repo (full source) | <https://github.com/Rahul-Rajpurohitk/lysos> |
38
+ | 🤖 Stage 2.5 model (production) | <https://huggingface.co/rahul24raj/lysos-base-dpo> |
39
+ | 🤖 Stage 2 model | <https://huggingface.co/rahul24raj/lysos-base> |
40
+ | 🤖 Stage 1 model | <https://huggingface.co/rahul24raj/txgemma-4-31b> |
41
+ | 📊 Stage 2 SFT dataset (222,606 AMR examples) | <https://huggingface.co/datasets/rahul24raj/lysos-amr-stage2> |
42
+ | 🎬 Demo videos (release) | <https://github.com/Rahul-Rajpurohitk/lysos/releases/tag/v1.0-hackathon-submission> |
43
+ | 📺 Full walkthrough (9:08) | [lysos-demo-merged.mp4](https://github.com/Rahul-Rajpurohitk/lysos/releases/download/v1.0-hackathon-submission/lysos-demo-merged.mp4) |
44
+
45
+ ## The three-stage fine-tune
46
+
47
+ Every stage trains a LoRA adapter on top of `google/gemma-4-31B-it`. All adapters are public.
48
+
49
+ ```
50
+ google/gemma-4-31B-it (62 GB base)
51
+
52
+ ┌───────────────────────────────┼───────────────────────────────┐
53
+ │ │ │
54
+ STAGE 1 STAGE 2 STAGE 2.5
55
+ TxGemma-4 31B lysos-base lysos-base-dpo
56
+ LoRA r=64, α=256 LoRA r=64, α=128 LoRA r=32, α=64 (β=0.1)
57
+ continued pretraining SFT on 222,606 AMR examples DPO on hard-negative pairs
58
+ for therapeutics (8 priority pathogens) (10 anti-correlated axes)
59
+ ~2 hr on 1× MI300X ~3 hr on 1× MI300X ~45 min on 1× MI300X
60
+ ```
61
+
62
+ **Why DPO for the alignment stage**: DPO is the right tool for this objective. The downstream usage pattern — the Strategist agent picking among Designer-proposed candidates — is a discrete preference choice, exactly what DPO optimizes for. KL-bounded objective for stability, no axis to game, sample-efficient at 10K pairs in 45 min on 1× MI300X, full base capability preserved.
63
+
64
+ ## The agentic workspace
65
+
66
+ When you fire `/wf design_with_debate`, four agent roles take turns — each is a separate LLM call:
67
+
68
+ ```
69
+ ┌───────────┐ ┌───────────┐ ┌───────────┐ ┌─────────────┐
70
+ │ DESIGNER │── 3 ───▶│ CRITIC │──────▶─▶│ EDITOR │──────▶─▶│ STRATEGIST │
71
+ │ drafts │ smiles │ challenges│ critique│ refines │ fix │ picks winner│
72
+ └───────────┘ └───────────┘ └───────────┘ └──────┬──────┘
73
+
74
+ winner SMILES auto-loads to 2D + 3D + radar
75
+ ```
76
+
77
+ Plus 7 streaming workflows, 12+ slash commands, real-time per-atom resistance scoring against curated CARD clinical mutations, per-pathogen Champion table, Knowledge command-center with 4-tier resistance gene network.
78
+
79
+ ## Why MI300X
80
+
81
+ 192 GB HBM3 lets us fit **Gemma 4 31B base in bf16 + LoRA adapter + KV cache + agent context coresident on one GPU**. Same GPU trains and serves. No tensor parallelism, no model sharding, no migration step.
82
+
83
+ ## Run it locally
84
+
85
+ ```bash
86
+ git clone https://github.com/Rahul-Rajpurohitk/lysos.git
87
+ cd lysos
88
+ python3 -m venv .venv && source .venv/bin/activate
89
+ pip install -e .
90
+ uvicorn workspace.api.server:app --host 0.0.0.0 --port 7860 &
91
+
92
+ cd workspace/web && npm install && npm run dev
93
+ # open http://localhost:5173
94
+ ```
95
+
96
+ ## License
97
+
98
+ MIT (code) · Apache-2.0 / Gemma terms (weights) · CC-BY (datasets)
99
+
100
+ ---
101
+
102
+ 📺 **Watch the 9-minute demo**: [lysos-demo-merged.mp4](https://github.com/Rahul-Rajpurohitk/lysos/releases/download/v1.0-hackathon-submission/lysos-demo-merged.mp4)
103
+
104
+ 📂 **Full source**: [github.com/Rahul-Rajpurohitk/lysos](https://github.com/Rahul-Rajpurohitk/lysos)
index.html ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>Lysos · Open-source antibiotic designer · Gemma 4 + AMD MI300X</title>
7
+ <meta name="description" content="Three-stage fine-tune of Gemma 4 31B-it on AMD MI300X. Multi-agent debate engine. End-to-end live agentic workspace for antimicrobial-resistance drug design." />
8
+ <style>
9
+ :root {
10
+ --bg-0: #0a0a14;
11
+ --bg-1: #1a1a2e;
12
+ --purple: #8458ff;
13
+ --purple-2: #c2adff;
14
+ --red: #ED1C24;
15
+ --green: #39e08e;
16
+ --amber: #f59e0b;
17
+ --text: #e6ecff;
18
+ --text-dim: #9aa3b8;
19
+ --text-faint: #64748b;
20
+ --border: rgba(132,88,255,0.18);
21
+ }
22
+ * { box-sizing: border-box; }
23
+ body {
24
+ margin: 0;
25
+ font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro", system-ui, sans-serif;
26
+ background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
27
+ color: var(--text);
28
+ min-height: 100vh;
29
+ line-height: 1.6;
30
+ }
31
+ .wrap { max-width: 880px; margin: 0 auto; padding: 60px 24px 80px; }
32
+ .hero { text-align: center; margin-bottom: 56px; }
33
+ h1 {
34
+ font-size: 56px; margin: 0 0 12px;
35
+ background: linear-gradient(135deg, var(--purple-2), var(--purple), var(--red));
36
+ -webkit-background-clip: text; background-clip: text; color: transparent;
37
+ letter-spacing: -0.02em; font-weight: 800;
38
+ }
39
+ .tagline { font-size: 18px; color: var(--text-dim); max-width: 640px; margin: 0 auto 20px; }
40
+ .badges { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
41
+ .badge {
42
+ padding: 5px 12px; font-size: 11px; font-weight: 700;
43
+ border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase;
44
+ background: rgba(132,88,255,0.12); color: var(--purple-2); border: 1px solid var(--border);
45
+ }
46
+ .badge.amd { background: rgba(237,28,36,0.10); color: #ff6b6b; border-color: rgba(237,28,36,0.30); }
47
+ .badge.green { background: rgba(57,224,142,0.10); color: var(--green); border-color: rgba(57,224,142,0.30); }
48
+ .grid {
49
+ display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr);
50
+ margin-bottom: 40px;
51
+ }
52
+ @media (max-width: 680px) { .grid { grid-template-columns: 1fr; } }
53
+ .card {
54
+ padding: 18px 20px;
55
+ background: rgba(132,88,255,0.04);
56
+ border: 1px solid var(--border); border-left: 3px solid var(--purple);
57
+ border-radius: 8px;
58
+ }
59
+ .card a { color: var(--purple-2); text-decoration: none; font-weight: 600; }
60
+ .card a:hover { color: var(--purple); }
61
+ .card .label {
62
+ font-size: 9.5px; color: var(--text-faint); text-transform: uppercase;
63
+ letter-spacing: 1px; font-weight: 700; margin-bottom: 4px;
64
+ }
65
+ .card h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); font-weight: 700; }
66
+ .card p { margin: 0; font-size: 13px; color: var(--text-dim); }
67
+ h2 {
68
+ font-size: 26px; margin: 56px 0 16px; color: var(--text); font-weight: 700;
69
+ letter-spacing: -0.01em;
70
+ }
71
+ h2:before { content: "▸ "; color: var(--purple); margin-right: 4px; }
72
+ pre {
73
+ background: rgba(0,0,0,0.30); border: 1px solid var(--border);
74
+ padding: 16px 20px; border-radius: 6px;
75
+ font-family: "JetBrains Mono", "Fira Code", monospace;
76
+ font-size: 12px; color: var(--purple-2); line-height: 1.6;
77
+ overflow-x: auto;
78
+ }
79
+ .stages {
80
+ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
81
+ margin: 24px 0;
82
+ }
83
+ @media (max-width: 680px) { .stages { grid-template-columns: 1fr; } }
84
+ .stage {
85
+ padding: 16px; background: rgba(132,88,255,0.06);
86
+ border: 1px solid var(--border); border-radius: 6px;
87
+ }
88
+ .stage .num {
89
+ font-size: 10px; color: var(--purple); font-weight: 800; letter-spacing: 1.5px;
90
+ }
91
+ .stage .name {
92
+ font-family: "JetBrains Mono", monospace; font-size: 13px;
93
+ color: var(--text); font-weight: 700; margin: 4px 0;
94
+ }
95
+ .stage .meta { font-size: 11px; color: var(--text-faint); }
96
+ .video-card {
97
+ background: linear-gradient(135deg, rgba(237,28,36,0.06), rgba(132,88,255,0.06));
98
+ border: 1px solid rgba(237,28,36,0.30);
99
+ padding: 24px; border-radius: 10px; text-align: center;
100
+ margin: 32px 0;
101
+ }
102
+ .video-card a {
103
+ display: inline-block; margin-top: 8px; padding: 10px 22px;
104
+ background: var(--red); color: white;
105
+ border-radius: 6px; text-decoration: none; font-weight: 700;
106
+ letter-spacing: 0.04em;
107
+ }
108
+ footer { margin-top: 60px; text-align: center; color: var(--text-faint); font-size: 12px; }
109
+ footer a { color: var(--purple-2); text-decoration: none; }
110
+ .agent-flow {
111
+ display: flex; align-items: center; justify-content: center;
112
+ gap: 6px; flex-wrap: wrap; margin: 18px 0;
113
+ }
114
+ .agent {
115
+ padding: 8px 14px; border-radius: 999px;
116
+ font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700;
117
+ letter-spacing: 0.04em;
118
+ }
119
+ .a-d { background: rgba(57,224,142,0.10); color: var(--green); border: 1px solid rgba(57,224,142,0.40); }
120
+ .a-c { background: rgba(237,28,36,0.10); color: #ff6b6b; border: 1px solid rgba(237,28,36,0.40); }
121
+ .a-e { background: rgba(93,138,255,0.10); color: #5d8aff; border: 1px solid rgba(93,138,255,0.40); }
122
+ .a-s { background: rgba(132,88,255,0.10); color: var(--purple-2); border: 1px solid rgba(132,88,255,0.40); }
123
+ .arr { color: var(--text-faint); font-family: "JetBrains Mono", monospace; }
124
+ </style>
125
+ </head>
126
+ <body>
127
+ <div class="wrap">
128
+
129
+ <div class="hero">
130
+ <h1>Lysos</h1>
131
+ <div class="tagline">
132
+ Open-source generative antibiotic designer for the AMR pandemic.<br/>
133
+ Three-stage fine-tune of Gemma 4 31B-it on AMD MI300X. Multi-agent debate engine. End-to-end live agentic workspace.
134
+ </div>
135
+ <div class="badges">
136
+ <span class="badge amd">🏆 AMD Developer Hackathon 2026</span>
137
+ <span class="badge">Track 2 · Fine-Tuning on AMD GPUs</span>
138
+ <span class="badge green">MIT License</span>
139
+ </div>
140
+ </div>
141
+
142
+ <h2>Live links</h2>
143
+ <div class="grid">
144
+ <div class="card">
145
+ <div class="label">Source</div>
146
+ <h3><a href="https://github.com/Rahul-Rajpurohitk/lysos">GitHub repo →</a></h3>
147
+ <p>FastAPI backend · React+Vite frontend · training pipeline · agentic harness · MIT</p>
148
+ </div>
149
+ <div class="card">
150
+ <div class="label">Production model</div>
151
+ <h3><a href="https://huggingface.co/rahul24raj/lysos-base-dpo">rahul24raj/lysos-base-dpo →</a></h3>
152
+ <p>Stage 2.5 DPO · LoRA r=32 · adapter on Gemma 4 31B-it</p>
153
+ </div>
154
+ <div class="card">
155
+ <div class="label">SFT model</div>
156
+ <h3><a href="https://huggingface.co/rahul24raj/lysos-base">rahul24raj/lysos-base →</a></h3>
157
+ <p>Stage 2 SFT · LoRA r=64 · 222,606 AMR examples</p>
158
+ </div>
159
+ <div class="card">
160
+ <div class="label">Pretraining model</div>
161
+ <h3><a href="https://huggingface.co/rahul24raj/txgemma-4-31b">rahul24raj/txgemma-4-31b →</a></h3>
162
+ <p>Stage 1 · continued pretraining for therapeutics · LoRA r=64 α=256</p>
163
+ </div>
164
+ <div class="card">
165
+ <div class="label">Training dataset</div>
166
+ <h3><a href="https://huggingface.co/datasets/rahul24raj/lysos-amr-stage2">lysos-amr-stage2 →</a></h3>
167
+ <p>222,606 AMR records · 8 priority pathogens · ChEMBL + literature + curated negatives</p>
168
+ </div>
169
+ <div class="card">
170
+ <div class="label">Demo videos</div>
171
+ <h3><a href="https://github.com/Rahul-Rajpurohitk/lysos/releases/tag/v1.0-hackathon-submission">v1.0 release →</a></h3>
172
+ <p>Merged 9:08 walkthrough + 3 individual scenes (agentic flow, system tour, full)</p>
173
+ </div>
174
+ </div>
175
+
176
+ <div class="video-card">
177
+ <div class="label" style="color: var(--text-dim); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700;">9-MINUTE FULL WALKTHROUGH</div>
178
+ <h3 style="margin: 8px 0; font-size: 22px; color: var(--text);">Watch the demo</h3>
179
+ <p style="margin: 0 0 12px; color: var(--text-dim); font-size: 13px;">
180
+ Multi-agent debate · live workspace · real-time scoring · resistance escape map · Pareto frontier
181
+ </p>
182
+ <a href="https://github.com/Rahul-Rajpurohitk/lysos/releases/download/v1.0-hackathon-submission/lysos-demo-merged.mp4">▶ Play (41 MB)</a>
183
+ </div>
184
+
185
+ <h2>The three-stage fine-tune</h2>
186
+ <p style="color: var(--text-dim);">Every stage trains a LoRA adapter on top of <code style="color: var(--purple-2);">google/gemma-4-31B-it</code>. All adapters are public on Hugging Face.</p>
187
+ <div class="stages">
188
+ <div class="stage">
189
+ <div class="num">STAGE 1</div>
190
+ <div class="name">TxGemma-4 31B</div>
191
+ <div class="meta">LoRA r=64, α=256 · ~2 hr on 1× MI300X<br/>Continued pretraining for therapeutics</div>
192
+ </div>
193
+ <div class="stage">
194
+ <div class="num">STAGE 2</div>
195
+ <div class="name">lysos-base</div>
196
+ <div class="meta">LoRA r=64, α=128 · ~3 hr on 1× MI300X<br/>SFT on 222,606 AMR examples</div>
197
+ </div>
198
+ <div class="stage">
199
+ <div class="num">STAGE 2.5</div>
200
+ <div class="name">lysos-base-dpo</div>
201
+ <div class="meta">LoRA r=32, α=64, β=0.1 · ~45 min on 1× MI300X<br/>DPO on 10K hard-negative Pareto pairs</div>
202
+ </div>
203
+ </div>
204
+
205
+ <h2>The multi-agent debate</h2>
206
+ <p style="color: var(--text-dim);">When you fire <code style="color: var(--purple-2);">/wf design_with_debate</code>, four agent roles take turns — each is a separate LLM call.</p>
207
+ <div class="agent-flow">
208
+ <span class="agent a-d">DESIGNER</span>
209
+ <span class="arr">─ proposes 3 ──▶</span>
210
+ <span class="agent a-c">CRITIC</span>
211
+ <span class="arr">── critiques ──▶</span>
212
+ <span class="agent a-e">EDITOR</span>
213
+ <span class="arr">── refines ──▶</span>
214
+ <span class="agent a-s">STRATEGIST</span>
215
+ </div>
216
+ <p style="color: var(--text-dim); font-size: 13px; text-align: center; margin-top: 14px;">
217
+ Strategist picks winner + runner-up + next action.<br/>
218
+ Winner SMILES auto-loads to 2D builder + 3D pocket viewer + 12-axis reward radar + resistance escape map.
219
+ </p>
220
+
221
+ <h2>Why MI300X is load-bearing</h2>
222
+ <p style="color: var(--text-dim);">
223
+ 192 GB HBM3 lets us fit Gemma 4 31B base in bf16 + LoRA adapter + KV cache + agent context
224
+ <strong style="color: var(--text);">coresident on one GPU</strong>. Same GPU trains and serves.
225
+ No tensor parallelism, no model sharding, no migration step.
226
+ Total wall-clock for the three-stage fine-tune: <strong style="color: var(--purple-2);">~6 hours on 1 GPU</strong>.
227
+ </p>
228
+
229
+ <h2>Run it locally</h2>
230
+ <pre>git clone https://github.com/Rahul-Rajpurohitk/lysos.git
231
+ cd lysos
232
+ python3 -m venv .venv && source .venv/bin/activate
233
+ pip install -e .
234
+ uvicorn workspace.api.server:app --host 0.0.0.0 --port 7860 &amp;
235
+
236
+ cd workspace/web && npm install && npm run dev
237
+ # open http://localhost:5173</pre>
238
+
239
+ <footer>
240
+ <p>
241
+ <strong>License</strong>: MIT (code) · Apache-2.0 / Gemma terms (weights) · CC-BY (datasets)<br/>
242
+ Built for the <a href="https://lablab.ai">AMD Developer Hackathon 2026</a> · Track 2: Fine-Tuning on AMD GPUs
243
+ </p>
244
+ </footer>
245
+
246
+ </div>
247
+ </body>
248
+ </html>