File size: 13,695 Bytes
7d1c75c
10addeb
 
 
 
3e211d2
 
1fb2a3c
10addeb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7d398c
 
 
 
 
 
 
 
 
 
10addeb
 
 
c7d398c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10addeb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1fb2a3c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c7d398c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66b0297
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3e211d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10addeb
42f0385
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10addeb
 
3e211d2
10addeb
42f0385
 
 
 
10addeb
 
 
 
 
 
 
3e211d2
10addeb
3e211d2
 
 
10addeb
 
 
3e211d2
 
 
 
 
1fb2a3c
10addeb
 
 
42f0385
 
 
3e211d2
 
1fb2a3c
 
42f0385
 
 
82d9d50
 
3e211d2
 
 
 
 
 
 
7af8d50
 
66b0297
42f0385
5c98191
42f0385
 
 
 
 
 
 
 
3e211d2
 
42f0385
c7d398c
42f0385
 
c7d398c
42f0385
 
 
 
 
 
c7d398c
42f0385
 
 
 
 
 
c7d398c
42f0385
 
 
 
 
 
 
 
 
 
 
 
 
c7d398c
42f0385
 
 
 
 
 
 
82d9d50
42f0385
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1fb2a3c
42f0385
 
 
 
1fb2a3c
42f0385
 
 
 
 
1fb2a3c
3e211d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42f0385
 
 
10addeb
42f0385
 
 
82d9d50
42f0385
 
 
 
66b0297
42f0385
 
 
 
 
 
