import { Button } from "./theme"; import cn from "./utils/classnames.ts"; import { formatBytes } from "./utils/format.ts"; import Translator from "./ai/Translator.ts"; interface InitializeProps { progress: number; onInitialize: () => Promise; isInitializing?: boolean; className?: string; } export default function Initialize({ progress, onInitialize, isInitializing = false, className = "", }: InitializeProps) { return (
{/* Description */}

About TranslateGemma 4B

TranslateGemma is a family of translation models from Google, built on top of Gemma 2B. This 4B parameter model supports translations across 100+ languages with state-of-the-art quality.{" "} Learn more

Completely private & offline-capable

Everything runs entirely in your browser with 🤗 Transformers.js and ONNX Runtime Web — no data is ever sent to a server. Once loaded, it works offline.

Experimental — WebGPU required

This is experimental and requires a browser with WebGPU support and enough VRAM to run the model.

{/* Initialize button or progress indicator */} {isInitializing ? (
Loading model... {progress}%

This may take a few moments. Please don't close the page.

) : ( )}
); }