import { config, name, updateConfig } from "../state"; import { attentionKind } from "../lib/costs"; import { ffnLabel, HINTS } from "../lib/labels"; import { HelpHint } from "./HelpHint"; const ATTENTION_OPTIONS: Array<{ value: string; label: string; n_kv_heads: number; attention_type: "standard" | "mla" }> = [ { value: "mha", label: "MHA (Multi Head)", n_kv_heads: 8, attention_type: "standard" }, { value: "gqa", label: "GQA (Grouped Query)", n_kv_heads: 2, attention_type: "standard" }, { value: "mqa", label: "MQA (Multi Query)", n_kv_heads: 1, attention_type: "standard" }, { value: "mla", label: "MLA (Multi Head Latent)", n_kv_heads: 1, attention_type: "mla" }, ]; const POS_OPTIONS = [ { value: "rope", label: "RoPE" }, { value: "alibi", label: "ALiBi" }, { value: "absolute", label: "Absolute learned" }, { value: "sinusoidal", label: "Sinusoidal" }, { value: "nope", label: "NoPE" }, ]; const ACT_OPTIONS = [ { value: "silu", label: "SiLU / Swish" }, { value: "gelu", label: "GELU" }, { value: "relu2", label: "ReLU² (squared)" }, ]; interface RowProps { label: string; hint: string; children: any; } function Row({ label, hint, children }: RowProps) { return (