Increase max_new_tokens to 64K and fix scroll UI issue
Browse files
src/components/LandingPage.tsx
CHANGED
|
@@ -49,7 +49,7 @@ export function LandingPage({ onStart, status, isLoading, showChat }: LandingPag
|
|
| 49 |
const readyToStart = status.state === "ready";
|
| 50 |
|
| 51 |
return (
|
| 52 |
-
<div className="brand-surface relative flex h-
|
| 53 |
<div className="landing-brand-glow absolute inset-0" />
|
| 54 |
|
| 55 |
<div
|
|
@@ -59,7 +59,7 @@ export function LandingPage({ onStart, status, isLoading, showChat }: LandingPag
|
|
| 59 |
/>
|
| 60 |
|
| 61 |
<div
|
| 62 |
-
className={`relative z-10 mx-auto flex h-full w-full max-w-7xl flex-col px-6 pb-
|
| 63 |
hideMainContent
|
| 64 |
? "opacity-0 translate-y-4 pointer-events-none"
|
| 65 |
: "opacity-100"
|
|
@@ -77,7 +77,7 @@ export function LandingPage({ onStart, status, isLoading, showChat }: LandingPag
|
|
| 77 |
</p>
|
| 78 |
</header>
|
| 79 |
|
| 80 |
-
<section className="mt-
|
| 81 |
<div className="animate-rise-in-delayed space-y-5">
|
| 82 |
<p className="font-support text-xs uppercase tracking-[0.2em] text-[#5505afb3]">
|
| 83 |
Capable and efficient general-purpose AI systems at every scale
|
|
@@ -109,7 +109,7 @@ export function LandingPage({ onStart, status, isLoading, showChat }: LandingPag
|
|
| 109 |
</div>
|
| 110 |
</section>
|
| 111 |
|
| 112 |
-
<section className="mt-
|
| 113 |
{cards.map(({ eyebrow, title, body, Icon }, idx) => (
|
| 114 |
<article
|
| 115 |
key={title}
|
|
@@ -134,7 +134,7 @@ export function LandingPage({ onStart, status, isLoading, showChat }: LandingPag
|
|
| 134 |
))}
|
| 135 |
</section>
|
| 136 |
|
| 137 |
-
<section className="mt-
|
| 138 |
<button
|
| 139 |
onClick={onStart}
|
| 140 |
className="inline-flex w-full max-w-sm items-center justify-center gap-2 rounded-xl bg-black px-6 py-3.5 text-base font-semibold text-white transition-transform duration-200 hover:-translate-y-0.5 hover:bg-[#5505af] cursor-pointer"
|
|
|
|
| 49 |
const readyToStart = status.state === "ready";
|
| 50 |
|
| 51 |
return (
|
| 52 |
+
<div className="brand-surface relative flex h-full min-h-full flex-col overflow-x-hidden overflow-y-auto text-black">
|
| 53 |
<div className="landing-brand-glow absolute inset-0" />
|
| 54 |
|
| 55 |
<div
|
|
|
|
| 59 |
/>
|
| 60 |
|
| 61 |
<div
|
| 62 |
+
className={`relative z-10 mx-auto flex min-h-full w-full max-w-7xl flex-col px-6 pb-8 pt-6 sm:px-8 sm:pb-10 sm:pt-8 lg:px-14 transition-all duration-700 ${
|
| 63 |
hideMainContent
|
| 64 |
? "opacity-0 translate-y-4 pointer-events-none"
|
| 65 |
: "opacity-100"
|
|
|
|
| 77 |
</p>
|
| 78 |
</header>
|
| 79 |
|
| 80 |
+
<section className="mt-8 flex flex-col items-center text-center sm:mt-12 lg:mt-14">
|
| 81 |
<div className="animate-rise-in-delayed space-y-5">
|
| 82 |
<p className="font-support text-xs uppercase tracking-[0.2em] text-[#5505afb3]">
|
| 83 |
Capable and efficient general-purpose AI systems at every scale
|
|
|
|
| 109 |
</div>
|
| 110 |
</section>
|
| 111 |
|
| 112 |
+
<section className="mt-6 flex flex-col gap-4 sm:mt-8 lg:mt-10 lg:flex-row">
|
| 113 |
{cards.map(({ eyebrow, title, body, Icon }, idx) => (
|
| 114 |
<article
|
| 115 |
key={title}
|
|
|
|
| 134 |
))}
|
| 135 |
</section>
|
| 136 |
|
| 137 |
+
<section className="mt-6 flex flex-col items-center animate-rise-in sm:mt-8 lg:mt-10" style={{ animationDelay: "400ms" }}>
|
| 138 |
<button
|
| 139 |
onClick={onStart}
|
| 140 |
className="inline-flex w-full max-w-sm items-center justify-center gap-2 rounded-xl bg-black px-6 py-3.5 text-base font-semibold text-white transition-transform duration-200 hover:-translate-y-0.5 hover:bg-[#5505af] cursor-pointer"
|
src/hooks/LLMProvider.tsx
CHANGED
|
@@ -122,7 +122,7 @@ export function LLMProvider({ children }: { children: ReactNode }) {
|
|
| 122 |
|
| 123 |
try {
|
| 124 |
await generator(apiMessages, {
|
| 125 |
-
max_new_tokens:
|
| 126 |
streamer,
|
| 127 |
stopping_criteria: stoppingCriteria.current,
|
| 128 |
do_sample: false,
|
|
|
|
| 122 |
|
| 123 |
try {
|
| 124 |
await generator(apiMessages, {
|
| 125 |
+
max_new_tokens: 65536,
|
| 126 |
streamer,
|
| 127 |
stopping_criteria: stoppingCriteria.current,
|
| 128 |
do_sample: false,
|