Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

feat: migrate all text model downloads to HuggingFace GGUF

PurpleDoubleD8123220f1024
diff --git a/src/api/discover.ts b/src/api/discover.ts
index ff611196..06c4ee28 100644
--- a/src/api/discover.ts
+++ b/src/api/discover.ts
@@ -270,138 +270,115 @@ export const COMPONENT_REGISTRY: Record<string, ComponentRequirements> = {
unknown: { loader: 'CheckpointLoaderSimple', needsSeparateVAE: false, needsSeparateCLIP: false },
}
-// ─── Ollama Text Models ───
+// ─── Text Models (HuggingFace GGUF — unified source for all providers) ───
-/** Get featured HOT models (always shown at top of discover) */
-export function getHotTextModels(): DiscoverModel[] {
- return getCuratedTextModels().filter(m => m.hot)
-}
-
-export async function fetchAbliteratedModels(): Promise<DiscoverModel[]> {
- const hotModels = getHotTextModels()
- const searchResults = await searchOllamaModels('abliterated')
- // Merge: HOT first, then search results (deduplicated)
- const hotNames = new Set(hotModels.map(m => m.name))
- const deduped = searchResults.filter(m => !hotNames.has(m.name))
- return [...hotModels, ...deduped]
-}
-
-/** Search Ollama registry — works in both Tauri and dev mode */
-export async function searchOllamaModels(query: string): Promise<DiscoverModel[]> {
- try {
- let html: string
-
- const { isTauri, fetchExternal } = await import("./backend")
- if (isTauri()) {
- // In Tauri: use fetchExternal to bypass CORS
- html = await fetchExternal(`https://ollama.com/search?q=${encodeURIComponent(query)}&p=1`)
- } else {
- // In dev: use proxy
- const res = await fetch(`/ollama-search?q=${encodeURIComponent(query)}&p=1`)
- html = await res.text()
- }
-
- const models = parseOllamaSearchHTML(html)
- if (models.length === 0) return getCuratedTextModels()
- return models
- } catch {
- return getCuratedTextModels()
- }
-}
-
-function parseOllamaSearchHTML(html: string): DiscoverModel[] {
- const models: DiscoverModel[] = []
- const parser = new DOMParser()
- const doc = parser.parseFromString(html, 'text/html')
-
- const items = doc.querySelectorAll('[x-test-search-response-title]')
- items.forEach((item) => {
- const container = item.closest('a') || item.parentElement?.closest('a')
- const name = item.textContent?.trim() || ''
- const href = container?.getAttribute('href') || ''
-
- const parent = item.closest('div')?.parentElement
- const spans = parent?.querySelectorAll('span') || []
- let pulls = ''
- let updated = ''
-
- spans.forEach((span) => {
- const text = span.textContent?.trim() || ''
- if (text.includes('Pull') || text.includes('K') || text.includes('M')) {
- if (!pulls) pulls = text
- }
- if (text.includes('ago') || text.includes('month') || text.includes('week') || text.includes('day')) {
- updated = text
- }
- })
-
- if (name && href) {
- models.push({
- name: href.startsWith('/') ? href.slice(1) : name,
- description: '',
- pulls,
- tags: [],
- updated,
- })
- }
- })
-
- return models
-}
+const HF = (repo: string, file: string) => `https://huggingface.co/${repo}/resolve/main/${file}`
/** Sort models by release date, newest first */
function sortByRelease(models: DiscoverModel[]): DiscoverModel[] {
return models.sort((a, b) => (b.released ?? '').localeCompare(a.released ?? ''))
}
-/** Uncensored / abliterated models — the core of LU */
+/** Uncensored / abliterated GGUF models — the core of LU. One entry per size variant. */
export function getUncensoredTextModels(): DiscoverModel[] {
return sortByRelease([
- // ── HOT: Agent Mode + Uncensored ──
- { name: 'hermes3', description: 'NousResearch Hermes 3 — uncensored + native tool calling. THE agent model.', pulls: '500K+', tags: ['3B', '8B', '70B', '405B'], updated: 'Hot', hot: true, agent: true, released: '2024-08' },
- { name: 'dolphin3', description: 'Dolphin 3 — uncensored from training. Coding, math, general purpose.', pulls: '3.7M', tags: ['8B'], updated: 'Hot', hot: true, released: '2024-12' },
- { name: 'huihui_ai/qwen3.5-abliterated', description: 'Qwen 3.5 abliterated — newest, strongest reasoning + coding.', pulls: '10K+', tags: ['9B', '27B', '35B'], updated: 'Hot', hot: true, released: '2026-03' },
- { name: 'huihui_ai/gpt-oss-abliterated', description: 'OpenAI GPT-OSS — abliterated open-source GPT model.', pulls: '15K+', tags: ['20B', '120B'], updated: 'Hot', hot: true, released: '2026-03' },
- { name: 'huihui_ai/qwen3-coder-abliterated', description: 'Qwen3-Coder abliterated — 30B MoE (3B active), built for code agents. 256K context.', pulls: '5K+', tags: ['30B', '480B'], updated: 'Hot', hot: true, agent: true, released: '2026-02' },
- { name: 'aratan/gemma-4-31B-it-uncensores', description: 'Gemma 4 31B uncensored — frontier dense model, native tool calling + vision. 256K context.', pulls: '400+', tags: ['31B'], updated: 'Hot', hot: true, agent: true, released: '2026-04' },
- { name: 'juilpark/gemma-4-26B-A4B-it-heretic', description: 'Gemma 4 26B MoE HERETIC — 26B brain, 4B active. Uncensored + tools + vision.', pulls: '30+', tags: ['26B'], updated: 'Hot', hot: true, agent: true, released: '2026-04' },
- { name: 'juilpark/gemma-4-31B-it-uncensored-heretic', description: 'Gemma 4 31B HERETIC — full uncensor, native tool calling, 256K context.', pulls: '80+', tags: ['31B'], updated: 'Hot', hot: true, agent: true, released: '2026-04' },
- { name: 'charaf/gemma4-31b-claude-opus-abliterated', description: 'Gemma 4 31B abliterated — Claude Opus-style tuning, strong reasoning.', pulls: '360+', tags: ['31B'], updated: 'New', hot: true, agent: true, released: '2026-04' },
- // ── Popular Uncensored ──
- { name: 'huihui_ai/qwen3-abliterated', description: 'Qwen3 abliterated — best overall. Exceptional reasoning, coding, multilingual.', pulls: '30K+', tags: ['8B', '30B'], updated: 'Popular', released: '2025-05' },
- { name: 'mannix/llama3.1-8b-abliterated', description: 'Llama 3.1 8B — fast, reliable, great entry point.', pulls: '200K+', tags: ['Q5_K_M', 'Q4_K_M'], updated: 'Popular', released: '2024-07' },
- { name: 'huihui_ai/deepseek-r1-abliterated', description: 'DeepSeek R1 — chain-of-thought reasoning. Scales to your hardware.', pulls: '40K+', tags: ['8B', '14B', '32B', '70B'], updated: 'Popular', released: '2025-01' },
- { name: 'huihui_ai/glm4.6-abliterated', description: 'GLM 4.6 abliterated — newest model, strong coding and reasoning.', pulls: '5K+', tags: ['357B'], updated: 'New', released: '2026-03' },
- { name: 'kiwi_kiwi/gemma-4-uncensores', description: 'Gemma 4 31B uncensored — strong all-rounder, vision + tool calling.', pulls: '400+', tags: ['31B'], updated: 'New', agent: true, released: '2026-04' },
- { name: 'huihui_ai/gemma3-abliterated', description: 'Google Gemma 3 — vision support, great quality.', pulls: '20K+', tags: ['4B', '12B', '27B'], updated: 'Popular', released: '2025-03' },
- { name: 'richardyoung/qwen3-14b-abliterated', description: 'Qwen3 14B — sweet spot of speed and intelligence.', pulls: '4K+', tags: ['Q4_K_M', 'Q5_K_M'], updated: 'Recent', released: '2025-05' },
- { name: 'huihui_ai/qwen2.5-abliterate', description: 'Qwen 2.5 abliterated series — proven and reliable.', pulls: '50K+', tags: ['7B', '14B', '32B'], updated: 'Popular', released: '2024-09' },
- { name: 'huihui_ai/llama3.3-abliterated', description: 'Llama 3.3 70B — maximum intelligence for high-VRAM setups.', pulls: '15K+', tags: ['70B'], updated: 'Popular', released: '2024-12' },
- { name: 'huihui_ai/mistral-small-abliterated', description: 'Mistral Small 24B — powerful, strong multilingual.', pulls: '10K+', tags: ['24B'], updated: 'Recent', released: '2024-09' },
- { name: 'huihui_ai/phi4-abliterated', description: 'Microsoft Phi-4 — excellent at math, logic, structured tasks.', pulls: '8K+', tags: ['14B'], updated: 'Recent', released: '2024-12' },
- { name: 'krith/mistral-nemo-instruct-2407-abliterated', description: 'Mistral Nemo 12B — multilingual powerhouse.', pulls: '5K+', tags: ['IQ4_XS', 'IQ3_M'], updated: 'Popular', released: '2024-07' },
+ // ── HOT: Hermes 3 ──
+ { name: 'Hermes 3 Llama 3.2 3B', description: 'NousResearch Hermes 3 — uncensored + native tool calling. Lightweight.', pulls: '500K+', tags: ['3B', 'Q4_K_M', '2 GB'], updated: 'Hot', hot: true, agent: true, released: '2024-08', downloadUrl: HF('bartowski/Hermes-3-Llama-3.2-3B-GGUF', 'Hermes-3-Llama-3.2-3B-Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.2-3B-Q4_K_M.gguf', sizeGB: 2 },
+ { name: 'Hermes 3 Llama 3.1 8B', description: 'NousResearch Hermes 3 — uncensored + native tool calling. THE agent model.', pulls: '500K+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Hot', hot: true, agent: true, released: '2024-08', downloadUrl: HF('bartowski/Hermes-3-Llama-3.1-8B-GGUF', 'Hermes-3-Llama-3.1-8B-Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.1-8B-Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'Hermes 3 Llama 3.1 70B', description: 'NousResearch Hermes 3 70B — maximum intelligence, uncensored.', pulls: '500K+', tags: ['70B', 'Q4_K_M', '42 GB'], updated: 'Hot', hot: true, agent: true, released: '2024-08', downloadUrl: HF('bartowski/Hermes-3-Llama-3.1-70B-GGUF', 'Hermes-3-Llama-3.1-70B-Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.1-70B-Q4_K_M.gguf', sizeGB: 42 },
+ // ── HOT: Dolphin 3 ──
+ { name: 'Dolphin 3 Llama 3.1 8B', description: 'Dolphin 3 — uncensored from training. Coding, math, general purpose.', pulls: '3.7M', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Hot', hot: true, released: '2024-12', downloadUrl: HF('bartowski/dolphin-2.9.4-llama3.1-8b-GGUF', 'dolphin-2.9.4-llama3.1-8b-Q4_K_M.gguf'), filename: 'dolphin-2.9.4-llama3.1-8b-Q4_K_M.gguf', sizeGB: 5 },
+ // ── HOT: Qwen 3.5 Abliterated ──
+ { name: 'Qwen 3.5 9B Abliterated', description: 'Qwen 3.5 abliterated — newest, strongest reasoning + coding.', pulls: '10K+', tags: ['9B', 'Q4_K_M', '6 GB'], updated: 'Hot', hot: true, released: '2026-03', downloadUrl: HF('mradermacher/Qwen3.5-9B-abliterated-GGUF', 'Qwen3.5-9B-abliterated.Q4_K_M.gguf'), filename: 'Qwen3.5-9B-abliterated.Q4_K_M.gguf', sizeGB: 5 },
+ // ── HOT: GPT-OSS Abliterated ──
+ { name: 'GPT-OSS 20B Abliterated', description: 'OpenAI GPT-OSS — abliterated open-source GPT model.', pulls: '15K+', tags: ['20B', 'Q4_K_M', '13 GB'], updated: 'Hot', hot: true, released: '2026-03', downloadUrl: HF('bartowski/huihui-ai_Huihui-gpt-oss-20b-BF16-abliterated-GGUF', 'huihui-ai_Huihui-gpt-oss-20b-BF16-abliterated-Q4_K_M.gguf'), filename: 'huihui-ai_Huihui-gpt-oss-20b-BF16-abliterated-Q4_K_M.gguf', sizeGB: 13 },
+ // ── HOT: Qwen 3.5 Abliterated (larger variants) ──
+ { name: 'Qwen 3.5 27B Abliterated', description: 'Qwen 3.5 27B abliterated — Claude Opus-style, strongest reasoning.', pulls: '20K+', tags: ['27B', 'Q4_K_M', '16 GB'], updated: 'Hot', hot: true, released: '2026-03', downloadUrl: HF('mradermacher/Huihui-Qwen3.5-27B-Claude-4.6-Opus-abliterated-GGUF', 'Huihui-Qwen3.5-27B-Claude-4.6-Opus-abliterated.Q4_K_M.gguf'), filename: 'Huihui-Qwen3.5-27B-Claude-4.6-Opus-abliterated.Q4_K_M.gguf', sizeGB: 16 },
+ { name: 'Qwen 3.5 35B MoE Abliterated', description: 'Qwen 3.5 35B MoE abliterated — best agentic, 256K context.', pulls: '26K+', tags: ['35B MoE', 'Q4_K_M', '22 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-03', downloadUrl: HF('mradermacher/Huihui-Qwen3.5-35B-A3B-abliterated-i1-GGUF', 'Huihui-Qwen3.5-35B-A3B-abliterated.i1-Q4_K_M.gguf'), filename: 'Huihui-Qwen3.5-35B-A3B-abliterated.i1-Q4_K_M.gguf', sizeGB: 22 },
+ // ── HOT: Qwen3-Coder Abliterated ──
+ { name: 'Qwen3-Coder 30B Abliterated', description: 'Qwen3-Coder abliterated — 30B MoE (3B active), built for code agents. 256K context.', pulls: '10K+', tags: ['30B MoE', 'Q4_K_M', '19 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-02', downloadUrl: HF('mradermacher/Huihui-Qwen3-Coder-30B-A3B-Instruct-abliterated-i1-GGUF', 'Huihui-Qwen3-Coder-30B-A3B-Instruct-abliterated.i1-Q4_K_M.gguf'), filename: 'Huihui-Qwen3-Coder-30B-A3B-Instruct-abliterated.i1-Q4_K_M.gguf', sizeGB: 19 },
+ // ── HOT: Gemma 4 Uncensored Variants ──
+ { name: 'Gemma 4 31B Uncensored', description: 'Gemma 4 31B uncensored — frontier dense model, native tool calling + vision. 256K context.', pulls: '400+', tags: ['31B', 'Q4_K_M', '17 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-04', downloadUrl: HF('TrevorJS/gemma-4-31B-it-uncensored-GGUF', 'gemma-4-31B-it-uncensored-Q4_K_M.gguf'), filename: 'gemma-4-31B-it-uncensored-Q4_K_M.gguf', sizeGB: 17 },
+ { name: 'Gemma 4 26B MoE Heretic', description: 'Gemma 4 26B MoE HERETIC — 26B brain, 4B active. Uncensored + tools + vision.', pulls: '43K+', tags: ['26B MoE', 'Q4_K_M', '16 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-04', downloadUrl: HF('nohurry/gemma-4-26B-A4B-it-heretic-GUFF', 'gemma-4-26b-a4b-it-heretic.q4_k_m.gguf'), filename: 'gemma-4-26b-a4b-it-heretic.q4_k_m.gguf', sizeGB: 16 },
+ { name: 'Gemma 4 31B Heretic', description: 'Gemma 4 31B HERETIC — full uncensor, native tool calling, 256K context.', pulls: '32K+', tags: ['31B', 'Q4_K_M', '17 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-04', downloadUrl: HF('llmfan46/gemma-4-31B-it-uncensored-heretic-GGUF', 'gemma-4-31B-it-uncensored-heretic-Q4_K_M.gguf'), filename: 'gemma-4-31B-it-uncensored-heretic-Q4_K_M.gguf', sizeGB: 17 },
+ { name: 'Gemma 4 31B Abliterated', description: 'Gemma 4 31B abliterated — strong reasoning, Apache 2.0.', pulls: '7K+', tags: ['31B', 'Q4_K_M', '17 GB'], updated: 'New', hot: true, agent: true, released: '2026-04', downloadUrl: HF('LiconStudio/Gemma-4-31B-it-abliterated-GGUF', 'gemma-4-31B-it-abliterated-Q4_K_M.gguf'), filename: 'gemma-4-31B-it-abliterated-Q4_K_M.gguf', sizeGB: 17 },
+ // ── Popular: Qwen3 Abliterated ──
+ { name: 'Qwen3 8B Abliterated', description: 'Qwen3 abliterated — best overall. Exceptional reasoning, coding, multilingual.', pulls: '30K+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Popular', released: '2025-05', downloadUrl: HF('mradermacher/Qwen3-8B-abliterated-GGUF', 'Qwen3-8B-abliterated.Q4_K_M.gguf'), filename: 'Qwen3-8B-abliterated.Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'Qwen3 30B MoE Abliterated', description: 'Qwen3 30B MoE abliterated — powerful, runs like 3B active.', pulls: '30K+', tags: ['30B MoE', 'Q4_K_M', '19 GB'], updated: 'Popular', agent: true, released: '2025-05', downloadUrl: HF('mradermacher/Qwen3-30B-A3B-abliterated-GGUF', 'Qwen3-30B-A3B-abliterated.Q4_K_M.gguf'), filename: 'Qwen3-30B-A3B-abliterated.Q4_K_M.gguf', sizeGB: 19 },
+ // ── Popular: Llama 3.1 8B Abliterated (two quants) ──
+ { name: 'Llama 3.1 8B Abliterated Q5', description: 'Llama 3.1 8B abliterated — fast, reliable, great entry point. Higher quality quant.', pulls: '200K+', tags: ['8B', 'Q5_K_M', '6 GB'], updated: 'Popular', agent: true, released: '2024-07', downloadUrl: HF('bartowski/Meta-Llama-3.1-8B-Instruct-abliterated-GGUF', 'Meta-Llama-3.1-8B-Instruct-abliterated-Q5_K_M.gguf'), filename: 'Meta-Llama-3.1-8B-Instruct-abliterated-Q5_K_M.gguf', sizeGB: 6 },
+ { name: 'Llama 3.1 8B Abliterated Q4', description: 'Llama 3.1 8B abliterated — fast, reliable, great entry point. Smaller quant.', pulls: '200K+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Popular', agent: true, released: '2024-07', downloadUrl: HF('bartowski/Meta-Llama-3.1-8B-Instruct-abliterated-GGUF', 'Meta-Llama-3.1-8B-Instruct-abliterated-Q4_K_M.gguf'), filename: 'Meta-Llama-3.1-8B-Instruct-abliterated-Q4_K_M.gguf', sizeGB: 5 },
+ // ── Popular: DeepSeek R1 Abliterated ──
+ { name: 'DeepSeek R1 8B Abliterated', description: 'DeepSeek R1 abliterated 8B — chain-of-thought reasoning.', pulls: '40K+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Popular', released: '2025-01', downloadUrl: HF('mradermacher/DeepSeek-R1-Distill-Qwen-7B-abliterated-v2-GGUF', 'DeepSeek-R1-Distill-Qwen-7B-abliterated-v2.Q4_K_M.gguf'), filename: 'DeepSeek-R1-Distill-Qwen-7B-abliterated-v2.Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'DeepSeek R1 14B Abliterated', description: 'DeepSeek R1 abliterated 14B — stronger reasoning.', pulls: '40K+', tags: ['14B', 'Q4_K_M', '9 GB'], updated: 'Popular', released: '2025-01', downloadUrl: HF('QuantFactory/DeepSeek-R1-Distill-Qwen-14B-abliterated-v2-GGUF', 'DeepSeek-R1-Distill-Qwen-14B-abliterated-v2.Q4_K_M.gguf'), filename: 'DeepSeek-R1-Distill-Qwen-14B-abliterated-v2.Q4_K_M.gguf', sizeGB: 9 },
+ { name: 'DeepSeek R1 32B Abliterated', description: 'DeepSeek R1 abliterated 32B — powerful reasoning.', pulls: '40K+', tags: ['32B', 'Q4_K_M', '19 GB'], updated: 'Popular', released: '2025-01', downloadUrl: HF('bartowski/DeepSeek-R1-Distill-Qwen-32B-abliterated-GGUF', 'DeepSeek-R1-Distill-Qwen-32B-abliterated-Q4_K_M.gguf'), filename: 'DeepSeek-R1-Distill-Qwen-32B-abliterated-Q4_K_M.gguf', sizeGB: 19 },
+ { name: 'DeepSeek R1 70B Abliterated', description: 'DeepSeek R1 abliterated 70B — maximum reasoning for high-VRAM setups.', pulls: '40K+', tags: ['70B', 'Q4_K_M', '42 GB'], updated: 'Popular', released: '2025-01', downloadUrl: HF('bartowski/huihui-ai_DeepSeek-R1-Distill-Llama-70B-abliterated-GGUF', 'huihui-ai_DeepSeek-R1-Distill-Llama-70B-abliterated-Q4_K_M.gguf'), filename: 'huihui-ai_DeepSeek-R1-Distill-Llama-70B-abliterated-Q4_K_M.gguf', sizeGB: 42 },
+ // ── Popular: GLM 4.6 Abliterated ──
+ { name: 'GLM 4 9B Abliterated', description: 'GLM 4 9B abliterated — strong coding and reasoning.', pulls: '5K+', tags: ['9B', 'Q4_K_M', '5 GB'], updated: 'New', released: '2026-03', downloadUrl: HF('bartowski/glm-4-9b-chat-abliterated-GGUF', 'glm-4-9b-chat-abliterated-Q4_K_M.gguf'), filename: 'glm-4-9b-chat-abliterated-Q4_K_M.gguf', sizeGB: 5 },
+ // ── Popular: Gemma 3 Abliterated ──
+ { name: 'Gemma 3 4B Abliterated', description: 'Google Gemma 3 4B abliterated — lightweight, vision support.', pulls: '20K+', tags: ['4B', 'Q4_K_M', '3 GB'], updated: 'Popular', released: '2025-03', downloadUrl: HF('bartowski/mlabonne_gemma-3-4b-it-abliterated-GGUF', 'mlabonne_gemma-3-4b-it-abliterated-Q4_K_M.gguf'), filename: 'mlabonne_gemma-3-4b-it-abliterated-Q4_K_M.gguf', sizeGB: 3 },
+ { name: 'Gemma 3 12B Abliterated', description: 'Google Gemma 3 12B abliterated — vision support, great quality.', pulls: '20K+', tags: ['12B', 'Q4_K_M', '8 GB'], updated: 'Popular', released: '2025-03', downloadUrl: HF('bartowski/mlabonne_gemma-3-12b-it-abliterated-GGUF', 'mlabonne_gemma-3-12b-it-abliterated-Q4_K_M.gguf'), filename: 'mlabonne_gemma-3-12b-it-abliterated-Q4_K_M.gguf', sizeGB: 8 },
+ { name: 'Gemma 3 27B Abliterated', description: 'Google Gemma 3 27B abliterated — strong reasoning + vision.', pulls: '20K+', tags: ['27B', 'Q4_K_M', '17 GB'], updated: 'Popular', released: '2025-03', downloadUrl: HF('bartowski/mlabonne_gemma-3-27b-it-abliterated-GGUF', 'mlabonne_gemma-3-27b-it-abliterated-Q4_K_M.gguf'), filename: 'mlabonne_gemma-3-27b-it-abliterated-Q4_K_M.gguf', sizeGB: 17 },
+ // ── Popular: Qwen3 14B Abliterated (two quants) ──
+ { name: 'Qwen3 14B Abliterated Q4', description: 'Qwen3 14B abliterated — sweet spot of speed and intelligence.', pulls: '4K+', tags: ['14B', 'Q4_K_M', '9 GB'], updated: 'Recent', released: '2025-05', downloadUrl: HF('bartowski/huihui-ai_Qwen3-14B-abliterated-GGUF', 'huihui-ai_Qwen3-14B-abliterated-Q4_K_M.gguf'), filename: 'huihui-ai_Qwen3-14B-abliterated-Q4_K_M.gguf', sizeGB: 9 },
+ { name: 'Qwen3 14B Abliterated Q5', description: 'Qwen3 14B abliterated — higher quality quant.', pulls: '4K+', tags: ['14B', 'Q5_K_M', '10 GB'], updated: 'Recent', released: '2025-05', downloadUrl: HF('bartowski/huihui-ai_Qwen3-14B-abliterated-GGUF', 'huihui-ai_Qwen3-14B-abliterated-Q5_K_M.gguf'), filename: 'huihui-ai_Qwen3-14B-abliterated-Q5_K_M.gguf', sizeGB: 10 },
+ // ── Popular: Qwen 2.5 Abliterated ──
+ { name: 'Qwen 2.5 7B Abliterated', description: 'Qwen 2.5 7B abliterated — proven and reliable.', pulls: '50K+', tags: ['7B', 'Q4_K_M', '5 GB'], updated: 'Popular', agent: true, released: '2024-09', downloadUrl: HF('QuantFactory/Qwen2.5-7B-Instruct-abliterated-v2-GGUF', 'Qwen2.5-7B-Instruct-abliterated-v2.Q4_K_M.gguf'), filename: 'Qwen2.5-7B-Instruct-abliterated-v2.Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'Qwen 2.5 14B Abliterated', description: 'Qwen 2.5 14B abliterated — stronger reasoning.', pulls: '50K+', tags: ['14B', 'Q4_K_M', '9 GB'], updated: 'Popular', agent: true, released: '2024-09', downloadUrl: HF('mradermacher/Qwen2.5-14B-Instruct-abliterated-GGUF', 'Qwen2.5-14B-Instruct-abliterated.Q4_K_M.gguf'), filename: 'Qwen2.5-14B-Instruct-abliterated.Q4_K_M.gguf', sizeGB: 9 },
+ { name: 'Qwen 2.5 32B Abliterated', description: 'Qwen 2.5 32B abliterated — powerful.', pulls: '50K+', tags: ['32B', 'Q4_K_M', '19 GB'], updated: 'Popular', agent: true, released: '2024-09', downloadUrl: HF('RichardErkhov/huihui-ai_-_Qwen2.5-32B-Instruct-abliterated-gguf', 'Qwen2.5-32B-Instruct-abliterated.Q4_K_M.gguf'), filename: 'Qwen2.5-32B-Instruct-abliterated.Q4_K_M.gguf', sizeGB: 19 },
+ // ── Popular: Single-size uncensored ──
+ { name: 'Llama 3.3 70B Abliterated', description: 'Llama 3.3 70B abliterated — maximum intelligence for high-VRAM setups.', pulls: '15K+', tags: ['70B', 'Q4_K_M', '42 GB'], updated: 'Popular', agent: true, released: '2024-12', downloadUrl: HF('bartowski/Llama-3.3-70B-Instruct-abliterated-GGUF', 'Llama-3.3-70B-Instruct-abliterated-Q4_K_M.gguf'), filename: 'Llama-3.3-70B-Instruct-abliterated-Q4_K_M.gguf', sizeGB: 42 },
+ { name: 'Mistral Small 24B Abliterated', description: 'Mistral Small 24B abliterated — powerful, strong multilingual.', pulls: '10K+', tags: ['24B', 'Q4_K_M', '14 GB'], updated: 'Recent', agent: true, released: '2024-09', downloadUrl: HF('bartowski/huihui-ai_Mistral-Small-24B-Instruct-2501-abliterated-GGUF', 'huihui-ai_Mistral-Small-24B-Instruct-2501-abliterated-Q4_K_M.gguf'), filename: 'huihui-ai_Mistral-Small-24B-Instruct-2501-abliterated-Q4_K_M.gguf', sizeGB: 14 },
+ { name: 'Phi-4 14B Abliterated', description: 'Microsoft Phi-4 abliterated — excellent at math, logic, structured tasks.', pulls: '8K+', tags: ['14B', 'Q4_K_M', '8 GB'], updated: 'Recent', released: '2024-12', downloadUrl: HF('mradermacher/phi-4-abliterated-GGUF', 'phi-4-abliterated.Q4_K_M.gguf'), filename: 'phi-4-abliterated.Q4_K_M.gguf', sizeGB: 8 },
+ { name: 'Mistral Nemo 12B Abliterated', description: 'Mistral Nemo 12B abliterated — multilingual powerhouse.', pulls: '5K+', tags: ['12B', 'Q4_K_M', '7 GB'], updated: 'Popular', released: '2024-07', downloadUrl: HF('QuantFactory/Mistral-Nemo-Instruct-2407-abliterated-GGUF', 'Mistral-Nemo-Instruct-2407-abliterated.Q4_K_M.gguf'), filename: 'Mistral-Nemo-Instruct-2407-abliterated.Q4_K_M.gguf', sizeGB: 7 },
])
}
-/** Mainstream models — not uncensored but excellent for specific tasks */
+/** Mainstream GGUF models — not uncensored but excellent for specific tasks. All URLs verified. */
export function getMainstreamTextModels(): DiscoverModel[] {
return sortByRelease([
- { name: 'gemma4', description: 'Google Gemma 4 — native tool calling + vision. 128-256K context. Apache 2.0.', pulls: '100K+', tags: ['e2b', 'e4b', '26B', '31B'], updated: 'New', hot: true, agent: true, released: '2026-04' },
- { name: 'qwen3-coder', description: 'Qwen3-Coder — 30B MoE coding agent (3B active). Native tool calling, 256K context.', pulls: '100K+', tags: ['30B', '480B'], updated: 'New', hot: true, agent: true, released: '2026-02' },
- { name: 'qwen3-coder-next', description: 'Qwen3-Coder-Next — 80B MoE (3B active). Optimized for agentic coding workflows.', pulls: '10K+', tags: ['Q4_K_M', 'Q8_0'], updated: 'New', hot: true, agent: true, released: '2026-03' },
- { name: 'qwen3', description: 'Qwen 3 — top-tier reasoning and coding. Thinking mode support.', pulls: '5M+', tags: ['8B', '14B', '32B'], updated: 'Popular', agent: true, released: '2025-05' },
- { name: 'llama4', description: 'Meta Llama 4 — latest generation MoE. Needs 64GB+ RAM.', pulls: '1M+', tags: ['scout', 'maverick'], updated: 'New', agent: true, released: '2025-04' },
- { name: 'deepseek-r1', description: 'DeepSeek R1 — chain-of-thought reasoning model. Shows its thinking.', pulls: '2M+', tags: ['8B', '14B', '32B', '70B'], updated: 'Popular', released: '2025-01' },
- { name: 'phi4', description: 'Microsoft Phi 4 — excellent math, logic, structured tasks.', pulls: '500K+', tags: ['14B'], updated: 'Popular', agent: true, released: '2024-12' },
- { name: 'mistral-small', description: 'Mistral Small — fast, multilingual, native tool calling.', pulls: '300K+', tags: ['24B'], updated: 'Popular', agent: true, released: '2024-09' },
+ // ── Gemma 4 (April 2026) ──
+ { name: 'Gemma 4 31B', description: 'Google Gemma 4 31B — frontier dense model, native tools + vision. 256K context.', pulls: '100K+', tags: ['31B', 'Q4_K_M', '17 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-04', downloadUrl: HF('unsloth/gemma-4-31B-it-GGUF', 'gemma-4-31B-it-Q4_K_M.gguf'), filename: 'gemma-4-31B-it-Q4_K_M.gguf', sizeGB: 17 },
+ { name: 'Gemma 4 26B MoE', description: 'Gemma 4 26B MoE — 26B brain, runs like 4B. Tools + vision. Apache 2.0.', pulls: '100K+', tags: ['26B', 'Q4_K_XL', '16 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-04', downloadUrl: HF('unsloth/gemma-4-26B-A4B-it-GGUF', 'gemma-4-26B-A4B-it-UD-Q4_K_XL.gguf'), filename: 'gemma-4-26B-A4B-it-UD-Q4_K_XL.gguf', sizeGB: 16 },
+ { name: 'Gemma 4 E4B', description: 'Gemma 4 E4B — lightweight 4.5B, great for small GPUs.', pulls: '100K+', tags: ['4.5B', 'Q4_K_M', '5 GB'], updated: 'Hot', hot: true, released: '2026-04', downloadUrl: HF('unsloth/gemma-4-E4B-it-GGUF', 'gemma-4-E4B-it-Q4_K_M.gguf'), filename: 'gemma-4-E4B-it-Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'Gemma 4 E2B', description: 'Gemma 4 E2B — ultra-light 2.3B, runs on anything.', pulls: '100K+', tags: ['2.3B', 'Q4_K_M', '3 GB'], updated: 'New', released: '2026-04', downloadUrl: HF('unsloth/gemma-4-E2B-it-GGUF', 'gemma-4-E2B-it-Q4_K_M.gguf'), filename: 'gemma-4-E2B-it-Q4_K_M.gguf', sizeGB: 3 },
+ // ── Qwen 3.5 (March 2026) ──
+ { name: 'Qwen 3.5 35B MoE', description: 'Qwen 3.5 35B MoE — best agentic, 256K context. SWE-bench leader.', pulls: '100K+', tags: ['35B', 'Q4_K_M', '21 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-03', downloadUrl: HF('unsloth/Qwen3.5-35B-A3B-GGUF', 'Qwen3.5-35B-A3B-Q4_K_M.gguf'), filename: 'Qwen3.5-35B-A3B-Q4_K_M.gguf', sizeGB: 21 },
+ { name: 'Qwen 3.5 27B', description: 'Qwen 3.5 27B dense — strongest reasoning + coding.', pulls: '100K+', tags: ['27B', 'Q4_K_M', '16 GB'], updated: 'Hot', hot: true, released: '2026-03', downloadUrl: HF('unsloth/Qwen3.5-27B-GGUF', 'Qwen3.5-27B-Q4_K_M.gguf'), filename: 'Qwen3.5-27B-Q4_K_M.gguf', sizeGB: 16 },
+ { name: 'Qwen 3.5 9B', description: 'Qwen 3.5 9B — excellent balance of speed and quality.', pulls: '100K+', tags: ['9B', 'Q4_K_M', '5 GB'], updated: 'New', released: '2026-03', downloadUrl: HF('unsloth/Qwen3.5-9B-GGUF', 'Qwen3.5-9B-Q4_K_M.gguf'), filename: 'Qwen3.5-9B-Q4_K_M.gguf', sizeGB: 5 },
+ // ── GPT-OSS (March 2026) ──
+ { name: 'GPT-OSS 20B', description: 'OpenAI GPT-OSS — open-source GPT model, strong all-rounder.', pulls: '100K+', tags: ['20B', 'Q4_K_M', '11 GB'], updated: 'Hot', hot: true, released: '2026-03', downloadUrl: HF('unsloth/gpt-oss-20b-GGUF', 'gpt-oss-20b-Q4_K_M.gguf'), filename: 'gpt-oss-20b-Q4_K_M.gguf', sizeGB: 11 },
+ // ── Qwen3-Coder (Feb-March 2026) ──
+ { name: 'Qwen3-Coder 30B', description: 'Qwen3-Coder — 30B MoE coding agent (3B active). Native tool calling, 256K context.', pulls: '100K+', tags: ['30B MoE', 'Q4_K_M', '17 GB'], updated: 'New', hot: true, agent: true, released: '2026-02', downloadUrl: HF('unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF', 'Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf'), filename: 'Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf', sizeGB: 17 },
+ { name: 'Qwen3-Coder-Next', description: 'Qwen3-Coder-Next — 80B MoE, optimized for agentic coding.', pulls: '10K+', tags: ['80B MoE', 'Q4_K_M', '45 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-03', downloadUrl: HF('unsloth/Qwen3-Coder-Next-GGUF', 'Qwen3-Coder-Next-Q4_K_M.gguf'), filename: 'Qwen3-Coder-Next-Q4_K_M.gguf', sizeGB: 45 },
+ // ── DeepSeek R1 (Jan-Jun 2025) ──
+ { name: 'DeepSeek R1 Qwen3 8B', description: 'DeepSeek R1 distilled into Qwen3 8B — chain-of-thought reasoning.', pulls: '2M+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Popular', released: '2025-06', downloadUrl: HF('unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF', 'DeepSeek-R1-0528-Qwen3-8B-Q4_K_M.gguf'), filename: 'DeepSeek-R1-0528-Qwen3-8B-Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'DeepSeek R1 Qwen 14B', description: 'DeepSeek R1 distilled into Qwen 14B — stronger reasoning.', pulls: '2M+', tags: ['14B', 'Q4_K_M', '9 GB'], updated: 'Popular', released: '2025-01', downloadUrl: HF('unsloth/DeepSeek-R1-Distill-Qwen-14B-GGUF', 'DeepSeek-R1-Distill-Qwen-14B-Q4_K_M.gguf'), filename: 'DeepSeek-R1-Distill-Qwen-14B-Q4_K_M.gguf', sizeGB: 9 },
+ { name: 'DeepSeek R1 Qwen 32B', description: 'DeepSeek R1 distilled into Qwen 32B — powerful reasoning.', pulls: '2M+', tags: ['32B', 'Q4_K_M', '19 GB'], updated: 'Popular', released: '2025-01', downloadUrl: HF('unsloth/DeepSeek-R1-Distill-Qwen-32B-GGUF', 'DeepSeek-R1-Distill-Qwen-32B-Q4_K_M.gguf'), filename: 'DeepSeek-R1-Distill-Qwen-32B-Q4_K_M.gguf', sizeGB: 19 },
+ { name: 'DeepSeek R1 Llama 70B', description: 'DeepSeek R1 distilled into Llama 70B — maximum reasoning.', pulls: '2M+', tags: ['70B', 'Q4_K_M', '42 GB'], updated: 'Popular', released: '2025-01', downloadUrl: HF('unsloth/DeepSeek-R1-Distill-Llama-70B-GGUF', 'DeepSeek-R1-Distill-Llama-70B-Q4_K_M.gguf'), filename: 'DeepSeek-R1-Distill-Llama-70B-Q4_K_M.gguf', sizeGB: 42 },
+ // ── Qwen 3 (May 2025) ──
+ { name: 'Qwen 3 4B', description: 'Qwen 3 4B — fast, lightweight, solid for small GPUs.', pulls: '5M+', tags: ['4B', 'Q4_K_M', '3 GB'], updated: 'Popular', released: '2025-05', downloadUrl: HF('unsloth/Qwen3-4B-GGUF', 'Qwen3-4B-Q4_K_M.gguf'), filename: 'Qwen3-4B-Q4_K_M.gguf', sizeGB: 3 },
+ { name: 'Qwen 3 8B', description: 'Qwen 3 8B — top-tier reasoning and coding. Thinking mode.', pulls: '5M+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Popular', agent: true, released: '2025-05', downloadUrl: HF('unsloth/Qwen3-8B-GGUF', 'Qwen3-8B-Q4_K_M.gguf'), filename: 'Qwen3-8B-Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'Qwen 3 14B', description: 'Qwen 3 14B — sweet spot of speed and quality.', pulls: '5M+', tags: ['14B', 'Q4_K_M', '9 GB'], updated: 'Popular', agent: true, released: '2025-05', downloadUrl: HF('unsloth/Qwen3-14B-GGUF', 'Qwen3-14B-Q4_K_M.gguf'), filename: 'Qwen3-14B-Q4_K_M.gguf', sizeGB: 9 },
+ { name: 'Qwen 3 32B', description: 'Qwen 3 32B — powerful reasoning and coding.', pulls: '5M+', tags: ['32B', 'Q4_K_XL', '20 GB'], updated: 'Popular', agent: true, released: '2025-05', downloadUrl: HF('unsloth/Qwen3-32B-GGUF', 'Qwen3-32B-UD-Q4_K_XL.gguf'), filename: 'Qwen3-32B-UD-Q4_K_XL.gguf', sizeGB: 20 },
+ // ── Llama 4 (April 2025) ──
+ { name: 'Llama 4 Scout', description: 'Meta Llama 4 Scout — 16x17B MoE. Massive context window.', pulls: '1M+', tags: ['Scout', 'Q2_K_XL', '40 GB'], updated: 'New', agent: true, released: '2025-04', downloadUrl: HF('unsloth/Llama-4-Scout-17B-16E-Instruct-GGUF', 'Llama-4-Scout-17B-16E-Instruct-UD-Q2_K_XL.gguf'), filename: 'Llama-4-Scout-17B-16E-Instruct-UD-Q2_K_XL.gguf', sizeGB: 40 },
+ // ── Gemma 3 (March 2025) ──
+ { name: 'Gemma 3 12B', description: 'Google Gemma 3 12B — vision support, great quality.', pulls: '100K+', tags: ['12B', 'Q4_K_M', '8 GB'], updated: 'Popular', released: '2025-03', downloadUrl: HF('unsloth/gemma-3-12b-it-GGUF', 'gemma-3-12b-it-Q4_K_M.gguf'), filename: 'gemma-3-12b-it-Q4_K_M.gguf', sizeGB: 8 },
+ { name: 'Gemma 3 27B', description: 'Google Gemma 3 27B — strong reasoning + vision.', pulls: '100K+', tags: ['27B', 'Q4_K_M', '17 GB'], updated: 'Popular', released: '2025-03', downloadUrl: HF('unsloth/gemma-3-27b-it-GGUF', 'gemma-3-27b-it-Q4_K_M.gguf'), filename: 'gemma-3-27b-it-Q4_K_M.gguf', sizeGB: 17 },
+ // ── Phi 4 (Dec 2024) ──
+ { name: 'Phi-4 14B', description: 'Microsoft Phi-4 — excellent at math, logic, structured tasks.', pulls: '500K+', tags: ['14B', 'Q4_K_M', '9 GB'], updated: 'Popular', agent: true, released: '2024-12', downloadUrl: HF('bartowski/phi-4-GGUF', 'phi-4-Q4_K_M.gguf'), filename: 'phi-4-Q4_K_M.gguf', sizeGB: 9 },
+ // ── Llama 3.3 / 3.1 ──
+ { name: 'Llama 3.3 70B', description: 'Meta Llama 3.3 70B — maximum intelligence for high-end setups.', pulls: '1M+', tags: ['70B', 'Q4_K_M', '42 GB'], updated: 'Popular', released: '2024-12', downloadUrl: HF('bartowski/Llama-3.3-70B-Instruct-GGUF', 'Llama-3.3-70B-Instruct-Q4_K_M.gguf'), filename: 'Llama-3.3-70B-Instruct-Q4_K_M.gguf', sizeGB: 42 },
+ { name: 'Llama 3.1 8B', description: 'Meta Llama 3.1 8B — fast, reliable, great entry point.', pulls: '1M+', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Popular', released: '2024-07', downloadUrl: HF('bartowski/Meta-Llama-3.1-8B-Instruct-GGUF', 'Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf'), filename: 'Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf', sizeGB: 5 },
+ // ── Mistral ──
+ { name: 'Mistral Small 24B', description: 'Mistral Small — fast, multilingual, native tool calling.', pulls: '300K+', tags: ['24B', 'Q4_K_M', '14 GB'], updated: 'Popular', agent: true, released: '2024-09', downloadUrl: HF('bartowski/Mistral-Small-24B-Instruct-2501-GGUF', 'Mistral-Small-24B-Instruct-2501-Q4_K_M.gguf'), filename: 'Mistral-Small-24B-Instruct-2501-Q4_K_M.gguf', sizeGB: 14 },
+ { name: 'Mistral Nemo 12B', description: 'Mistral Nemo 12B — multilingual powerhouse.', pulls: '300K+', tags: ['12B', 'Q4_K_M', '7 GB'], updated: 'Popular', released: '2024-07', downloadUrl: HF('bartowski/Mistral-Nemo-Instruct-2407-GGUF', 'Mistral-Nemo-Instruct-2407-Q4_K_M.gguf'), filename: 'Mistral-Nemo-Instruct-2407-Q4_K_M.gguf', sizeGB: 7 },
+ // ── Qwen 2.5 ──
+ { name: 'Qwen 2.5 7B', description: 'Qwen 2.5 7B — proven and reliable all-rounder.', pulls: '100K+', tags: ['7B', 'Q4_K_M', '5 GB'], updated: 'Popular', released: '2024-09', downloadUrl: HF('bartowski/Qwen2.5-7B-Instruct-GGUF', 'Qwen2.5-7B-Instruct-Q4_K_M.gguf'), filename: 'Qwen2.5-7B-Instruct-Q4_K_M.gguf', sizeGB: 5 },
])
}
-/** Combined curated list for search fallback — uncensored first */
-function getCuratedTextModels(): DiscoverModel[] {
- return [...getUncensoredTextModels(), ...getMainstreamTextModels()]
-}
-
// ─── Multi-Provider Discovery ───
/** Fetch models from an OpenAI-compatible provider */
@@ -452,63 +429,6 @@ export async function getAnthropicModels(): Promise<DiscoverModel[]> {
}
}
-// ─── HuggingFace GGUF Discovery ───
-
-const HF = (repo: string, file: string) => `https://huggingface.co/${repo}/resolve/main/${file}`
-
-/** Uncensored GGUF models from HuggingFace */
-export function getHuggingFaceUncensoredModels(): DiscoverModel[] {
- return sortByRelease([
- { name: 'Hermes 3 Llama 3.1 8B', description: 'NousResearch Hermes 3 — uncensored + native tool calling. THE agent model.', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Hot', hot: true, agent: true, released: '2024-08', downloadUrl: HF('bartowski/Hermes-3-Llama-3.1-8B-GGUF', 'Hermes-3-Llama-3.1-8B-Q4_K_M.gguf'), filename: 'Hermes-3-Llama-3.1-8B-Q4_K_M.gguf', sizeGB: 5 },
- { name: 'Dolphin 3 Llama 3.1 8B', description: 'Dolphin 3 — uncensored from training. Coding, math, general purpose.', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Hot', hot: true, released: '2024-12', downloadUrl: HF('bartowski/dolphin-2.9.4-llama3.1-8b-GGUF', 'dolphin-2.9.4-llama3.1-8b-Q4_K_M.gguf'), filename: 'dolphin-2.9.4-llama3.1-8b-Q4_K_M.gguf', sizeGB: 5 },
- ])
-}
-
-/** Mainstream GGUF models from HuggingFace — all URLs verified */
-export function getHuggingFaceMainstreamModels(): DiscoverModel[] {
- return sortByRelease([
- // ── Gemma 4 (April 2026) ──
- { name: 'Gemma 4 31B', description: 'Google Gemma 4 31B — frontier dense model, native tools + vision. 256K context.', tags: ['31B', 'Q4_K_M', '20 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-04', downloadUrl: HF('unsloth/gemma-4-31B-it-GGUF', 'gemma-4-31B-it-Q4_K_M.gguf'), filename: 'gemma-4-31B-it-Q4_K_M.gguf', sizeGB: 20 },
- { name: 'Gemma 4 26B MoE', description: 'Gemma 4 26B MoE — 26B brain, runs like 4B. Tools + vision. Apache 2.0.', tags: ['26B', 'Q4_K_XL', '18 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-04', downloadUrl: HF('unsloth/gemma-4-26B-A4B-it-GGUF', 'gemma-4-26B-A4B-it-UD-Q4_K_XL.gguf'), filename: 'gemma-4-26B-A4B-it-UD-Q4_K_XL.gguf', sizeGB: 18 },
- { name: 'Gemma 4 E4B', description: 'Gemma 4 E4B — lightweight 4.5B, great for small GPUs.', tags: ['4.5B', 'Q4_K_M', '5 GB'], updated: 'Hot', hot: true, released: '2026-04', downloadUrl: HF('unsloth/gemma-4-E4B-it-GGUF', 'gemma-4-E4B-it-Q4_K_M.gguf'), filename: 'gemma-4-E4B-it-Q4_K_M.gguf', sizeGB: 5 },
- { name: 'Gemma 4 E2B', description: 'Gemma 4 E2B — ultra-light 2.3B, runs on anything.', tags: ['2.3B', 'Q4_K_M', '3 GB'], updated: 'New', released: '2026-04', downloadUrl: HF('unsloth/gemma-4-E2B-it-GGUF', 'gemma-4-E2B-it-Q4_K_M.gguf'), filename: 'gemma-4-E2B-it-Q4_K_M.gguf', sizeGB: 3 },
- // ── Qwen 3.5 (March 2026) ──
- { name: 'Qwen 3.5 35B MoE', description: 'Qwen 3.5 35B MoE — best agentic, 256K context. SWE-bench leader.', tags: ['35B', 'Q4_K_M', '22 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-03', downloadUrl: HF('unsloth/Qwen3.5-35B-A3B-GGUF', 'Qwen3.5-35B-A3B-Q4_K_M.gguf'), filename: 'Qwen3.5-35B-A3B-Q4_K_M.gguf', sizeGB: 22 },
- { name: 'Qwen 3.5 27B', description: 'Qwen 3.5 27B dense — strongest reasoning + coding.', tags: ['27B', 'Q4_K_M', '17 GB'], updated: 'Hot', hot: true, released: '2026-03', downloadUrl: HF('unsloth/Qwen3.5-27B-GGUF', 'Qwen3.5-27B-Q4_K_M.gguf'), filename: 'Qwen3.5-27B-Q4_K_M.gguf', sizeGB: 17 },
- { name: 'Qwen 3.5 9B', description: 'Qwen 3.5 9B — excellent balance of speed and quality.', tags: ['9B', 'Q4_K_M', '6 GB'], updated: 'New', released: '2026-03', downloadUrl: HF('unsloth/Qwen3.5-9B-GGUF', 'Qwen3.5-9B-Q4_K_M.gguf'), filename: 'Qwen3.5-9B-Q4_K_M.gguf', sizeGB: 6 },
- // ── GPT-OSS (March 2026) ──
- { name: 'GPT-OSS 20B', description: 'OpenAI GPT-OSS — open-source GPT model, strong all-rounder.', tags: ['20B', 'Q4_K_M', '13 GB'], updated: 'Hot', hot: true, released: '2026-03', downloadUrl: HF('unsloth/gpt-oss-20b-GGUF', 'gpt-oss-20b-Q4_K_M.gguf'), filename: 'gpt-oss-20b-Q4_K_M.gguf', sizeGB: 13 },
- // ── Qwen3-Coder (March 2026) ──
- { name: 'Qwen3-Coder-Next', description: 'Qwen3-Coder-Next — 80B MoE, optimized for agentic coding.', tags: ['80B MoE', 'Q4_K_M', '25 GB'], updated: 'Hot', hot: true, agent: true, released: '2026-03', downloadUrl: HF('unsloth/Qwen3-Coder-Next-GGUF', 'Qwen3-Coder-Next-Q4_K_M.gguf'), filename: 'Qwen3-Coder-Next-Q4_K_M.gguf', sizeGB: 25 },
- // ── DeepSeek (Jan-Jun 2025) ──
- { name: 'DeepSeek R1 Qwen3 8B', description: 'DeepSeek R1 distilled into Qwen3 8B — chain-of-thought reasoning.', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Popular', released: '2025-06', downloadUrl: HF('unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF', 'DeepSeek-R1-0528-Qwen3-8B-Q4_K_M.gguf'), filename: 'DeepSeek-R1-0528-Qwen3-8B-Q4_K_M.gguf', sizeGB: 5 },
- { name: 'DeepSeek R1 Qwen 14B', description: 'DeepSeek R1 distilled into Qwen 14B — stronger reasoning.', tags: ['14B', 'Q4_K_M', '9 GB'], updated: 'Popular', released: '2025-01', downloadUrl: HF('unsloth/DeepSeek-R1-Distill-Qwen-14B-GGUF', 'DeepSeek-R1-Distill-Qwen-14B-Q4_K_M.gguf'), filename: 'DeepSeek-R1-Distill-Qwen-14B-Q4_K_M.gguf', sizeGB: 9 },
- // ── Qwen 3 (May 2025) ──
- { name: 'Qwen 3 8B', description: 'Qwen 3 8B — top-tier reasoning and coding. Thinking mode.', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Popular', agent: true, released: '2025-05', downloadUrl: HF('unsloth/Qwen3-8B-GGUF', 'Qwen3-8B-Q4_K_M.gguf'), filename: 'Qwen3-8B-Q4_K_M.gguf', sizeGB: 5 },
- { name: 'Qwen 3 4B', description: 'Qwen 3 4B — fast, lightweight, solid for small GPUs.', tags: ['4B', 'Q4_K_M', '3 GB'], updated: 'Popular', released: '2025-05', downloadUrl: HF('unsloth/Qwen3-4B-GGUF', 'Qwen3-4B-Q4_K_M.gguf'), filename: 'Qwen3-4B-Q4_K_M.gguf', sizeGB: 3 },
- // ── Llama 4 (April 2025) ──
- { name: 'Llama 4 Scout', description: 'Meta Llama 4 Scout — 16x17B MoE. Massive context window.', tags: ['Scout', 'Q2_K_XL', '65 GB'], updated: 'New', agent: true, released: '2025-04', downloadUrl: HF('unsloth/Llama-4-Scout-17B-16E-Instruct-GGUF', 'Llama-4-Scout-17B-16E-Instruct-UD-Q2_K_XL.gguf'), filename: 'Llama-4-Scout-17B-16E-Instruct-UD-Q2_K_XL.gguf', sizeGB: 65 },
- // ── Gemma 3 (March 2025) ──
- { name: 'Gemma 3 12B', description: 'Google Gemma 3 12B — vision support, great quality.', tags: ['12B', 'Q4_K_M', '8 GB'], updated: 'Popular', released: '2025-03', downloadUrl: HF('unsloth/gemma-3-12b-it-GGUF', 'gemma-3-12b-it-Q4_K_M.gguf'), filename: 'gemma-3-12b-it-Q4_K_M.gguf', sizeGB: 8 },
- { name: 'Gemma 3 27B', description: 'Google Gemma 3 27B — strong reasoning + vision.', tags: ['27B', 'Q4_K_M', '17 GB'], updated: 'Popular', released: '2025-03', downloadUrl: HF('unsloth/gemma-3-27b-it-GGUF', 'gemma-3-27b-it-Q4_K_M.gguf'), filename: 'gemma-3-27b-it-Q4_K_M.gguf', sizeGB: 17 },
- // ── Phi 4 (Dec 2024) ──
- { name: 'Phi-4 14B', description: 'Microsoft Phi-4 — excellent at math, logic, structured tasks.', tags: ['14B', 'Q4_K_M', '9 GB'], updated: 'Popular', agent: true, released: '2024-12', downloadUrl: HF('bartowski/phi-4-GGUF', 'phi-4-Q4_K_M.gguf'), filename: 'phi-4-Q4_K_M.gguf', sizeGB: 9 },
- // ── Llama 3.3 / 3.1 ──
- { name: 'Llama 3.3 70B', description: 'Meta Llama 3.3 70B — maximum intelligence for high-end setups.', tags: ['70B', 'Q4_K_M', '42 GB'], updated: 'Popular', released: '2024-12', downloadUrl: HF('bartowski/Llama-3.3-70B-Instruct-GGUF', 'Llama-3.3-70B-Instruct-Q4_K_M.gguf'), filename: 'Llama-3.3-70B-Instruct-Q4_K_M.gguf', sizeGB: 42 },
- { name: 'Llama 3.1 8B', description: 'Meta Llama 3.1 8B — fast, reliable, great entry point.', tags: ['8B', 'Q4_K_M', '5 GB'], updated: 'Popular', released: '2024-07', downloadUrl: HF('bartowski/Meta-Llama-3.1-8B-Instruct-GGUF', 'Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf'), filename: 'Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf', sizeGB: 5 },
- // ── Mistral ──
- { name: 'Mistral Small 24B', description: 'Mistral Small — fast, multilingual, native tool calling.', tags: ['24B', 'Q4_K_M', '14 GB'], updated: 'Popular', agent: true, released: '2024-09', downloadUrl: HF('bartowski/Mistral-Small-24B-Instruct-2501-GGUF', 'Mistral-Small-24B-Instruct-2501-Q4_K_M.gguf'), filename: 'Mistral-Small-24B-Instruct-2501-Q4_K_M.gguf', sizeGB: 14 },
- { name: 'Mistral Nemo 12B', description: 'Mistral Nemo 12B — multilingual powerhouse.', tags: ['12B', 'Q4_K_M', '7 GB'], updated: 'Popular', released: '2024-07', downloadUrl: HF('bartowski/Mistral-Nemo-Instruct-2407-GGUF', 'Mistral-Nemo-Instruct-2407-Q4_K_M.gguf'), filename: 'Mistral-Nemo-Instruct-2407-Q4_K_M.gguf', sizeGB: 7 },
- // ── Qwen 2.5 ──
- { name: 'Qwen 2.5 7B', description: 'Qwen 2.5 7B — proven and reliable all-rounder.', tags: ['7B', 'Q4_K_M', '5 GB'], updated: 'Popular', released: '2024-09', downloadUrl: HF('bartowski/Qwen2.5-7B-Instruct-GGUF', 'Qwen2.5-7B-Instruct-Q4_K_M.gguf'), filename: 'Qwen2.5-7B-Instruct-Q4_K_M.gguf', sizeGB: 5 },
- ])
-}
-
-/** Combined HF models for search fallback */
-export function getHuggingFaceModels(): DiscoverModel[] {
- return [...getHuggingFaceUncensoredModels(), ...getHuggingFaceMainstreamModels()]
-}
-
/** Search HuggingFace for GGUF models */
export async function searchHuggingFaceModels(query: string): Promise<DiscoverModel[]> {
try {
diff --git a/src/components/models/DiscoverModels.tsx b/src/components/models/DiscoverModels.tsx
index 11d7acf8..e7ebc85c 100644
--- a/src/components/models/DiscoverModels.tsx
+++ b/src/components/models/DiscoverModels.tsx
@@ -1,21 +1,19 @@
-import { useState, useEffect, useRef } from 'react'
+import { useState, useEffect } from 'react'
import { motion } from 'framer-motion'
-import { Download, RefreshCw, ExternalLink, Search, Info, CheckCircle, XCircle, Loader2 } from 'lucide-react'
+import { Download, RefreshCw, ExternalLink, Search, CheckCircle, XCircle, Loader2 } from 'lucide-react'
import { X } from 'lucide-react'
import {
- fetchAbliteratedModels, searchOllamaModels, searchHuggingFaceModels,
+ searchHuggingFaceModels,
getImageBundles, getVideoBundles,
getUncensoredTextModels, getMainstreamTextModels,
- getHuggingFaceUncensoredModels, getHuggingFaceMainstreamModels,
detectProviderModelPath, startModelDownloadToPath,
- startModelDownload, getDownloadProgress, searchCivitaiModels,
+ startModelDownload, searchCivitaiModels,
installBundleComplete, checkBundlesInstalled,
type DiscoverModel, type DownloadProgress, type ModelBundle, type CivitAIModelResult,
} from '../../api/discover'
import { getSystemVRAM } from '../../api/comfyui'
import { openExternal } from '../../api/backend'
import { useDownloadStore } from '../../stores/downloadStore'
-import { useModels } from '../../hooks/useModels'
import { useProviderStore } from '../../stores/providerStore'
import { GlassCard } from '../ui/GlassCard'
import { GlowButton } from '../ui/GlowButton'
@@ -28,94 +26,11 @@ interface Props {
category: ModelCategory
}
-// Variant selector for text models with multiple sizes
-function VariantPullButton({ model, pullModel, isPullingModel, isInstalled }: {
- model: DiscoverModel
- pullModel: (name: string) => void
- isPullingModel: (name: string) => boolean
- isInstalled: (name: string) => boolean
-}) {
- const [open, setOpen] = useState(false)
- // Filter tags that are valid Ollama size/variant identifiers (e.g. 8B, Q4_K_M, e2b, scout, IQ4_XS)
- const tags = model.tags.filter(t => /^\d+B$/i.test(t) || /^[Qe]\d/i.test(t) || /^IQ\d/i.test(t) || /^[a-z]+$/i.test(t))
-
- // Human-readable descriptions for non-obvious tags
- const TAG_INFO: Record<string, string> = {
- scout: 'Llama 4 Scout — 16×17B MoE, ~109 GB, 10M context',
- maverick: 'Llama 4 Maverick — 128×17B MoE, ~280 GB, 1M context',
- e2b: 'Gemma 4 — 2B parameters, lightweight',
- e4b: 'Gemma 4 — 4B parameters, balanced',
- }
-
- // If no size tags or only one, show simple button
- if (tags.length <= 1) {
- const fullName = tags.length === 1 ? `${model.name}:${tags[0].toLowerCase()}` : model.name
- if (isInstalled(fullName)) {
- return <span className="text-xs text-green-500 px-2 py-1">Installed</span>
- }
- return (
- <button
- onClick={() => pullModel(fullName)}
- disabled={isPullingModel(fullName)}
- className="p-2 rounded-lg bg-gray-100 dark:bg-white/10 hover:bg-gray-200 dark:hover:bg-white/15 text-gray-700 dark:text-white disabled:opacity-30 transition-all"
- title={`Install ${fullName}`}
- >
- <Download size={14} />
- </button>
- )
- }
-
- // Multiple variants → dropdown
- return (
- <div className="relative">
- <button
- onClick={() => setOpen(!open)}
- className="flex items-center gap-1 px-2 py-1.5 rounded-lg bg-gray-100 dark:bg-white/10 hover:bg-gray-200 dark:hover:bg-white/15 text-gray-700 dark:text-white transition-all text-xs"
- >
- <Download size={12} />
- <span>Install</span>
- <svg className={`w-3 h-3 transition-transform ${open ? 'rotate-180' : ''}`} fill="none" viewBox="0 0 24 24" stroke="currentColor"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 9l-7 7-7-7" /></svg>
- </button>
- {open && (
- <div className="absolute right-0 top-full mt-1 z-50 min-w-[120px] rounded-lg bg-gray-100 dark:bg-[#1a1a1a] border border-gray-200 dark:border-white/10 shadow-lg overflow-hidden">
- {tags.map(tag => {
- const fullName = `${model.name}:${tag.toLowerCase()}`
- const installed = isInstalled(fullName)
- const info = TAG_INFO[tag.toLowerCase()]
- return (
- <button
- key={tag}
- onClick={() => { if (!installed) pullModel(fullName); setOpen(false) }}
- disabled={installed || isPullingModel(fullName)}
- className="w-full flex items-start justify-between gap-3 px-3 py-2 text-xs hover:bg-gray-200 dark:hover:bg-white/10 transition-colors disabled:opacity-50"
- title={info || `Install ${fullName}`}
- >
- <div className="text-left">
- <span className="text-gray-800 dark:text-white font-medium">{tag}</span>
- {info && <p className="text-[0.6rem] text-gray-500 mt-0.5">{info}</p>}
- </div>
- {installed ? (
- <CheckCircle size={12} className="text-green-500 shrink-0 mt-0.5" />
- ) : (
- <Download size={12} className="text-gray-400 shrink-0 mt-0.5" />
- )}
- </button>
- )
- })}
- </div>
- )}
- </div>
- )
-}
-
-function ModelDiscoverCard({ model, index, isText, getModelDownloadState, pullModel, isPullingModel, isInstalled, isModelFullyInstalled, handleDownload }: {
+function ModelDiscoverCard({ model, index, isText, getModelDownloadState, isModelFullyInstalled, handleDownload }: {
model: DiscoverModel
index: number
isText: boolean
getModelDownloadState: (m: DiscoverModel) => DownloadProgress | null
- pullModel: (name: string) => void
- isPullingModel: (name: string) => boolean
- isInstalled: (name: string) => boolean
isModelFullyInstalled: (model: DiscoverModel) => boolean
handleDownload: (m: DiscoverModel) => void
}) {
@@ -180,9 +95,7 @@ function ModelDiscoverCard({ model, index, isText, getModelDownloadState, pullMo
<Download size={14} />
</button>
)
- ) : isText ? (
- <VariantPullButton model={model} pullModel={pullModel} isPullingModel={isPullingModel} isInstalled={isInstalled} />
- ) : (
+ ) : !isText ? (
<>
{isComplete ? (
<span className="flex items-center gap-1 text-xs text-green-500 px-2 py-1">
@@ -216,7 +129,6 @@ function ModelDiscoverCard({ model, index, isText, getModelDownloadState, pullMo
}
export function DiscoverModels({ category }: Props) {
- const [textModels, setTextModels] = useState<DiscoverModel[]>([])
const [civitaiResults, setCivitaiResults] = useState<CivitAIModelResult[]>([])
const [civitaiSearching, setCivitaiSearching] = useState(false)
const [civitaiQuery, setCivitaiQuery] = useState('')
@@ -225,33 +137,19 @@ export function DiscoverModels({ category }: Props) {
const [systemVRAM, setSystemVRAM] = useState<number | null>(null)
const [subTab, setSubTab] = useState<'uncensored' | 'mainstream'>('uncensored')
const [vramTier, setVramTier] = useState<'all' | 'lightweight' | 'mid' | 'highend'>('all')
- const { pullModel, isPullingModel, models: installedModels } = useModels()
const downloads = useDownloadStore(s => s.downloads)
const dlStore = useDownloadStore
- // Multi-provider state
+ // Provider state for model path detection
const providers = useProviderStore(s => s.providers)
- const [discoverSource, setDiscoverSource] = useState<'ollama' | 'huggingface'>('ollama')
const [hfModelPath, setHfModelPath] = useState<string | null>(null)
- const isOllama = discoverSource === 'ollama'
- // Load text models based on selected source
+ // Auto-detect provider model path for GGUF downloads
useEffect(() => {
if (category !== 'text') return
- setLoading(true)
-
- setSearch('')
- setHfSearchResults([])
-
- if (discoverSource === 'ollama') {
- fetchAbliteratedModels().then(m => { setTextModels(m); setLoading(false) })
- } else {
- // Auto-detect provider model path for downloads
- const providerName = providers.openai?.name || 'LM Studio'
- detectProviderModelPath(providerName).then(path => setHfModelPath(path))
- setLoading(false)
- }
- }, [category, discoverSource])
+ const providerName = providers.openai?.name || 'LM Studio'
+ detectProviderModelPath(providerName).then(path => setHfModelPath(path))
+ }, [category])
// Detect system VRAM
useEffect(() => {
@@ -284,13 +182,8 @@ export function DiscoverModels({ category }: Props) {
const isText = category === 'text'
const isImage = category === 'image'
const isVideo = category === 'video'
- const allModels = isText ? textModels : []
const bundles = isImage ? getImageBundles() : isVideo ? getVideoBundles() : []
- const filtered = search
- ? allModels.filter((m) => m.name.toLowerCase().includes(search.toLowerCase()) || m.description.toLowerCase().includes(search.toLowerCase()))
- : allModels
-
// Parse VRAM requirement string to minimum GB needed
// "6-8 GB" → 8 (need at least the upper bound)
// "12+ GB" → 13 (+ means MORE than that number)
@@ -336,25 +229,10 @@ export function DiscoverModels({ category }: Props) {
? vramFilteredBundles.filter((b) => b.name.toLowerCase().includes(search.toLowerCase()) || b.description.toLowerCase().includes(search.toLowerCase()))
: vramFilteredBundles
- const isInstalled = (name: string) => {
- // Exact match (e.g., "hermes3:8b" === "hermes3:8b")
- if (installedModels.some((m) => m.name === name)) return true
- // For names WITH a tag (e.g., "gemma4:31b") — only exact match, no prefix
- if (name.includes(':')) return false
- // For names WITHOUT a tag — only match ":latest" (default pull)
- return installedModels.some((m) => m.name === name + ':latest')
- }
-
- // Card-level: is the model fully installed? (all variants or the single default)
+ // GGUF installed check: model is installed if download completed in this session
const isModelFullyInstalled = (model: DiscoverModel) => {
- const sizeTags = model.tags.filter(t => /^\d+B$/i.test(t) || /^[Qe]\d/i.test(t) || /^IQ\d/i.test(t) || /^[a-z]+$/i.test(t))
- if (sizeTags.length <= 1) {
- // Single variant: check if that specific one is installed
- const fullName = sizeTags.length === 1 ? `${model.name}:${sizeTags[0].toLowerCase()}` : model.name
- return isInstalled(fullName)
- }
- // Multi-variant: show INSTALLED only if ALL variants are installed
- return sizeTags.every(tag => isInstalled(`${model.name}:${tag.toLowerCase()}`))
+ if (!model.filename) return false
+ return downloads[model.filename]?.status === 'complete'
}
const handleDownload = async (model: DiscoverModel) => {
@@ -467,17 +345,7 @@ export function DiscoverModels({ category }: Props) {
const [hfSearchResults, setHfSearchResults] = useState<DiscoverModel[]>([])
- const handleOllamaSearch = async () => {
- if (!search.trim() || !isText) return
- setLoading(true)
- try {
- const results = await searchOllamaModels(search.trim())
- setTextModels(results)
- } catch { /* keep existing */ }
- setLoading(false)
- }
-
- const handleHfSearch = async () => {
+ const handleSearch = async () => {
if (!search.trim() || !isText) return
setLoading(true)
try {
@@ -487,12 +355,8 @@ export function DiscoverModels({ category }: Props) {
setLoading(false)
}
- const uncensoredModels = isText
- ? (isOllama ? getUncensoredTextModels() : getHuggingFaceUncensoredModels())
- : []
- const mainstreamModels = isText
- ? (isOllama ? getMainstreamTextModels() : getHuggingFaceMainstreamModels())
- : []
+ const uncensoredModels = isText ? getUncensoredTextModels() : []
+ const mainstreamModels = isText ? getMainstreamTextModels() : []
const filteredUncensored = search
? uncensoredModels.filter((m) => m.name.toLowerCase().includes(search.toLowerCase()) || m.description.toLowerCase().includes(search.toLowerCase()))
@@ -501,27 +365,21 @@ export function DiscoverModels({ category }: Props) {
? mainstreamModels.filter((m) => m.name.toLowerCase().includes(search.toLowerCase()) || m.description.toLowerCase().includes(search.toLowerCase()))
: mainstreamModels
- const title = isText ? 'Discover LUncensored' : isImage ? 'Discover LUncensored' : 'Discover LUncensored'
+ const title = 'Discover LUncensored'
const subtitle = isText
- ? (isOllama ? 'Search the Ollama registry or browse curated models.'
- : `Download GGUF models from HuggingFace.${hfModelPath ? ` Saves to: ${hfModelPath}` : ''}`)
+ ? `Download GGUF models from HuggingFace.${hfModelPath ? ` Saves to: ${hfModelPath}` : ''}`
: isImage
? 'Browse image generation models for ComfyUI.'
: 'Browse video generation models for ComfyUI.'
const handleRefresh = () => {
setLoading(true)
- if (isOllama) {
- fetchAbliteratedModels().then(m => { setTextModels(m); setLoading(false) })
- } else {
- // HF curated lists are static — just re-detect model path and clear search results
- setHfSearchResults([])
- const providerName = providers.openai?.name || 'LM Studio'
- detectProviderModelPath(providerName).then(path => { setHfModelPath(path); setLoading(false) })
- }
+ setHfSearchResults([])
+ const providerName = providers.openai?.name || 'LM Studio'
+ detectProviderModelPath(providerName).then(path => { setHfModelPath(path); setLoading(false) })
}
- const handleHfDownload = async (model: DiscoverModel) => {
+ const handleTextDownload = async (model: DiscoverModel) => {
if (!model.downloadUrl || !model.filename) return
const destDir = hfModelPath || (await detectProviderModelPath(providers.openai?.name || 'LM Studio'))
if (!destDir) {
@@ -535,20 +393,11 @@ export function DiscoverModels({ category }: Props) {
await startModelDownloadToPath(model.downloadUrl, destDir, model.filename, expectedBytes)
dlStore.getState().startPolling()
} catch (e) {
- console.error('HF download failed:', e)
+ console.error('GGUF download failed:', e)
setInstallError(`Download failed: ${e instanceof Error ? e.message : String(e)}`)
}
}
- // Unified download handler — routes to HF or ComfyUI based on source
- const handleModelDownload = (model: DiscoverModel) => {
- if (!isOllama && isText) {
- handleHfDownload(model)
- } else {
- handleDownload(model)
- }
- }
-
return (
<div className="space-y-4 scale-[0.87] origin-top-left w-[115%]">
<div className="flex items-center justify-between">
@@ -562,32 +411,13 @@ export function DiscoverModels({ category }: Props) {
<p className="text-sm text-gray-500">{subtitle}</p>
- {/* Source Selector — Ollama (pull) or HuggingFace (GGUF download) */}
- {isText && (
- <div className="flex gap-2">
- {(['ollama', 'huggingface'] as const).map(src => (
- <button
- key={src}
- onClick={() => setDiscoverSource(src)}
- className={`px-3 py-1 rounded-full text-xs font-medium transition-all ${
- discoverSource === src
- ? 'bg-white/15 text-white border border-white/20'
- : 'text-gray-500 hover:text-gray-300 hover:bg-white/5'
- }`}
- >
- {src === 'ollama' ? 'Ollama' : 'HuggingFace'}
- </button>
- ))}
- </div>
- )}
-
<div className="relative">
<Search size={16} className="absolute left-3 top-1/2 -translate-y-1/2 text-gray-500" />
<input
value={search}
onChange={(e) => setSearch(e.target.value)}
- onKeyDown={(e) => { if (e.key === 'Enter' && isText) { isOllama ? handleOllamaSearch() : handleHfSearch() } }}
- placeholder={isText ? (isOllama ? 'Search Ollama registry... (Enter to search)' : 'Search HuggingFace GGUF models... (Enter to search)') : 'Filter models...'}
+ onKeyDown={(e) => { if (e.key === 'Enter' && isText) handleSearch() }}
+ placeholder={isText ? 'Search HuggingFace GGUF models... (Enter to search)' : 'Filter models...'}
className="w-full pl-9 pr-3 py-2 rounded-lg bg-gray-100 dark:bg-white/5 border border-gray-200 dark:border-white/10 text-sm text-gray-900 dark:text-white placeholder-gray-500 focus:outline-none focus:border-gray-400 dark:focus:border-white/30"
/>
</div>
@@ -825,8 +655,8 @@ export function DiscoverModels({ category }: Props) {
</GlassCard>
)}
- {/* HuggingFace model path info */}
- {!isOllama && isText && hfModelPath && (
+ {/* GGUF model path info */}
+ {isText && hfModelPath && (
<p className="text-[0.65rem] text-gray-500 truncate">
Downloads save to: {hfModelPath}
</p>
@@ -839,7 +669,7 @@ export function DiscoverModels({ category }: Props) {
{subTab === 'uncensored' && (
<div className="grid grid-cols-1 md:grid-cols-2 gap-3">
{filteredUncensored.map((model, i) => (
- <ModelDiscoverCard key={model.name} model={model} index={i} isText={isText} getModelDownloadState={getModelDownloadState} pullModel={pullModel} isPullingModel={isPullingModel} isInstalled={isInstalled} isModelFullyInstalled={isModelFullyInstalled} handleDownload={handleModelDownload} />
+ <ModelDiscoverCard key={model.name} model={model} index={i} isText={isText} getModelDownloadState={getModelDownloadState} isModelFullyInstalled={isModelFullyInstalled} handleDownload={handleTextDownload} />
))}
{filteredUncensored.length === 0 && (
<p className="text-center text-gray-500 py-4 col-span-2">No uncensored models match your search</p>
@@ -849,7 +679,7 @@ export function DiscoverModels({ category }: Props) {
{subTab === 'mainstream' && (
<div className="grid grid-cols-1 md:grid-cols-2 gap-3">
{filteredMainstream.map((model, i) => (
- <ModelDiscoverCard key={model.name} model={model} index={i} isText={isText} getModelDownloadState={getModelDownloadState} pullModel={pullModel} isPullingModel={isPullingModel} isInstalled={isInstalled} isModelFullyInstalled={isModelFullyInstalled} handleDownload={handleModelDownload} />
+ <ModelDiscoverCard key={model.name} model={model} index={i} isText={isText} getModelDownloadState={getModelDownloadState} isModelFullyInstalled={isModelFullyInstalled} handleDownload={handleTextDownload} />
))}
{filteredMainstream.length === 0 && (
<p className="text-center text-gray-500 py-4 col-span-2">No mainstream models match your search</p>
@@ -857,39 +687,21 @@ export function DiscoverModels({ category }: Props) {
</div>
)}
- {/* Ollama Search Results */}
- {isOllama && search && filtered.filter(m => !uncensoredModels.some(u => u.name === m.name) && !mainstreamModels.some(u => u.name === m.name)).length > 0 && (
- <div className="space-y-3 mt-6">
- <h3 className="text-[0.7rem] font-semibold text-gray-500 uppercase tracking-wider">Search Results</h3>
- <div className="grid grid-cols-1 md:grid-cols-2 gap-3">
- {filtered.filter(m => !uncensoredModels.some(u => u.name === m.name) && !mainstreamModels.some(u => u.name === m.name)).map((model, i) => (
- <ModelDiscoverCard key={model.name} model={model} index={i} isText={isText} getModelDownloadState={getModelDownloadState} pullModel={pullModel} isPullingModel={isPullingModel} isInstalled={isInstalled} isModelFullyInstalled={isModelFullyInstalled} handleDownload={handleModelDownload} />
- ))}
- </div>
- </div>
- )}
-
{/* HuggingFace Search Results */}
- {!isOllama && hfSearchResults.length > 0 && (
+ {hfSearchResults.length > 0 && (
<div className="space-y-3 mt-6">
<h3 className="text-[0.7rem] font-semibold text-gray-500 uppercase tracking-wider">HuggingFace Search Results</h3>
<div className="grid grid-cols-1 md:grid-cols-2 gap-3">
{hfSearchResults.map((model, i) => (
- <ModelDiscoverCard key={model.name + i} model={model} index={i} isText={isText} getModelDownloadState={getModelDownloadState} pullModel={pullModel} isPullingModel={isPullingModel} isInstalled={isInstalled} isModelFullyInstalled={isModelFullyInstalled} handleDownload={handleModelDownload} />
+ <ModelDiscoverCard key={model.name + i} model={model} index={i} isText={isText} getModelDownloadState={getModelDownloadState} isModelFullyInstalled={isModelFullyInstalled} handleDownload={handleTextDownload} />
))}
</div>
</div>
)}
</>
- ) : !isVideo ? (
- <div className="grid grid-cols-1 md:grid-cols-2 gap-3">
- {filtered.map((model, i) => (
- <ModelDiscoverCard key={model.name} model={model} index={i} isText={false} getModelDownloadState={getModelDownloadState} pullModel={pullModel} isPullingModel={isPullingModel} isInstalled={isInstalled} isModelFullyInstalled={isModelFullyInstalled} handleDownload={handleDownload} />
- ))}
- </div>
) : null}
- {!loading && isOllama && filtered.length === 0 && filteredBundles.length === 0 && filteredUncensored.length === 0 && filteredMainstream.length === 0 && (
+ {!loading && filteredBundles.length === 0 && filteredUncensored.length === 0 && filteredMainstream.length === 0 && (
<p className="text-center text-gray-500 py-4">No models found</p>
)}
</div>
diff --git a/src/components/onboarding/Onboarding.tsx b/src/components/onboarding/Onboarding.tsx
index 4d4b093b..9333d38f 100644
--- a/src/components/onboarding/Onboarding.tsx
+++ b/src/components/onboarding/Onboarding.tsx
@@ -1,12 +1,13 @@
import { useState, useEffect } from 'react'
import { motion, AnimatePresence } from 'framer-motion'
-import { Minus, Square, Copy, X as XIcon, ArrowRight, Download, Check, ChevronRight, Loader2, Pause, RefreshCw, ExternalLink, FolderOpen } from 'lucide-react'
+import { Minus, Square, Copy, X as XIcon, ArrowRight, Download, Check, ChevronRight, Loader2, RefreshCw, ExternalLink, FolderOpen } from 'lucide-react'
import { useSettingsStore } from '../../stores/settingsStore'
import { useProviderStore } from '../../stores/providerStore'
-import { useModels } from '../../hooks/useModels'
import { ONBOARDING_MODELS, type OnboardingModel } from '../../lib/constants'
import { PROVIDER_PRESETS } from '../../api/providers/types'
import { detectLocalBackends, type DetectedBackend } from '../../lib/backend-detector'
+import { detectProviderModelPath, startModelDownloadToPath } from '../../api/discover'
+import { useDownloadStore } from '../../stores/downloadStore'
import { ProgressBar } from '../ui/ProgressBar'
import { openExternal } from '../../api/backend'
import { formatBytes } from '../../lib/formatters'
@@ -45,9 +46,12 @@ export function Onboarding() {
const [step, setStep] = useState<Step>('welcome')
const [selectedModels, setSelectedModels] = useState<string[]>([])
const { settings, updateSettings } = useSettingsStore()
- const { pullModel, pausePull, isPulling, activePulls, models: installedModels } = useModels()
+ const downloads = useDownloadStore(s => s.downloads)
+ const dlStore = useDownloadStore
const [pullingModel, setPullingModel] = useState<string | null>(null)
const [pulledModels, setPulledModels] = useState<string[]>([])
+ const [hfModelPath, setHfModelPath] = useState<string | null>(null)
+ const [downloadError, setDownloadError] = useState<string | null>(null)
const [detectedBackends, setDetectedBackends] = useState<DetectedBackend[]>([])
const [detecting, setDetecting] = useState(false)
const [selectedBackend, setSelectedBackend] = useState<string>('')
@@ -74,12 +78,31 @@ export function Onboarding() {
)
}
- const handlePullSelected = async () => {
+ const handleDownloadSelected = async () => {
+ setDownloadError(null)
+ const providers = useProviderStore.getState().providers
+ const destDir = hfModelPath || (await detectProviderModelPath(providers.openai?.name || 'LM Studio'))
+ if (!destDir) {
+ setDownloadError('Could not determine model directory. Please check app permissions.')
+ return
+ }
+ setHfModelPath(destDir)
+
for (const name of selectedModels) {
if (pulledModels.includes(name)) continue
+ const model = ONBOARDING_MODELS.find(m => m.name === name)
+ if (!model?.downloadUrl || !model?.filename) continue
+
setPullingModel(name)
- await pullModel(name)
- setPulledModels((prev) => [...prev, name])
+ try {
+ dlStore.getState().setMeta(model.filename, model.downloadUrl, 'gguf')
+ const expectedBytes = model.sizeGB ? Math.round(model.sizeGB * 1_073_741_824) : undefined
+ await startModelDownloadToPath(model.downloadUrl, destDir, model.filename, expectedBytes)
+ dlStore.getState().startPolling()
+ setPulledModels(prev => [...prev, name])
+ } catch (e) {
+ setDownloadError(`Download failed: ${e instanceof Error ? e.message : String(e)}`)
+ }
}
setPullingModel(null)
setStep('done')
@@ -118,15 +141,15 @@ export function Onboarding() {
}
}, [step])
- const currentPull = pullingModel ? activePulls[pullingModel] : null
- const pullProgress = currentPull?.progress ?? null
+ // GGUF download progress from downloadStore
+ const currentModel = pullingModel ? ONBOARDING_MODELS.find(m => m.name === pullingModel) : null
+ const currentDownload = currentModel?.filename ? downloads[currentModel.filename] : null
+ const isDownloading = !!pullingModel
const progress =
- pullProgress?.total && pullProgress?.completed
- ? (pullProgress.completed / pullProgress.total) * 100
+ currentDownload?.total && currentDownload?.progress
+ ? (currentDownload.progress / currentDownload.total) * 100
: 0
- const hasOllama = detectedBackends.some(b => b.id === 'ollama')
-
// Shared button styles
const primaryBtn = `mx-auto flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[0.7rem] font-medium transition-all ${
isDark ? 'bg-white text-black hover:bg-gray-200' : 'bg-gray-900 text-white hover:bg-gray-800'
@@ -498,7 +521,7 @@ export function Onboarding() {
<div className="flex items-center justify-center gap-2 pt-1">
{(comfyFound?.found || comfyReady) && (
<button
- onClick={() => hasOllama ? setStep('models') : setStep('done')}
+ onClick={() => setStep('models')}
className={primaryBtn}
>
Continue <ArrowRight size={14} />
@@ -520,7 +543,7 @@ export function Onboarding() {
<RefreshCw size={12} /> Re-Scan
</button>
<button
- onClick={() => hasOllama ? setStep('models') : setStep('done')}
+ onClick={() => setStep('models')}
className={`${secondaryBtn} opacity-60`}
>
Skip for now <ChevronRight size={12} />
@@ -559,26 +582,28 @@ export function Onboarding() {
</button>
</div>
- {isPulling && pullingModel && (
+ {isDownloading && pullingModel && (
<div className={`p-2.5 rounded-lg border ${cardClass}`}>
<div className="flex items-center justify-between mb-1">
<p className="text-[0.7rem]">
- Installing <span className="font-mono font-medium">{pullingModel}</span>...
+ Downloading <span className="font-mono font-medium">{currentModel?.label || pullingModel}</span>...
</p>
- <button
- onClick={() => pullingModel && pausePull(pullingModel)}
- className="p-0.5 rounded hover:bg-red-500/20 text-gray-400 hover:text-red-400 transition-colors"
- title="Pause download"
- >
- <Pause size={12} />
- </button>
</div>
- <p className={`text-[0.6rem] mb-1.5 ${isDark ? 'text-gray-400' : 'text-gray-500'}`}>{pullProgress?.status}</p>
- {pullProgress?.total && pullProgress?.completed !== undefined && (
- <ProgressBar progress={progress} />
- )}
+ <p className={`text-[0.6rem] mb-1.5 ${isDark ? 'text-gray-400' : 'text-gray-500'}`}>{currentDownload?.status || 'Starting...'}</p>
+ {currentDownload?.total ? (
+ <>
+ <ProgressBar progress={progress} />
+ <p className={`text-[0.55rem] mt-0.5 ${isDark ? 'text-gray-500' : 'text-gray-400'}`}>
+ {formatBytes(currentDownload.progress)} / {formatBytes(currentDownload.total)}
+ {progress > 0 && <span className="ml-1.5 text-blue-400">{Math.round(progress)}%</span>}
+ </p>
+ </>
+ ) : null}
</div>
)}
+ {downloadError && (
+ <p className={`text-[0.65rem] text-red-400 text-center`}>{downloadError}</p>
+ )}
<div className="grid grid-cols-1 sm:grid-cols-2 gap-2 max-h-[50vh] overflow-y-auto scrollbar-thin pr-1">
{ONBOARDING_MODELS.filter(m => {
@@ -590,19 +615,19 @@ export function Onboarding() {
return true
}).map((model) => {
const selected = selectedModels.includes(model.name)
- const pulled = pulledModels.includes(model.name) || installedModels.some((m) => m.name === model.name)
+ const pulled = pulledModels.includes(model.name) || (model.filename ? downloads[model.filename]?.status === 'complete' : false)
return (
<button
key={model.name}
- onClick={() => !pulled && !isPulling && toggleModel(model.name)}
- disabled={pulled || isPulling}
+ onClick={() => !pulled && !isDownloading && toggleModel(model.name)}
+ disabled={pulled || isDownloading}
className={`text-left p-2.5 rounded-lg border transition-all ${
pulled
? isDark ? 'bg-green-500/10 border-green-500/30' : 'bg-green-50 border-green-300'
: selected
? isDark ? 'bg-white/10 border-white/30' : 'bg-gray-100 border-gray-900'
: isDark ? 'border-white/10 hover:border-white/20' : 'border-gray-200 hover:border-gray-400'
- } ${isPulling ? 'opacity-60' : ''}`}
+ } ${isDownloading ? 'opacity-60' : ''}`}
>
<div className="flex items-start justify-between gap-2">
<div>
@@ -640,16 +665,16 @@ export function Onboarding() {
</div>
<div className="flex items-center gap-2 pt-1">
- {selectedModels.length > 0 && !isPulling ? (
+ {selectedModels.length > 0 && !isDownloading ? (
<button
- onClick={handlePullSelected}
+ onClick={handleDownloadSelected}
className={`flex-1 flex items-center justify-center gap-1.5 px-3 py-1.5 rounded-lg text-[0.7rem] font-medium transition-all ${
isDark ? 'bg-white text-black hover:bg-gray-200' : 'bg-gray-900 text-white hover:bg-gray-800'
}`}
>
<Download size={14} /> Install {selectedModels.length} model{selectedModels.length > 1 ? 's' : ''}
</button>
- ) : !isPulling ? (
+ ) : !isDownloading ? (
<button
onClick={() => setStep('done')}
className={`flex-1 flex items-center justify-center gap-1.5 ${secondaryBtn}`}
diff --git a/src/lib/constants.ts b/src/lib/constants.ts
index 23db5624..b1fca5cf 100644
--- a/src/lib/constants.ts
+++ b/src/lib/constants.ts
@@ -199,7 +199,7 @@ export const BUILT_IN_PERSONAS: Persona[] = [
]
export interface OnboardingModel {
- name: string
+ name: string // Unique key (used for selection tracking)
label: string
description: string
size: string
@@ -207,27 +207,32 @@ export interface OnboardingModel {
vramGB: number
recommended?: boolean
uncensored?: boolean
- agent?: boolean // Supports tool calling / agent mode
+ agent?: boolean // Supports tool calling / agent mode
+ downloadUrl: string // HuggingFace GGUF download URL
+ filename: string // GGUF filename
+ sizeGB: number // Download size in GB
}
+const HF_OB = (repo: string, file: string) => `https://huggingface.co/${repo}/resolve/main/${file}`
+
export const ONBOARDING_MODELS: OnboardingModel[] = [
- // Uncensored (abliterated)
- { name: 'mannix/llama3.1-8b-abliterated:q5_K_M', label: 'Llama 3.1 8B', description: 'Fast & reliable all-rounder', size: '5.7 GB', vram: '6 GB', vramGB: 6, recommended: true, uncensored: true, agent: true },
- { name: 'huihui_ai/qwen3-abliterated:8b', label: 'Qwen3 8B', description: 'Latest Qwen, great for coding', size: '5.2 GB', vram: '6 GB', vramGB: 6, uncensored: true, agent: true },
- { name: 'richardyoung/qwen3-14b-abliterated:q4_K_M', label: 'Qwen3 14B', description: 'Very smart, fits 12GB GPU', size: '9 GB', vram: '12 GB', vramGB: 12, uncensored: true, agent: true },
- { name: 'huihui_ai/gemma3-abliterated:12b', label: 'Gemma 3 12B', description: 'Google model, vision support', size: '8 GB', vram: '12 GB', vramGB: 12, uncensored: true, agent: true },
- { name: 'krith/mistral-nemo-instruct-2407-abliterated:IQ4_XS', label: 'Mistral Nemo 12B', description: 'Strong multilingual model', size: '6.8 GB', vram: '8 GB', vramGB: 8, uncensored: true },
- { name: 'huihui_ai/deepseek-r1-abliterated:8b', label: 'DeepSeek R1 8B', description: 'Reasoning & chain-of-thought', size: '5 GB', vram: '6 GB', vramGB: 6, uncensored: true },
- { name: 'huihui_ai/phi4-abliterated:14b', label: 'Phi-4 14B', description: 'Microsoft, great at math & logic', size: '9 GB', vram: '12 GB', vramGB: 12, uncensored: true },
- { name: 'huihui_ai/mistral-small-abliterated:24b', label: 'Mistral Small 24B', description: 'Powerful, needs 16GB+ VRAM', size: '14 GB', vram: '16 GB', vramGB: 16, uncensored: true, agent: true },
- { name: 'huihui_ai/glm4.6-abliterated:9b', label: 'GLM 4.6 9B', description: 'Newest model, strong coding', size: '6 GB', vram: '8 GB', vramGB: 8, uncensored: true, agent: true },
- { name: 'huihui_ai/qwen2.5-abliterate:7b', label: 'Qwen 2.5 7B', description: 'Lightweight & capable', size: '4.7 GB', vram: '6 GB', vramGB: 6, uncensored: true, agent: true },
- { name: 'huihui_ai/llama3.3-abliterated:70b-q4_K_M', label: 'Llama 3.3 70B', description: 'Maximum intelligence, needs 48GB', size: '42 GB', vram: '48 GB', vramGB: 48, uncensored: true, agent: true },
- // Mainstream (official, not abliterated)
- { name: 'llama3.1:8b', label: 'Llama 3.1 8B', description: 'Meta general-purpose model', size: '4.7 GB', vram: '6 GB', vramGB: 6, recommended: true, agent: true },
- { name: 'qwen3:8b', label: 'Qwen3 8B', description: 'Latest Qwen, coding & reasoning', size: '5.2 GB', vram: '6 GB', vramGB: 6, agent: true },
- { name: 'gemma3:12b', label: 'Gemma 3 12B', description: 'Google model, vision support', size: '8 GB', vram: '12 GB', vramGB: 12, agent: true },
- { name: 'phi4:14b', label: 'Phi-4 14B', description: 'Microsoft, math & logic', size: '9 GB', vram: '12 GB', vramGB: 12 },
- { name: 'deepseek-r1:8b', label: 'DeepSeek R1 8B', description: 'Reasoning & chain-of-thought', size: '5 GB', vram: '6 GB', vramGB: 6 },
- { name: 'gemma4:e4b', label: 'Gemma 4 E4B', description: 'Google latest, lightweight MoE', size: '3 GB', vram: '4 GB', vramGB: 4, agent: true },
+ // Uncensored (abliterated) — all GGUF downloads from HuggingFace
+ { name: 'llama3.1-8b-abliterated-q5', label: 'Llama 3.1 8B', description: 'Fast & reliable all-rounder', size: '6 GB', vram: '6 GB', vramGB: 6, recommended: true, uncensored: true, agent: true, downloadUrl: HF_OB('bartowski/Meta-Llama-3.1-8B-Instruct-abliterated-GGUF', 'Meta-Llama-3.1-8B-Instruct-abliterated-Q5_K_M.gguf'), filename: 'Meta-Llama-3.1-8B-Instruct-abliterated-Q5_K_M.gguf', sizeGB: 6 },
+ { name: 'qwen3-8b-abliterated', label: 'Qwen3 8B', description: 'Latest Qwen, great for coding', size: '5 GB', vram: '6 GB', vramGB: 6, uncensored: true, agent: true, downloadUrl: HF_OB('mradermacher/Qwen3-8B-abliterated-GGUF', 'Qwen3-8B-abliterated.Q4_K_M.gguf'), filename: 'Qwen3-8B-abliterated.Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'qwen3-14b-abliterated', label: 'Qwen3 14B', description: 'Very smart, fits 12GB GPU', size: '9 GB', vram: '12 GB', vramGB: 12, uncensored: true, agent: true, downloadUrl: HF_OB('bartowski/huihui-ai_Qwen3-14B-abliterated-GGUF', 'huihui-ai_Qwen3-14B-abliterated-Q4_K_M.gguf'), filename: 'huihui-ai_Qwen3-14B-abliterated-Q4_K_M.gguf', sizeGB: 9 },
+ { name: 'gemma3-12b-abliterated', label: 'Gemma 3 12B', description: 'Google model, vision support', size: '8 GB', vram: '12 GB', vramGB: 12, uncensored: true, agent: true, downloadUrl: HF_OB('bartowski/mlabonne_gemma-3-12b-it-abliterated-GGUF', 'mlabonne_gemma-3-12b-it-abliterated-Q4_K_M.gguf'), filename: 'mlabonne_gemma-3-12b-it-abliterated-Q4_K_M.gguf', sizeGB: 8 },
+ { name: 'mistral-nemo-abliterated', label: 'Mistral Nemo 12B', description: 'Strong multilingual model', size: '7 GB', vram: '8 GB', vramGB: 8, uncensored: true, downloadUrl: HF_OB('QuantFactory/Mistral-Nemo-Instruct-2407-abliterated-GGUF', 'Mistral-Nemo-Instruct-2407-abliterated.Q4_K_M.gguf'), filename: 'Mistral-Nemo-Instruct-2407-abliterated.Q4_K_M.gguf', sizeGB: 7 },
+ { name: 'deepseek-r1-8b-abliterated', label: 'DeepSeek R1 8B', description: 'Reasoning & chain-of-thought', size: '5 GB', vram: '6 GB', vramGB: 6, uncensored: true, downloadUrl: HF_OB('mradermacher/DeepSeek-R1-Distill-Qwen-7B-abliterated-v2-GGUF', 'DeepSeek-R1-Distill-Qwen-7B-abliterated-v2.Q4_K_M.gguf'), filename: 'DeepSeek-R1-Distill-Qwen-7B-abliterated-v2.Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'phi4-abliterated', label: 'Phi-4 14B', description: 'Microsoft, great at math & logic', size: '9 GB', vram: '12 GB', vramGB: 12, uncensored: true, downloadUrl: HF_OB('mradermacher/phi-4-abliterated-GGUF', 'phi-4-abliterated.Q4_K_M.gguf'), filename: 'phi-4-abliterated.Q4_K_M.gguf', sizeGB: 8 },
+ { name: 'mistral-small-abliterated', label: 'Mistral Small 24B', description: 'Powerful, needs 16GB+ VRAM', size: '14 GB', vram: '16 GB', vramGB: 16, uncensored: true, agent: true, downloadUrl: HF_OB('bartowski/huihui-ai_Mistral-Small-24B-Instruct-2501-abliterated-GGUF', 'huihui-ai_Mistral-Small-24B-Instruct-2501-abliterated-Q4_K_M.gguf'), filename: 'huihui-ai_Mistral-Small-24B-Instruct-2501-abliterated-Q4_K_M.gguf', sizeGB: 14 },
+ { name: 'glm4.6-9b-abliterated', label: 'GLM 4.6 9B', description: 'Newest model, strong coding', size: '6 GB', vram: '8 GB', vramGB: 8, uncensored: true, agent: true, downloadUrl: HF_OB('bartowski/glm-4-9b-chat-abliterated-GGUF', 'glm-4-9b-chat-abliterated-Q4_K_M.gguf'), filename: 'glm-4-9b-chat-abliterated-Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'qwen2.5-7b-abliterated', label: 'Qwen 2.5 7B', description: 'Lightweight & capable', size: '5 GB', vram: '6 GB', vramGB: 6, uncensored: true, agent: true, downloadUrl: HF_OB('QuantFactory/Qwen2.5-7B-Instruct-abliterated-v2-GGUF', 'Qwen2.5-7B-Instruct-abliterated-v2.Q4_K_M.gguf'), filename: 'Qwen2.5-7B-Instruct-abliterated-v2.Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'llama3.3-70b-abliterated', label: 'Llama 3.3 70B', description: 'Maximum intelligence, needs 48GB', size: '42 GB', vram: '48 GB', vramGB: 48, uncensored: true, agent: true, downloadUrl: HF_OB('bartowski/Llama-3.3-70B-Instruct-abliterated-GGUF', 'Llama-3.3-70B-Instruct-abliterated-Q4_K_M.gguf'), filename: 'Llama-3.3-70B-Instruct-abliterated-Q4_K_M.gguf', sizeGB: 42 },
+ // Mainstream (official, not abliterated) — all GGUF downloads
+ { name: 'llama3.1-8b', label: 'Llama 3.1 8B', description: 'Meta general-purpose model', size: '5 GB', vram: '6 GB', vramGB: 6, recommended: true, agent: true, downloadUrl: HF_OB('bartowski/Meta-Llama-3.1-8B-Instruct-GGUF', 'Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf'), filename: 'Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'qwen3-8b', label: 'Qwen3 8B', description: 'Latest Qwen, coding & reasoning', size: '5 GB', vram: '6 GB', vramGB: 6, agent: true, downloadUrl: HF_OB('unsloth/Qwen3-8B-GGUF', 'Qwen3-8B-Q4_K_M.gguf'), filename: 'Qwen3-8B-Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'gemma3-12b', label: 'Gemma 3 12B', description: 'Google model, vision support', size: '8 GB', vram: '12 GB', vramGB: 12, agent: true, downloadUrl: HF_OB('unsloth/gemma-3-12b-it-GGUF', 'gemma-3-12b-it-Q4_K_M.gguf'), filename: 'gemma-3-12b-it-Q4_K_M.gguf', sizeGB: 8 },
+ { name: 'phi4-14b', label: 'Phi-4 14B', description: 'Microsoft, math & logic', size: '9 GB', vram: '12 GB', vramGB: 12, downloadUrl: HF_OB('bartowski/phi-4-GGUF', 'phi-4-Q4_K_M.gguf'), filename: 'phi-4-Q4_K_M.gguf', sizeGB: 9 },
+ { name: 'deepseek-r1-8b', label: 'DeepSeek R1 8B', description: 'Reasoning & chain-of-thought', size: '5 GB', vram: '6 GB', vramGB: 6, downloadUrl: HF_OB('unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF', 'DeepSeek-R1-0528-Qwen3-8B-Q4_K_M.gguf'), filename: 'DeepSeek-R1-0528-Qwen3-8B-Q4_K_M.gguf', sizeGB: 5 },
+ { name: 'gemma4-e4b', label: 'Gemma 4 E4B', description: 'Google latest, lightweight MoE', size: '5 GB', vram: '4 GB', vramGB: 4, agent: true, downloadUrl: HF_OB('unsloth/gemma-4-E4B-it-GGUF', 'gemma-4-E4B-it-Q4_K_M.gguf'), filename: 'gemma-4-E4B-it-Q4_K_M.gguf', sizeGB: 5 },
]