-
Notifications
You must be signed in to change notification settings - Fork 310
Expand file tree
/
Copy pathindex.js
More file actions
55 lines (50 loc) · 2.01 KB
/
Copy pathindex.js
File metadata and controls
55 lines (50 loc) · 2.01 KB
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
import React, { useEffect } from 'react';
import { Button } from 'antd';
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';
import {useHistory} from '@docusaurus/router';
import styles from './index.module.css';
function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<div className={styles.buttons}>
<img src="img/roll.jpeg" alt="ROLL" style={{ maxWidth: '50%' }} />
</div>
<div className={styles.content}>
{/* <h1 className="hero__title">{siteConfig.title}</h1> */}
{/* <p className="hero__subtitle">{siteConfig.tagline}</p> */}
<div className={styles.left}>
<div className={styles.desc}>
ROLL is an efficient and user-friendly RL library designed for Large Language Models (LLMs) utilizing Large Scale GPU resources. It significantly enhances LLM performance in key areas such as human preference alignment, complex reasoning, and multi-turn agentic interaction scenarios.
</div>
<div>
<Button style={{ height: '60px', fontSize: '20px', padding: '0 20px'}} size="large" type="primary" href="/ROLL/docs/简体中文/快速开始/multi_nodes_quick_start_cn">Get started</Button>
</div>
</div>
</div>
</div>
</header>
);
}
export default function Home() {
const {siteConfig} = useDocusaurusContext();
const history = useHistory();
useEffect(() => {
history.replace('/ROLL/docs/English/start');
}, [history]);
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="Description will go into a meta tag in <head />">
<HomepageHeader />
<main>
<HomepageFeatures />
</main>
</Layout>
);
}