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.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
feat(discover): 4 SOTA sub-4GB tool-calling models + weight-class tiers + fixes
purple54db54aa83c9
diff --git a/src/api/discover.ts b/src/api/discover.tsindex 278c6850..0db216c1 100644--- a/src/api/discover.ts+++ b/src/api/discover.ts@@ -367,6 +367,15 @@ function sortByRelease(models: DiscoverModel[]): DiscoverModel[] {/** Uncensored / abliterated GGUF models — the core of LU. One entry per size variant. */export function getUncensoredTextModels(): DiscoverModel[] {return sortByRelease([+ // ── 2026 SOTA sub-4GB UNCENSORED tool caller (deep-researched 2026-06-06,+ // Ultra-Lightweight weight class). Abliterated Qwen3-4B keeps the native+ // Hermes tool template. A/B its tool reliability (abliteration can dent+ // function calling); run thinking-OFF. ──+ // Uses the huihui Ollama-native tag (NOT a repacked HF GGUF): its template+ // carries the full Hermes tool scaffold, so Ollama accepts the `tools` array.+ // The DevQuasar HF-GGUF repack dropped the tool template → Ollama returned+ // "does not support tools" for every tool call (verified live 2026-06-06).+ { name: 'Qwen3 4B Abliterated', description: 'huihui Qwen3 4B abliterated — uncensored + native Hermes tool calling in under 4GB (Ollama). Run thinking-OFF for reliable tool calls. Apache-2.0 base.', pulls: '20K+', tags: ['4B', 'Q4_K_M', '2.4 GB', 'Tools', 'Uncensored'], updated: 'Hot', agent: true, lightweight: true, released: '2025-05', ollamaModel: 'huihui_ai/qwen3-abliterated:4b', sizeGB: 2.4 },// ── HOT: Hermes 3 ──// Bug Z/b v2.5.0 — leonsk29 GH #48. Pre-v2.5.0 these pointed at// `bartowski/Hermes-3-Llama-*-GGUF`. leon's 2026-05-26 CLI repro@@ -446,6 +455,13 @@ export function getUncensoredTextModels(): DiscoverModel[] {/** Mainstream GGUF models — not uncensored but excellent for specific tasks. All URLs verified. */export function getMainstreamTextModels(): DiscoverModel[] {return sortByRelease([+ // ── 2026 SOTA sub-4GB TOOL CALLERS (deep-researched + adversarially+ // verified 2026-06-06). All run in UNDER 4GB VRAM/RAM (Ultra-Lightweight+ // weight class), commercially licensed (Apache-2.0 / MIT), native tool+ // calling. The curated "good tool calls on weak hardware" set. ──+ { name: 'Qwen3 4B', description: 'Qwen3 4B — best all-round sub-4GB tool caller (BFCL ~62%). Native Hermes-style tools, 256K context. Tip: run thinking-OFF for reliable tool calls. Apache-2.0.', pulls: '5M+', tags: ['4B', 'Q4_K_M', '2.4 GB', 'Tools'], updated: 'Hot', agent: true, lightweight: true, released: '2025-05', downloadUrl: HF('Qwen/Qwen3-4B-GGUF', 'Qwen3-4B-Q4_K_M.gguf'), filename: 'Qwen3-4B-Q4_K_M.gguf', sizeGB: 2.4 },+ { name: 'IBM Granite 4.0 Micro', description: 'IBM Granite 4.0 Micro (3B) — agentic + coding tool caller. BFCL v3 59.98 (best third-party-sourced sub-4GB score). Native tool calling, runs CPU-only. Apache-2.0.', pulls: '50K+', tags: ['3B', 'Q4_K_M', '2 GB', 'Tools'], updated: 'Hot', agent: true, lightweight: true, released: '2025-10', downloadUrl: HF('ibm-granite/granite-4.0-micro-GGUF', 'granite-4.0-micro-Q4_K_M.gguf'), filename: 'granite-4.0-micro-Q4_K_M.gguf', sizeGB: 2 },+ { name: 'Phi-4 Mini', description: 'Microsoft Phi-4-mini (3.8B) — disciplined JSON-schema function calling, 128K context. Different tool format (<|tool|> tokens) than the Qwen/Granite trio, adds diversity. MIT.', pulls: '500K+', tags: ['3.8B', 'Q4_K_M', '2.4 GB', 'Tools'], updated: 'Hot', agent: true, lightweight: true, released: '2025-02', downloadUrl: HF('lmstudio-community/Phi-4-mini-instruct-GGUF', 'Phi-4-mini-instruct-Q4_K_M.gguf'), filename: 'Phi-4-mini-instruct-Q4_K_M.gguf', sizeGB: 2.4 },// ── 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', 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', 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 },@@ -496,8 +512,7 @@ export function getMainstreamTextModels(): DiscoverModel[] {{ 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', '2.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: 2.3 },+ // ── Qwen 3 (May 2025) — 4B moved into the sub-4GB tool-caller group above ──{ 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 },diff --git a/src/components/layout/AppShell.tsx b/src/components/layout/AppShell.tsxindex 5e122cc0..ae1f1f25 100644--- a/src/components/layout/AppShell.tsx+++ b/src/components/layout/AppShell.tsx@@ -13,6 +13,7 @@ import { BackendSelector } from '../onboarding/BackendSelector'import { ErrorBoundary } from '../ui/ErrorBoundary'import { useUIStore } from '../../stores/uiStore'import { useSettingsStore } from '../../stores/settingsStore'+import { useCompareStore } from '../../stores/compareStore'import { useProviderStore } from '../../stores/providerStore'import { useChatStore } from '../../stores/chatStore'import { useModelStore } from '../../stores/modelStore'@@ -28,6 +29,9 @@ import { Titlebar } from './Titlebar'export function AppShell() {const { currentView } = useUIStore()const { settings, updateSettings } = useSettingsStore()+ // A/B Compare takes over the chat area; hide the left chat sidebar entirely+ // while comparing (David 2026-06-06) so the two model columns get full width.+ const isComparing = useCompareStore((s) => s.isComparing)const onboardingDone = useSettingsStore((s) => s.settings.onboardingDone)const [restoring, setRestoring] = useState(false)@@ -578,7 +582,7 @@ export function AppShell() {<StaleModelsBanner /><StorageQuotaToast /><div className="flex-1 flex overflow-hidden gap-2 p-2">- <Sidebar />+ {!isComparing && <Sidebar />}<main className={`overflow-hidden rounded-xl bg-white dark:bg-[#1e1e1e] ring-1 ring-black/[0.04] dark:ring-white/[0.05] ${currentView === 'models' ? 'flex-none w-[85%] mx-auto' : 'flex-1'}`}>{currentView === 'chat' && <ErrorBoundary><ChatView /></ErrorBoundary>}{currentView === 'models' && <ErrorBoundary><ModelManager /></ErrorBoundary>}diff --git a/src/components/models/DiscoverModels.tsx b/src/components/models/DiscoverModels.tsxindex faa707ea..6c7cd55c 100644--- a/src/components/models/DiscoverModels.tsx+++ b/src/components/models/DiscoverModels.tsx@@ -176,7 +176,11 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:const [loading, setLoading] = useState(false)const [systemVRAM, setSystemVRAM] = useState<number | null>(null)const [subTab, setSubTab] = useState<'uncensored' | 'mainstream'>('uncensored')- const [vramTier, setVramTier] = useState<'all' | 'lightweight' | 'mid' | 'highend'>('all')+ // Weight-class categories (David 2026-06-06): four size buckets so every+ // model lands in exactly one class — Ultra Lightweight ≤4 GB, Lightweight+ // 4–10 GB, Middleweight 10–20 GB, High-End >20 GB (open-ended). Replaces the+ // older 3-tier lightweight/mid/highend VRAM filter.+ const [vramTier, setVramTier] = useState<'all' | 'ultra' | 'light' | 'middle' | 'highend'>('all')const downloads = useDownloadStore(s => s.downloads)const dlStore = useDownloadStore@@ -281,9 +285,10 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:const vramFilteredBundles = tabFilteredBundles.filter(b => {if (vramTier === 'all') return trueconst vram = parseVRAM(b.vramRequired)- if (vramTier === 'lightweight') return vram <= 10- if (vramTier === 'mid') return vram > 10 && vram <= 16- return vram > 16 // highend+ if (vramTier === 'ultra') return vram <= 4+ if (vramTier === 'light') return vram > 4 && vram <= 10+ if (vramTier === 'middle') return vram > 10 && vram <= 20+ return vram > 20 // highend (open-ended)})const filteredBundles = search@@ -480,9 +485,10 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:const matchesVramTier = (sizeGB?: number) => {if (vramTier === 'all') return trueif (sizeGB === undefined || sizeGB === null) return true- if (vramTier === 'lightweight') return sizeGB <= 10- if (vramTier === 'mid') return sizeGB > 10 && sizeGB <= 16- return sizeGB > 16 // highend+ if (vramTier === 'ultra') return sizeGB <= 4+ if (vramTier === 'light') return sizeGB > 4 && sizeGB <= 10+ if (vramTier === 'middle') return sizeGB > 10 && sizeGB <= 20+ return sizeGB > 20 // highend (open-ended)}const matchesSearch = (m: DiscoverModel) =>@@ -677,9 +683,10 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:<div className="flex gap-1.5">{([{ key: 'all', label: 'All', desc: '' },- { key: 'lightweight', label: 'Lightweight', desc: '≤10 GB' },- { key: 'mid', label: 'Mid-Range', desc: '10-16 GB' },- { key: 'highend', label: 'High-End', desc: '>16 GB' },+ { key: 'ultra', label: 'Ultra Lightweight', desc: '≤4 GB' },+ { key: 'light', label: 'Lightweight', desc: '4–10 GB' },+ { key: 'middle', label: 'Middleweight', desc: '10–20 GB' },+ { key: 'highend', label: 'High-End', desc: '>20 GB' },] as const).map(tier => (<buttonkey={tier.key}diff --git a/src/lib/model-compatibility.ts b/src/lib/model-compatibility.tsindex b9e36d05..7d82c212 100644--- a/src/lib/model-compatibility.ts+++ b/src/lib/model-compatibility.ts@@ -20,6 +20,10 @@ const AGENT_COMPATIBLE = ['deepseek-v2.5', 'deepseek-v3','glm4', 'glm-4','gemma3', 'gemma4',+ // IBM Granite — native tool calling (BFCL v3 ~60). 'granite' as a free word+ // matches granite-4.0-micro / granite3.3 etc. after normalizeFamily. Without+ // this, the sub-4GB Granite 4.0 Micro tool-caller had Agent Mode grayed out.+ 'granite','nemotron',]