10addeb
7d1c75c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width,initial-scale=1" />
  <title>NTv3: Foundation Models for Genomics</title>
  <meta name="description" content="NTv3 reads up to 1 Mb of DNA at single-base resolution. One architecture, three capabilities: functional-track prediction, gene annotation and regulatory sequence design." />
  <link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet" />
  <style>
    :root {
      --bg: #0b1020;
      --card: rgba(255, 255, 255, 0.06);
      --text: rgba(255, 255, 255, 0.92);
      --muted: rgba(255, 255, 255, 0.65);
      --link: #7dd3fc;
      --border: rgba(255, 255, 255, 0.12);
      --shadow: 0 10px 30px rgba(0,0,0,0.35);
      --radius: 18px;
      --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    }
    body {
      margin: 0;
      font-family: var(--sans);
      color: var(--text);
      background:
        radial-gradient(1200px 800px at 10% 10%, rgba(125, 211, 252, 0.12), transparent 60%),
        radial-gradient(1200px 800px at 90% 30%, rgba(167, 139, 250, 0.12), transparent 55%),
        var(--bg);
      min-height: 100vh;
    }
    .wrap { max-width: 980px; margin: 0 auto; padding: 44px 18px 56px; }
    .hero {
      display: grid; gap: 14px;
      padding: 26px 24px;
      border: 1px solid var(--border);
      background: var(--card);
      box-shadow: var(--shadow);
      border-radius: var(--radius);
    }
    h1 { font-size: 34px; margin: 0; letter-spacing: -0.02em; }
    p { margin: 0; color: var(--muted); line-height: 1.5; }
    .grid {
      margin-top: 18px;
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 14px;
    }
    .card {
      grid-column: span 6;
      padding: 18px 18px;
      border: 1px solid var(--border);
      background: var(--card);
      border-radius: var(--radius);
      box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    }
    .card-stack {
      grid-column: span 6;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .card-stack .card {
      grid-column: span 1;
      margin: 0;
    }
    .card h2 { margin: 0 0 10px 0; font-size: 16px; letter-spacing: 0.01em; }
    .card ul { margin: 0; padding-left: 18px; color: var(--muted); }
    .card li { margin: 8px 0; }
    .card table {
      width: 100%;
      margin-top: 12px;
      border-collapse: collapse;
      font-size: 13px;
    }
    .card table th {
      text-align: left;
      padding: 10px 12px;
      border-bottom: 2px solid var(--border);
      color: var(--text);
      font-weight: 600;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .card table td {
      padding: 10px 12px;
      border-bottom: 1px solid var(--border);
      color: var(--muted);
    }
    .card table tr:last-child td {
      border-bottom: none;
    }
    .card table tr:hover {
      background: rgba(255, 255, 255, 0.02);
    }
    .card table td .checkmark {
      color: #4ade80 !important;
    }
    a { color: var(--link); text-decoration: none; }
    a:hover { text-decoration: underline; }
    .pillrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
    .pill {
      font-size: 12px;
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
      color: var(--muted);
    }
    .code {
      margin-top: 12px;
      padding: 16px 18px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: rgba(0,0,0,0.3);
      font-family: var(--mono);
      font-size: 13px;
      line-height: 1.6;
      overflow-x: auto;
      color: rgba(255,255,255,0.9);
      white-space: pre;
    }
    .code code {
      font-family: inherit;
      font-size: inherit;
      color: inherit;
    }
    /* Prism.js theme overrides to match dark theme */
    .code pre[class*="language-"] {
      background: transparent;
      margin: 0;
      padding: 0;
    }
    .code code[class*="language-"] {
      background: transparent;
    }
    .summary {
      margin-top: 18px;
      padding: 24px;
      border: 1px solid var(--border);
      background: var(--card);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }
    .summary h2 {
      margin: 0 0 16px 0;
      font-size: 18px;
      letter-spacing: 0.01em;
    }
    .summary p {
      margin: 0 0 14px 0;
      color: var(--muted);
      line-height: 1.7;
    }
    .summary p:last-child {
      margin-bottom: 0;
    }
    .why-ntv3 {
      margin-top: 18px;
      padding: 24px;
      border: 1px solid var(--border);
      background: var(--card);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }
    .why-ntv3 h2 {
      margin: 0 0 16px 0;
      font-size: 18px;
      letter-spacing: 0.01em;
    }
    .why-ntv3 ul {
      margin: 0;
      padding-left: 0;
      list-style: none;
      color: var(--muted);
    }
    .why-ntv3 li {
      margin: 12px 0;
      padding-left: 0;
      line-height: 1.7;
    }
    .paper-summary {
      margin-top: 12px;
      padding: 24px;
      border: 1px solid var(--border);
      background: var(--card);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }
    .paper-summary h2 {
      text-align: center;
      margin: 0 0 20px 0;
    }
    .paper-summary img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 12px;
    }
    .notice {
      margin-top: 18px;
      padding: 16px 18px;
      border: 1px solid rgba(251, 191, 36, 0.35);
      background: rgba(251, 191, 36, 0.07);
      border-radius: 14px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }
    .notice strong { color: var(--text); }
    .legacy-banner {
      margin-top: 18px;
      padding: 14px 18px;
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.04);
      border-radius: 14px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }
    .capability-grid { margin-top: 12px; }
    /* Keep model names such as NTv3-pretrained on one line rather than
       breaking at the hyphen. */
    .capability-grid td:first-child {
      color: var(--text);
      white-space: nowrap;
    }
    .footer { margin-top: 22px; color: var(--muted); font-size: 13px; }
    
    /* Tab navigation styles */
    .tabs {
      margin-top: 24px;
      display: flex;
      gap: 8px;
      border-bottom: 2px solid var(--border);
      overflow-x: auto;
    }
    .tab-button {
      padding: 12px 20px;
      background: transparent;
      border: none;
      border-bottom: 2px solid transparent;
      color: var(--muted);
      font-family: var(--sans);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
      margin-bottom: -2px;
    }
    .tab-button:hover {
      color: var(--text);
      background: rgba(255, 255, 255, 0.03);
    }
    .tab-button.active {
      color: var(--link);
      border-bottom-color: var(--link);
    }
    .tab-content {
      display: none;
      animation: fadeIn 0.3s ease;
    }
    .tab-content.active {
      display: block;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    @media (max-width: 860px) {
      .card { grid-column: span 12; }
      .card-stack { grid-column: span 12; }
      h1 { font-size: 28px; }
      .tab-button {
        padding: 10px 16px;
        font-size: 13px;
      }
    }
  </style>
</head>

<body>
  <div class="wrap">
    <div class="hero">
      <h1>🧬 NTv3: Foundation Models for Genomics</h1>
      <p>
        A genomic foundation model that reads up to 1 Mb of DNA at single-base resolution. One architecture, three
        capabilities: <strong>functional-track prediction</strong>, <strong>gene annotation</strong> and
        <strong>regulatory sequence design</strong>. This Space is the companion hub, with runnable PyTorch notebooks.
      </p>

      <div class="pillrow">
        <span class="pill">🧬 1 Mb context, single-base resolution</span>
        <span class="pill">🌍 Multi-species</span>
        <span class="pill">📊 Tracks</span>
        <span class="pill">🏷️ Annotate</span>
        <span class="pill">✏️ Design</span>
        <span class="pill">📓 Torch notebooks</span>
      </div>
    </div>

    <!-- Tab Navigation -->
    <div class="tabs">
      <button class="tab-button active" data-tab="home">🏠 Home</button>
      <button class="tab-button" data-tab="skill">🤖 Claude Skill</button>
      <button class="tab-button" data-tab="initial">🗄️ Initial release (2025)</button>
    </div>

    <!-- Home Tab (Content loaded from tabs/home.html) -->
    <div id="home" class="tab-content active">
      <!-- Content will be loaded dynamically -->
    </div>

    <!-- Claude Skill Tab (Content loaded from tabs/skill.html) -->
    <div id="skill" class="tab-content">
      <!-- Content will be loaded dynamically -->
    </div>

    <!-- Initial-release Tab (Content loaded from tabs/initial_release.html) -->
    <div id="initial" class="tab-content">
      <!-- Content will be loaded dynamically -->
    </div>

    <p class="footer">
      © instadeep-ai. NTv3 companion Space. Code and notebooks are Apache-2.0. Model weights are released under the InstaDeep Open Model Licence; see each model repository.
    </p>
  </div>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-core.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
  <script>
    // Tab content mapping
    const tabFiles = {
      'home': 'tabs/home.html',
      'skill': 'tabs/skill.html',
      'initial': 'tabs/initial_release.html',
    };

    // Cache for loaded tab content
    const tabCache = {};

    // Function to load tab content
    async function loadTabContent(tabId) {
      // Return cached content if available
      if (tabCache[tabId]) {
        return tabCache[tabId];
      }

      // Load content from file
      const filePath = tabFiles[tabId];
      if (!filePath) {
        console.error(`No file path defined for tab: ${tabId}`);
        return '';
      }

      try {
        const response = await fetch(filePath);
        if (!response.ok) {
          throw new Error(`Failed to load ${filePath}: ${response.statusText}`);
        }
        const content = await response.text();
        tabCache[tabId] = content;
        return content;
      } catch (error) {
        console.error(`Error loading tab content for ${tabId}:`, error);
        return `<div class="summary"><p>Error loading content. Please refresh the page.</p></div>`;
      }
    }

    // Function to show a tab
    async function showTab(tabId) {
      const tabContent = document.getElementById(tabId);
      if (!tabContent) {
        console.error(`Tab element not found: ${tabId}`);
        return;
      }

      // Load content if not already loaded
      if (!tabContent.dataset.loaded) {
        tabContent.innerHTML = await loadTabContent(tabId);
        tabContent.dataset.loaded = 'true';
        
        // Re-run Prism.js syntax highlighting for code blocks in the loaded content
        if (typeof Prism !== 'undefined') {
          // Find all code blocks in the loaded content and highlight them
          const codeBlocks = tabContent.querySelectorAll('code[class*="language-"]');
          codeBlocks.forEach(block => {
            Prism.highlightElement(block);
          });
        }
      }
    }

    // Tab switching functionality
    document.addEventListener('DOMContentLoaded', function() {
      const tabButtons = document.querySelectorAll('.tab-button');
      const tabContents = document.querySelectorAll('.tab-content');

      // Load the default active tab (home)
      const activeTab = document.querySelector('.tab-content.active');
      if (activeTab) {
        showTab(activeTab.id);
      }

      // In-page links that switch tabs, e.g. <a data-tab-link="initial">.
      // Delegated, because tab content is injected after load.
      document.addEventListener('click', (event) => {
        const link = event.target.closest('[data-tab-link]');
        if (!link) return;
        event.preventDefault();
        const targetButton = document.querySelector(
          `.tab-button[data-tab="${link.getAttribute('data-tab-link')}"]`
        );
        if (targetButton) {
          targetButton.click();
          window.scrollTo({ top: 0, behavior: 'smooth' });
        }
      });

      tabButtons.forEach(button => {
        button.addEventListener('click', async () => {
          const targetTab = button.getAttribute('data-tab');

          // Remove active class from all buttons and contents
          tabButtons.forEach(btn => btn.classList.remove('active'));
          tabContents.forEach(content => content.classList.remove('active'));

          // Add active class to clicked button and corresponding content
          button.classList.add('active');
          const tabElement = document.getElementById(targetTab);
          tabElement.classList.add('active');

          // Load and show the tab content
          await showTab(targetTab);
        });
      });
    });
  </script>
</body>
</html>