Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Studio: list embeddinggemma-2 first in the embedding model picker (#12870)
Michael Han2216ba6b029d
diff --git a/studio/frontend/src/features/settings/components/embedding-model-picker.tsx b/studio/frontend/src/features/settings/components/embedding-model-picker.tsxindex 62acb35ea76..32dacc954c6 100644--- a/studio/frontend/src/features/settings/components/embedding-model-picker.tsx+++ b/studio/frontend/src/features/settings/components/embedding-model-picker.tsx@@ -23,6 +23,9 @@ const EMBEDDING_TASKS: readonly PipelineType[] = ["sentence-similarity","feature-extraction",];+/** Listed first on the empty search, ahead of unsloth's embedders by downloads, where a new+ * release would sit at the bottom. The older embeddinggemma-300m follows it from the listing. */+const PINNED_EMBEDDING_MODELS: readonly string[] = ["unsloth/embeddinggemma-2"];type EmbeddingModelPickerProps = {value: string;/** Fires once, on a pick. Typing is a search, not a selection. */@@ -100,6 +103,7 @@ export function EmbeddingModelPicker({excludeGguf: true,enabled: open && !disabled,ownerScope: debouncedQuery ? "all" : "unsloth",+ priorityIds: PINNED_EMBEDDING_MODELS,});const items = useMemo(() => {diff --git a/studio/frontend/tests/embedding-model-picker.test.ts b/studio/frontend/tests/embedding-model-picker.test.tsindex 3ad13c6909b..a0db3debe2d 100644--- a/studio/frontend/tests/embedding-model-picker.test.ts+++ b/studio/frontend/tests/embedding-model-picker.test.ts@@ -39,6 +39,14 @@ test("an empty query lists unsloth, a typed one searches everything", () => {assert.match(PICKER, /useDebouncedValue\(query\.trim\(\)\)/);});+test("embeddinggemma-2 leads the empty list, ahead of the older embeddinggemma", () => {+ // Pinned ahead of the by-downloads listing, where a new release would sit last.+ assert.match(PICKER, /PINNED_EMBEDDING_MODELS: readonly string\[\] = \["unsloth\/embeddinggemma-2"\]/);+ assert.match(PICKER, /priorityIds: PINNED_EMBEDDING_MODELS,/);+ // The older model comes from the listing, so it isn't pinned above the new one.+ assert.doesNotMatch(PICKER, /PINNED_EMBEDDING_MODELS[^\n]*embeddinggemma-300m/);+});+test("only the query searches; the saved model never becomes one", () => {assert.ok(!PICKER.includes("useDebouncedValue(value)"),