import { useId, useState } from "react"; import { families } from "@/lib/fast-models"; export const client = "load"; const local = (path: string) => `${import.meta.env.BASE_URL.replace(/\/$/, "")}${path}`; export default function FastModels() { const [family, setFamily] = useState("All models"); const [query, setQuery] = useState(""); const id = useId(); const visible = families .map((group) => ({ ...group, models: group.models.filter( (model) => (family === "All models" || family === group.name) && `${group.name} ${model.id}`.toLowerCase().includes(query.trim().toLowerCase()), ), })) .filter((group) => group.models.length); const count = visible.reduce((total, group) => total + group.models.length, 0); return (
{families.map((group) => ( ))}

Browse checkpoints

Pick the checkpoint that matches your runtime.

Earlier FastH3 releases
{["All models", ...families.map((group) => group.name)].map((name) => ( ))}
setQuery(event.target.value)} />

{count} {count === 1 ? "checkpoint" : "checkpoints"}

{visible.map((group) => (

{group.name}

))} {!count && (

No checkpoints match these filters.

)}
); }