forked from openvinotoolkit/openvino.genai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.tsx
27 lines (24 loc) · 792 Bytes
/
index.tsx
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
import React from 'react';
import { BaseModelsTable, LinksCell } from '../base-models-table';
import { LLM_MODELS } from './models';
export default function LLMModelsTable(): React.JSX.Element {
const headers = ['Architecture', 'Models', 'Example HuggingFace Models'];
const rows = LLM_MODELS.map(({ architecture, models }) => (
<>
<tr key={architecture}>
<td rowSpan={models.length}>
<code>{architecture}</code>
</td>
<td>{models[0].name}</td>
<LinksCell links={models[0].links} />
</tr>
{models.slice(1).map(({ name, links }) => (
<tr key={name}>
<td>{name}</td>
<LinksCell links={links} />
</tr>
))}
</>
));
return <BaseModelsTable headers={headers} rows={rows} />;
}