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(models): qwen 3.8 joins the catalog, with the vision file it needs
David7394e9df501e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 60ec62d0..9de74f58 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -25,6 +25,14 @@ and gives the Code view a mode menu, a plan panel and a real file explorer.- **Prompt caching for your own Anthropic key.** Requests carry cache markers onthe system block, the last tool and the last stable message, so a repeatedrequest reads from the cache instead of paying for the whole prompt again.+- **Qwen 3.8 in the Model Manager, with working vision.** The viral uncensored+ 27B, the huihui abliterated 27B, the official 27B in Unsloth's dynamic quants,+ a 9B distill for small cards, and the two Ollama tags. A vision GGUF keeps its+ image tower in a separate mmproj file, so a catalog entry can now carry one:+ the download writes it next to the model as `<model>.mmproj.gguf` and the+ built-in engine starts llama-server with `--mmproj`. Ollama tags bring their+ own projector layer. The 9B distill is listed as text only, because its repo+ ships no projector.### Changeddiff --git a/src-tauri/src/commands/engine.rs b/src-tauri/src/commands/engine.rsindex 70b3439e..c30591a0 100644--- a/src-tauri/src/commands/engine.rs+++ b/src-tauri/src/commands/engine.rs@@ -118,11 +118,49 @@ pub(crate) fn effective_ctx(tuning: &EngineTuning) -> u32 {if tuning.ctx == 0 { 8192 } else { tuning.ctx }}+/// Name a vision projector gets on disk: `<model stem>.mmproj.gguf`, written+/// next to the model. Mirrors `mmprojFileName` in src/api/discover.ts, which is+/// what the downloader writes. Derived from the model name rather than kept+/// under the upstream name because the built-in models dir is FLAT: two vision+/// models in it would otherwise both claim one `mmproj-F16.gguf`.+pub(crate) fn mmproj_sibling_path(model_path: &str) -> PathBuf {+ let p = Path::new(model_path);+ let stem = p+ .file_name()+ .and_then(|s| s.to_str())+ .map(|s| s.strip_suffix(".gguf").or_else(|| s.strip_suffix(".GGUF")).unwrap_or(s))+ .unwrap_or("");+ p.with_file_name(format!("{stem}.mmproj.gguf"))+}++/// True for a file name that is a vision projector, not a model. Keeps+/// projectors out of the model picker: they are GGUFs in the same folder, so+/// the plain "every .gguf is a model" scan would offer them as chat models and+/// llama-server would refuse to load them. Covers our own `.mmproj.gguf`+/// convention and the upstream `mmproj-*.gguf` names a user may drop in by hand.+pub(crate) fn is_projector_file(file_name: &str) -> bool {+ let lower = file_name.to_ascii_lowercase();+ let stem = lower.strip_suffix(".gguf").unwrap_or(&lower);+ stem.ends_with(".mmproj") || stem.starts_with("mmproj")+}++/// Absolute path of the projector belonging to `model_path`, if it is on disk.+/// Absence is the normal case (text-only model) and never an error.+fn existing_mmproj(model_path: &str) -> Option<String> {+ let p = mmproj_sibling_path(model_path);+ p.is_file().then(|| p.to_string_lossy().to_string())+}+/// Build the `llama-server` argv for a chat engine. `-ngl 999` offloads every/// layer to the GPU (Metal on mac); llama-server clamps to the real layer/// count, so an over-large value is the idiomatic "all layers" request./// Default tuning yields exactly the legacy argv (pinned by regression test).-pub(crate) fn build_server_args(model_path: &str, tuning: &EngineTuning, port: u16, slot_save_dir: Option<&str>) -> Vec<String> {+///+/// `mmproj` turns the model multimodal. A text GGUF has no image tower, so+/// without the flag a vision model loads and answers, it just cannot see, which+/// is exactly the silent failure the Discover download avoids by fetching the+/// projector with the model.+pub(crate) fn build_server_args(model_path: &str, tuning: &EngineTuning, port: u16, slot_save_dir: Option<&str>, mmproj: Option<&str>) -> Vec<String> {let mut args: Vec<String> = vec!["-m".into(),model_path.into(),@@ -161,13 +199,18 @@ pub(crate) fn build_server_args(model_path: &str, tuning: &EngineTuning, port: uif tuning.no_mmap {args.push("--no-mmap".into());}+ if let Some(path) = mmproj {+ args.push("--mmproj".into());+ args.push(path.into());+ }// GH #85 (I-Am-LongXi): enable llama-server's slot save/restore API so the// VRAM handoff can serialize the KV cache to disk before evicting the// engine for a render, and restore it after the reload instead of// re-processing the whole conversation. The flag only enables the- // endpoint; nothing is written until a save is requested. (llama.cpp- // cannot save slots with an mmproj loaded; the built-in engine never- // loads one, so that limitation does not apply here.)+ // endpoint; nothing is written until a save is requested. With an mmproj+ // loaded llama.cpp refuses the save (check_no_mtmd) and answers with a+ // plain error instead of writing a file, which the handoff already treats+ // as "not saved" and skips the restore. So the flag stays on either way.if let Some(dir) = slot_save_dir {args.push("--slot-save-path".into());args.push(dir.into());@@ -272,6 +315,17 @@ pub(crate) fn scan_gguf_models(dir: &Path) -> Vec<BundledModel> {if !is_gguf {continue;}+ // Vision projectors live next to their model and are GGUFs too, but+ // they are not chat models. Listing them would put a file in the+ // picker that llama-server cannot serve.+ if path+ .file_name()+ .and_then(|s| s.to_str())+ .map(is_projector_file)+ .unwrap_or(false)+ {+ continue;+ }let name = path.file_stem().and_then(|s| s.to_str())@@ -548,7 +602,10 @@ fn start_bundled_engine_blocking(std::fs::create_dir_all(&dir).ok()?;Some(dir.to_string_lossy().to_string())});- let desired_args = build_server_args(&model_path, &tuning, port, slot_dir.as_deref());+ // Vision projector sitting next to the model (written by the Discover+ // download). Present = start multimodal, absent = unchanged text argv.+ let mmproj = existing_mmproj(&model_path);+ let desired_args = build_server_args(&model_path, &tuning, port, slot_dir.as_deref(), mmproj.as_deref());// Already serving this exact argv and healthy → no-op. The argv is the// idempotence key: a ctx/KV-quant/flash-attn change restarts the server,@@ -946,6 +1003,16 @@ pub(crate) fn scan_lmstudio_models(root: &Path) -> Vec<ImportCandidate> {if !is_gguf {continue;}+ // A projector is not a model. It rides along with its model in+ // import_model_file instead of being offered as its own import.+ if path+ .file_name()+ .and_then(|s| s.to_str())+ .map(is_projector_file)+ .unwrap_or(false)+ {+ continue;+ }let Some(stem) = path.file_stem().and_then(|s| s.to_str()) else {continue;};@@ -985,9 +1052,48 @@ pub(crate) fn import_model_file(src: &Path, dest_dir: &Path, name: &str) -> Resuor copy the file there yourself.")})?;+ // A vision model without its projector loads and answers but cannot see, so+ // the projector comes along. Best effort: the model is already linked and+ // usable, and a missing projector is exactly what a text-only model looks+ // like. (Ollama sources are content-addressed blobs with no sibling to+ // find; those import text-only, which is why vision models are worth+ // pulling through Ollama itself.)+ if let Some(projector) = find_projector_sibling(src) {+ let _ = std::fs::hard_link(&projector, mmproj_sibling_path(&target.to_string_lossy()));+ }Ok(target)}+/// The projector belonging to a model file in another tool's store. Prefers our+/// own `<stem>.mmproj.gguf` naming, then falls back to a single upstream+/// `mmproj*.gguf` in the same folder (LM Studio keeps one repo per folder). Two+/// or more candidates mean guessing, and a wrong projector is worse than none.+fn find_projector_sibling(model: &Path) -> Option<PathBuf> {+ let exact = mmproj_sibling_path(&model.to_string_lossy());+ if exact.is_file() {+ return Some(exact);+ }+ let dir = model.parent()?;+ let mut found: Vec<PathBuf> = std::fs::read_dir(dir)+ .ok()?+ .flatten()+ .map(|e| e.path())+ .filter(|p| {+ p.is_file()+ && p.file_name()+ .and_then(|s| s.to_str())+ .map(is_projector_file)+ .unwrap_or(false)+ })+ .collect();+ found.sort();+ if found.len() == 1 {+ found.pop()+ } else {+ None+ }+}+/// GGUFs found in local Ollama and LM Studio stores, ready to link into the/// built-in engine. Candidates whose target file already exists are flagged/// instead of hidden so the UI can show them as done.@@ -1249,10 +1355,10 @@ mod tests {#[test]fn slot_save_dir_appends_the_flag_and_none_stays_legacy() {// GH #85: the KV-slot flag rides at the end so every earlier pin holds.- let with = build_server_args("/m.gguf", &EngineTuning::default(), 8127, Some("/data/kv-slots"));+ let with = build_server_args("/m.gguf", &EngineTuning::default(), 8127, Some("/data/kv-slots"), None);let tail: Vec<&str> = with.iter().rev().take(2).map(String::as_str).collect();assert_eq!(tail, vec!["/data/kv-slots", "--slot-save-path"]);- let without = build_server_args("/m.gguf", &EngineTuning::default(), 8127, None);+ let without = build_server_args("/m.gguf", &EngineTuning::default(), 8127, None, None);assert!(!without.iter().any(|a| a == "--slot-save-path"));}@@ -1260,7 +1366,7 @@ mod tests {fn default_tuning_args_match_legacy_shape() {// Pin: absent/default tuning must produce EXACTLY the argv the app has// shipped since 2.5.7 — expert settings are opt-in, never a drift.- let args = build_server_args("/models/qwen.gguf", &EngineTuning::default(), 8127, None);+ let args = build_server_args("/models/qwen.gguf", &EngineTuning::default(), 8127, None, None);assert_eq!(args,vec![@@ -1273,6 +1379,111 @@ mod tests {);}+ #[test]+ fn mmproj_rides_the_argv_only_when_a_projector_exists() {+ let with = build_server_args(+ "/models/qwen3.8.gguf",+ &EngineTuning::default(),+ 8127,+ None,+ Some("/models/qwen3.8.mmproj.gguf"),+ );+ let at = with.iter().position(|a| a == "--mmproj").expect("--mmproj missing");+ assert_eq!(with[at + 1], "/models/qwen3.8.mmproj.gguf");+ // Negative control: a model without a projector keeps the legacy argv,+ // so a text-only model can never gain a flag it cannot honour.+ let without = build_server_args("/models/qwen3.8.gguf", &EngineTuning::default(), 8127, None, None);+ assert!(!without.iter().any(|a| a == "--mmproj"));+ assert_eq!(without.len(), with.len() - 2);+ }++ #[test]+ fn mmproj_stays_ahead_of_the_slot_save_flag() {+ // The KV-slot flag is pinned to the tail (GH #85); the projector has to+ // slot in before it or that pin breaks.+ let args = build_server_args(+ "/m.gguf",+ &EngineTuning::default(),+ 8127,+ Some("/data/kv-slots"),+ Some("/m.mmproj.gguf"),+ );+ let tail: Vec<&str> = args.iter().rev().take(2).map(String::as_str).collect();+ assert_eq!(tail, vec!["/data/kv-slots", "--slot-save-path"]);+ assert!(args.iter().any(|a| a == "--mmproj"));+ }++ #[test]+ fn mmproj_sibling_path_follows_the_model_name() {+ assert_eq!(+ mmproj_sibling_path("/models/Qwen3.8-27B-UD-Q4_K_M.gguf"),+ PathBuf::from("/models/Qwen3.8-27B-UD-Q4_K_M.mmproj.gguf")+ );+ // Upper-case extension is the same file to the OS on mac/Windows.+ assert_eq!(+ mmproj_sibling_path("/models/A.GGUF"),+ PathBuf::from("/models/A.mmproj.gguf")+ );+ // Dots inside the name must survive: file_stem would cut at ".8".+ assert_eq!(+ mmproj_sibling_path("/models/qwen3.8-27b.gguf"),+ PathBuf::from("/models/qwen3.8-27b.mmproj.gguf")+ );+ }++ #[test]+ fn import_takes_the_projector_along_and_leaves_text_models_alone() {+ let src = tempfile::tempdir().unwrap();+ let dest = tempfile::tempdir().unwrap();+ // Vision model in an LM Studio style folder: model plus upstream mmproj.+ std::fs::write(src.path().join("Qwen3.8-27B-UD-Q4_K_M.gguf"), b"weights").unwrap();+ std::fs::write(src.path().join("mmproj-F16.gguf"), b"projector").unwrap();+ let target = import_model_file(+ &src.path().join("Qwen3.8-27B-UD-Q4_K_M.gguf"),+ dest.path(),+ "Qwen3.8-27B-UD-Q4_K_M.gguf",+ )+ .unwrap();+ assert!(target.is_file());+ assert!(dest.path().join("Qwen3.8-27B-UD-Q4_K_M.mmproj.gguf").is_file());+ // The projector must not be offered as a model of its own.+ assert!(!scan_gguf_models(dest.path()).iter().any(|m| m.name.contains("mmproj")));+ assert_eq!(scan_gguf_models(dest.path()).len(), 1);++ // Negative control: a text-only model imports without inventing one.+ let plain = tempfile::tempdir().unwrap();+ std::fs::write(plain.path().join("text.gguf"), b"weights").unwrap();+ let dest2 = tempfile::tempdir().unwrap();+ import_model_file(&plain.path().join("text.gguf"), dest2.path(), "text.gguf").unwrap();+ assert!(!dest2.path().join("text.mmproj.gguf").exists());+ }++ #[test]+ fn an_ambiguous_projector_is_left_alone() {+ // Two projectors in one folder means guessing; a wrong image tower is+ // worse than a model that is honestly text-only.+ let src = tempfile::tempdir().unwrap();+ std::fs::write(src.path().join("m.gguf"), b"weights").unwrap();+ std::fs::write(src.path().join("mmproj-F16.gguf"), b"a").unwrap();+ std::fs::write(src.path().join("mmproj-BF16.gguf"), b"b").unwrap();+ assert!(find_projector_sibling(&src.path().join("m.gguf")).is_none());+ // The exact-name convention still wins over the ambiguous pair.+ std::fs::write(src.path().join("m.mmproj.gguf"), b"c").unwrap();+ assert_eq!(+ find_projector_sibling(&src.path().join("m.gguf")),+ Some(src.path().join("m.mmproj.gguf"))+ );+ }++ #[test]+ fn projectors_are_not_offered_as_models() {+ assert!(is_projector_file("Qwen3.8-27B-UD-Q4_K_M.mmproj.gguf"));+ assert!(is_projector_file("mmproj-F16.gguf"));+ assert!(is_projector_file("mmproj-model-bf16.gguf"));+ assert!(!is_projector_file("Qwen3.8-27B-UD-Q4_K_M.gguf"));+ assert!(!is_projector_file("Huihui-Qwen3.8-27B-abliterated-Q4_K.gguf"));+ }+#[test]fn expert_tuning_adds_all_flags_in_stable_order() {let tuning = EngineTuning {@@ -1285,7 +1496,7 @@ mod tests {mlock: true,no_mmap: true,};- let args = build_server_args("/m.gguf", &tuning, 8127, None);+ let args = build_server_args("/m.gguf", &tuning, 8127, None, None);assert_eq!(args,vec![@@ -1318,7 +1529,7 @@ mod tests {mlock: false,no_mmap: false,};- let args = build_server_args("/m.gguf", &tuning, 8127, None);+ let args = build_server_args("/m.gguf", &tuning, 8127, None, None);assert_eq!(args,vec![@@ -1334,7 +1545,7 @@ mod tests {#[test]fn gpu_layers_zero_means_cpu_only_not_all() {let tuning = EngineTuning { gpu_layers: 0, ..Default::default() };- let args = build_server_args("/m.gguf", &tuning, 8127, None);+ let args = build_server_args("/m.gguf", &tuning, 8127, None, None);let ngl = args.iter().position(|a| a == "-ngl").unwrap();assert_eq!(args[ngl + 1], "0");}diff --git a/src/api/__tests__/discover-registry.test.ts b/src/api/__tests__/discover-registry.test.tsindex bd4cd172..5036c15c 100644--- a/src/api/__tests__/discover-registry.test.ts+++ b/src/api/__tests__/discover-registry.test.ts@@ -7,6 +7,8 @@ import {CUSTOM_NODE_REGISTRY,COMPONENT_REGISTRY,lookupFileMeta,+ mmprojFileName,+ planModelDownload,} from '../discover'describe('discover — data validation', () => {@@ -405,4 +407,96 @@ describe('discover — data validation', () => {}})})++ // ─── Vision projectors (mmproj) ───+ // A text GGUF has no image tower. An entry that promises Vision on a direct+ // download has to bring the projector, or the model loads and answers and+ // simply cannot see, which is the silent failure this pairing prevents.++ describe('mmproj pairing', () => {+ const all = [...getUncensoredTextModels(), ...getMainstreamTextModels()]++ it('every projector is a full, downloadable pair', () => {+ for (const m of all) {+ if (!m.mmprojUrl) continue+ expect(m.mmprojUrl, `${m.name}: projector URL`).toMatch(/^https:\/\//)+ expect(m.downloadUrl, `${m.name}: projector without a model file`).toBeTruthy()+ expect(m.filename, `${m.name}: projector without a model filename`).toBeTruthy()+ expect(m.mmprojSizeGB, `${m.name}: projector size`).toBeGreaterThan(0)+ expect(m.tags, `${m.name}: projector but no Vision tag`).toContain('Vision')+ }+ })++ it('every Qwen 3.8 download that claims Vision carries a projector', () => {+ const claiming = all.filter(m => m.downloadUrl && m.name.includes('Qwen 3.8') && m.tags.includes('Vision'))+ expect(claiming.length).toBeGreaterThan(0)+ for (const m of claiming) {+ expect(m.mmprojUrl, `${m.name}: Vision tag without a projector`).toBeTruthy()+ }+ })++ it('the 9B distill stays honest about being text only', () => {+ const nine = all.filter(m => m.name.includes('Qwen 3.8 9B'))+ expect(nine.length).toBeGreaterThan(0)+ for (const m of nine) {+ expect(m.tags, `${m.name}`).not.toContain('Vision')+ expect(m.mmprojUrl).toBeUndefined()+ }+ })++ it('names the projector after the model, not after the repo', () => {+ expect(mmprojFileName('Qwen3.8-27B-UD-Q4_K_M.gguf')).toBe('Qwen3.8-27B-UD-Q4_K_M.mmproj.gguf')+ expect(mmprojFileName('A.GGUF')).toBe('A.mmproj.gguf')+ // Dots inside the name survive: a stem cut at the last dot would mangle it.+ expect(mmprojFileName('qwen3.8-27b.gguf')).toBe('qwen3.8-27b.mmproj.gguf')+ })+ })++ describe('planModelDownload', () => {+ const vision = getMainstreamTextModels().find(m => m.name === 'Qwen 3.8 27B')!+ const textOnly = getMainstreamTextModels().find(m => m.name === 'Qwen 3.8 9B Distill')!++ it('adds the projector as a second file in the same folder', () => {+ const plan = planModelDownload(vision, vision.downloadUrl!, vision.filename!, 100)+ expect(plan).toHaveLength(2)+ expect(plan[0]).toEqual({ url: vision.downloadUrl, filename: vision.filename, expectedBytes: 100 })+ expect(plan[1].url).toBe(vision.mmprojUrl)+ expect(plan[1].filename).toBe(mmprojFileName(vision.filename!))+ expect(plan[1].expectedBytes).toBe(Math.round(vision.mmprojSizeGB! * 1_073_741_824))+ })++ it('follows the RESOLVED model name, not the catalog guess', () => {+ // The HF tree corrects a wrong guessed filename; the projector has to+ // follow it or the engine looks for a sibling that is not there.+ const plan = planModelDownload(vision, 'https://x/y.gguf', 'Corrected-Name-Q4_K_M.gguf')+ expect(plan[1].filename).toBe('Corrected-Name-Q4_K_M.mmproj.gguf')+ })++ it('leaves a text-only model at exactly one file', () => {+ const plan = planModelDownload(textOnly, textOnly.downloadUrl!, textOnly.filename!, 42)+ expect(plan).toEqual([{ url: textOnly.downloadUrl, filename: textOnly.filename, expectedBytes: 42 }])+ })+ })++ describe('Qwen 3.8 catalog entries', () => {+ it('lists both uncensored 27B families with a projector each', () => {+ const groups = new Set(getUncensoredTextModels().filter(m => m.mmprojUrl).map(m => m.group))+ expect(groups).toContain('Qwen 3.8 27B Uncensored')+ expect(groups).toContain('Qwen 3.8 27B Abliterated')+ })++ it('lists the official 27B and the small distill', () => {+ const names = getMainstreamTextModels().map(m => m.name)+ expect(names).toContain('Qwen 3.8 27B')+ expect(names).toContain('Qwen 3.8 9B Distill')+ })++ it('offers the Ollama tags, where the projector ships inside the tag', () => {+ const tags = [...getUncensoredTextModels(), ...getMainstreamTextModels()]+ .map(m => m.ollamaModel)+ .filter(Boolean)+ expect(tags).toContain('qwen3.8')+ expect(tags).toContain('huihui_ai/Qwen3.8-abliterated:27b')+ })+ })})diff --git a/src/api/discover.ts b/src/api/discover.tsindex 1e478426..d843e2ad 100644--- a/src/api/discover.ts+++ b/src/api/discover.ts@@ -15,6 +15,14 @@ export interface DiscoverModel {filename?: stringsubfolder?: string // ComfyUI models subfolder: checkpoints, diffusion_models, vae, text_encoderssizeGB?: number+ // Vision projector that belongs to `downloadUrl`. A text GGUF carries no+ // image tower: llama.cpp keeps it in a separate mmproj file and only sees+ // images when the server is started with `--mmproj`. When this is set the+ // download writes BOTH files into the model folder and the built-in engine+ // picks the projector up by name (see `mmprojFileName`). Ollama entries never+ // need it, their tag already ships a projector layer.+ mmprojUrl?: string+ mmprojSizeGB?: number// Discovery flagshot?: boolean // Featured/trending modelagent?: boolean // Supports Agent Mode tool calling@@ -496,6 +504,52 @@ export const COMPONENT_REGISTRY: Record<string, ComponentRequirements> = {const HF = (repo: string, file: string) => `https://huggingface.co/${repo}/resolve/main/${file}`+/**+ * On-disk name of the vision projector that belongs to `modelFilename`:+ * `<model stem>.mmproj.gguf`, written next to the model.+ *+ * Derived, never hand-written in the catalog, because the built-in engine has+ * to find the projector from the model path alone (src-tauri engine.rs mirrors+ * this exact rule). The upstream repos disagree on naming (`mmproj-F16.gguf`,+ * `mmproj-model-bf16.gguf`, `Qwen3.8-27B-Uncensored-vision-f16.gguf`), and the+ * built-in models dir is FLAT, so keeping the upstream name would leave two+ * models fighting over one projector file. Tying the name to the model also+ * keeps the pairing right when a user downloads several quants of one model.+ */+export function mmprojFileName(modelFilename: string): string {+ const stem = modelFilename.replace(/\.gguf$/i, '')+ return `${stem}.mmproj.gguf`+}++/** One file a catalog entry writes into the model folder. */+export interface PlannedDownload {+ url: string+ filename: string+ expectedBytes?: number+}++/**+ * Everything a catalog entry has to put on disk: the model, and its vision+ * projector when it has one. `url` / `filename` / `bytes` are the RESOLVED+ * model file (the HF tree corrects the catalog's guess), the projector rides+ * along under the derived name.+ *+ * Pure on purpose: the download UI only loops over the result, so the "does+ * this model need a second file, and what is it called" decision is unit+ * testable without rendering the Models tab.+ */+export function planModelDownload(model: DiscoverModel, url: string, filename: string, bytes?: number): PlannedDownload[] {+ const plan: PlannedDownload[] = [{ url, filename, expectedBytes: bytes }]+ if (model.mmprojUrl) {+ plan.push({+ url: model.mmprojUrl,+ filename: mmprojFileName(filename),+ expectedBytes: model.mmprojSizeGB ? Math.round(model.mmprojSizeGB * 1_073_741_824) : undefined,+ })+ }+ return plan+}+/** Sort models by release date, newest first */function sortByRelease(models: DiscoverModel[]): DiscoverModel[] {return models.sort((a, b) => (b.released ?? '').localeCompare(a.released ?? ''))@@ -532,6 +586,27 @@ export function getUncensoredTextModels(): DiscoverModel[] {{ 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', agent: 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', agent: 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 },+ // ── Qwen 3.8 27B UNCENSORED (August 2026) ──+ // Two independent uncensors of the same dense 27B base. Both are native+ // vision-language models, so every entry carries the repo's own mmproj and+ // LU downloads it with the model (see `mmprojFileName`). The MTP head that+ // ships inside these GGUFs loads fine on the pinned llama.cpp b9949, which+ // implements the qwen35 MTP block, so we point at the plain files and not+ // at JonathanColetti's noMTP cut.+ { name: 'Qwen 3.8 27B Uncensored', group: 'Qwen 3.8 27B Uncensored', description: 'Qwen 3.8 27B dense · the viral uncensored build. Vision + thinking, 262K context. Recommended quant. The 0.9 GB vision projector comes with it.', pulls: '1M+', tags: ['27B', 'Vision', 'Q4_K_M', '17 GB'], updated: 'Hot', agent: true, released: '2026-08', downloadUrl: HF('JonathanColetti/Qwen3.8-27B-Uncensored-GGUF', 'Qwen3.8-27B-Uncensored-Q4_K_M.gguf'), filename: 'Qwen3.8-27B-Uncensored-Q4_K_M.gguf', sizeGB: 16.8, mmprojUrl: HF('JonathanColetti/Qwen3.8-27B-Uncensored-GGUF', 'Qwen3.8-27B-Uncensored-vision-f16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B Uncensored IQ2_M', group: 'Qwen 3.8 27B Uncensored', description: 'Qwen 3.8 27B uncensored · smallest quant, fits a 12 GB card. Real quality tradeoff, but it runs.', pulls: '1M+', tags: ['27B', 'Vision', 'IQ2_M', '11 GB'], updated: 'Hot', agent: true, released: '2026-08', downloadUrl: HF('JonathanColetti/Qwen3.8-27B-Uncensored-GGUF', 'Qwen3.8-27B-Uncensored-IQ2_M.gguf'), filename: 'Qwen3.8-27B-Uncensored-IQ2_M.gguf', sizeGB: 10.6, mmprojUrl: HF('JonathanColetti/Qwen3.8-27B-Uncensored-GGUF', 'Qwen3.8-27B-Uncensored-vision-f16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B Uncensored IQ4_XS', group: 'Qwen 3.8 27B Uncensored', description: 'Qwen 3.8 27B uncensored · IQ4_XS, the cheapest 4 bit. Close to Q4_K_M on 16 GB cards.', pulls: '1M+', tags: ['27B', 'Vision', 'IQ4_XS', '15 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('JonathanColetti/Qwen3.8-27B-Uncensored-GGUF', 'Qwen3.8-27B-Uncensored-IQ4_XS.gguf'), filename: 'Qwen3.8-27B-Uncensored-IQ4_XS.gguf', sizeGB: 15.3, mmprojUrl: HF('JonathanColetti/Qwen3.8-27B-Uncensored-GGUF', 'Qwen3.8-27B-Uncensored-vision-f16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B Uncensored Q5_K_M', group: 'Qwen 3.8 27B Uncensored', description: 'Qwen 3.8 27B uncensored · Q5, higher quality. For 24 GB cards.', pulls: '1M+', tags: ['27B', 'Vision', 'Q5_K_M', '20 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('JonathanColetti/Qwen3.8-27B-Uncensored-GGUF', 'Qwen3.8-27B-Uncensored-Q5_K_M.gguf'), filename: 'Qwen3.8-27B-Uncensored-Q5_K_M.gguf', sizeGB: 19.5, mmprojUrl: HF('JonathanColetti/Qwen3.8-27B-Uncensored-GGUF', 'Qwen3.8-27B-Uncensored-vision-f16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B Uncensored Q6_K', group: 'Qwen 3.8 27B Uncensored', description: 'Qwen 3.8 27B uncensored · Q6, near-lossless. High-VRAM setups.', pulls: '1M+', tags: ['27B', 'Vision', 'Q6_K', '22 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('JonathanColetti/Qwen3.8-27B-Uncensored-GGUF', 'Qwen3.8-27B-Uncensored-Q6_K.gguf'), filename: 'Qwen3.8-27B-Uncensored-Q6_K.gguf', sizeGB: 22.4, mmprojUrl: HF('JonathanColetti/Qwen3.8-27B-Uncensored-GGUF', 'Qwen3.8-27B-Uncensored-vision-f16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B Uncensored Q8_0', group: 'Qwen 3.8 27B Uncensored', description: 'Qwen 3.8 27B uncensored · Q8, full quality. 32 GB+ or CPU with lots of RAM.', pulls: '1M+', tags: ['27B', 'Vision', 'Q8_0', '29 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('JonathanColetti/Qwen3.8-27B-Uncensored-GGUF', 'Qwen3.8-27B-Uncensored-Q8_0.gguf'), filename: 'Qwen3.8-27B-Uncensored-Q8_0.gguf', sizeGB: 29, mmprojUrl: HF('JonathanColetti/Qwen3.8-27B-Uncensored-GGUF', 'Qwen3.8-27B-Uncensored-vision-f16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B Abliterated', group: 'Qwen 3.8 27B Abliterated', description: 'huihui Qwen 3.8 27B abliterated · clean uncensor of the newest Qwen dense model. Vision + thinking. Note the quant is called Q4_K, not Q4_K_M.', pulls: '635K+', tags: ['27B', 'Vision', 'Q4_K', '17 GB'], updated: 'Hot', agent: true, released: '2026-08', downloadUrl: HF('huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF', 'Huihui-Qwen3.8-27B-abliterated-Q4_K.gguf'), filename: 'Huihui-Qwen3.8-27B-abliterated-Q4_K.gguf', sizeGB: 16.8, mmprojUrl: HF('huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF', 'mmproj-model-bf16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B Abliterated Q2_K', group: 'Qwen 3.8 27B Abliterated', description: 'huihui Qwen 3.8 27B abliterated · smallest quant for 12 GB cards.', pulls: '635K+', tags: ['27B', 'Vision', 'Q2_K', '11 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF', 'Huihui-Qwen3.8-27B-abliterated-Q2_K.gguf'), filename: 'Huihui-Qwen3.8-27B-abliterated-Q2_K.gguf', sizeGB: 10.9, mmprojUrl: HF('huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF', 'mmproj-model-bf16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B Abliterated Q5_K', group: 'Qwen 3.8 27B Abliterated', description: 'huihui Qwen 3.8 27B abliterated · Q5, higher quality. For 24 GB cards.', pulls: '635K+', tags: ['27B', 'Vision', 'Q5_K', '20 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF', 'Huihui-Qwen3.8-27B-abliterated-Q5_K.gguf'), filename: 'Huihui-Qwen3.8-27B-abliterated-Q5_K.gguf', sizeGB: 19.5, mmprojUrl: HF('huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF', 'mmproj-model-bf16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B Abliterated Q6_K', group: 'Qwen 3.8 27B Abliterated', description: 'huihui Qwen 3.8 27B abliterated · Q6, near-lossless.', pulls: '635K+', tags: ['27B', 'Vision', 'Q6_K', '22 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF', 'Huihui-Qwen3.8-27B-abliterated-Q6_K.gguf'), filename: 'Huihui-Qwen3.8-27B-abliterated-Q6_K.gguf', sizeGB: 22.4, mmprojUrl: HF('huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF', 'mmproj-model-bf16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B Abliterated Q8_0', group: 'Qwen 3.8 27B Abliterated', description: 'huihui Qwen 3.8 27B abliterated · Q8, full quality.', pulls: '635K+', tags: ['27B', 'Vision', 'Q8_0', '29 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF', 'Huihui-Qwen3.8-27B-abliterated-Q8_0.gguf'), filename: 'Huihui-Qwen3.8-27B-abliterated-Q8_0.gguf', sizeGB: 29, mmprojUrl: HF('huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF', 'mmproj-model-bf16.gguf'), mmprojSizeGB: 0.93 },+ // Ollama ships the projector as a layer of the tag, so vision works there+ // without a second file.+ { name: 'Qwen 3.8 27B Abliterated (Ollama)', description: 'huihui Qwen 3.8 27B abliterated · one-command pull, projector included. Vision + tools + thinking out of the box.', pulls: '24K+', tags: ['27B', 'Vision', 'Tools', '18 GB'], updated: 'Hot', agent: true, released: '2026-08', ollamaModel: 'huihui_ai/Qwen3.8-abliterated:27b', sizeGB: 17.7 },// ── HOT: Qwen 3.6 Unfiltered (April 2026) ──{ name: 'Qwen 3.6 27B Samantha Unfiltered', description: 'Qwen 3.6 27B dense · Samantha personality, unfiltered finetune. Released April 22 2026. Needs GGUF conversion (see HF).', pulls: 'New', tags: ['27B', 'Vision', 'Unfiltered', '50 GB'], updated: 'Hot', agent: true, released: '2026-04', url: 'https://huggingface.co/cloudbjorn/Qwen3.6-27B_Samantha-Uncensored', canPull: false, sizeGB: 50 },{ name: 'Qwen 3.6 35B MoE Abliterated', description: 'Qwen 3.6 35B MoE abliterated · brand new unfiltered. 3B active, vision + agentic coding + thinking. 256K context.', pulls: '1K+', tags: ['35B MoE', 'Vision', 'Q4_K_M', '24 GB'], updated: 'Hot', agent: true, released: '2026-04', ollamaModel: 'huihui_ai/Qwen3.6-abliterated:35b', sizeGB: 24 },@@ -630,6 +705,25 @@ export function getMainstreamTextModels(): DiscoverModel[] {{ name: 'Gemma 4 12B (Q8)', group: 'Gemma 4 12B', description: 'Google Gemma 4 12B · Q8_0, near-lossless full quality. Native tools + vision, 128K context, ~13 GB. lmstudio-community build (LM-Studio-curated) with a fixed tool-template, so tool calling works out of the box. Best on LM Studio (Ollama cannot load the gemma4 vision projector yet).', pulls: '100K+', tags: ['12B', 'Q8_0', '13 GB'], updated: 'Hot', agent: true, released: '2026-04', downloadUrl: HF('lmstudio-community/gemma-4-12b-it-GGUF', 'gemma-4-12B-it-Q8_0.gguf'), filename: 'gemma-4-12B-it-Q8_0.gguf', sizeGB: 13 },{ 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', 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.8 (August 2026) ──+ // Qwen shipped no GGUF of its own, so the 27B rides on unsloth's dynamic+ // quants (the most-downloaded conversion by a wide margin). Every 27B entry+ // pairs with the repo's mmproj so vision works on the built-in engine and in+ // LM Studio; the Ollama tag brings its own projector layer. The 9B distill+ // has no projector upstream and is therefore text-only.+ { name: 'Qwen 3.8 27B', group: 'Qwen 3.8 27B', description: 'Qwen 3.8 27B dense · vision + tools + switchable thinking, 262K context. Unsloth dynamic Q4, the recommended default.', pulls: '6M+', tags: ['27B', 'Vision', 'UD-Q4_K_M', '16 GB'], updated: 'Hot', agent: true, released: '2026-08', downloadUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'Qwen3.8-27B-UD-Q4_K_M.gguf'), filename: 'Qwen3.8-27B-UD-Q4_K_M.gguf', sizeGB: 16.5, mmprojUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'mmproj-F16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B UD-IQ2_XXS', group: 'Qwen 3.8 27B', description: 'Qwen 3.8 27B · smallest dynamic quant, runs on an 8 GB card.', pulls: '6M+', tags: ['27B', 'Vision', 'UD-IQ2_XXS', '7 GB'], updated: 'New', released: '2026-08', downloadUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'Qwen3.8-27B-UD-IQ2_XXS.gguf'), filename: 'Qwen3.8-27B-UD-IQ2_XXS.gguf', sizeGB: 7.3, mmprojUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'mmproj-F16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B UD-IQ3_XXS', group: 'Qwen 3.8 27B', description: 'Qwen 3.8 27B · 3 bit dynamic, fits 12 GB with context to spare.', pulls: '6M+', tags: ['27B', 'Vision', 'UD-IQ3_XXS', '11 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'Qwen3.8-27B-UD-IQ3_XXS.gguf'), filename: 'Qwen3.8-27B-UD-IQ3_XXS.gguf', sizeGB: 10.9, mmprojUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'mmproj-F16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B UD-Q3_K_XL', group: 'Qwen 3.8 27B', description: 'Qwen 3.8 27B · Q3 dynamic, the 12 GB sweet spot.', pulls: '6M+', tags: ['27B', 'Vision', 'UD-Q3_K_XL', '13 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'Qwen3.8-27B-UD-Q3_K_XL.gguf'), filename: 'Qwen3.8-27B-UD-Q3_K_XL.gguf', sizeGB: 13.1, mmprojUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'mmproj-F16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B UD-Q4_K_XL', group: 'Qwen 3.8 27B', description: 'Qwen 3.8 27B · better quality per GB than plain Q4. For 20 GB+ cards.', pulls: '6M+', tags: ['27B', 'Vision', 'UD-Q4_K_XL', '18 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'Qwen3.8-27B-UD-Q4_K_XL.gguf'), filename: 'Qwen3.8-27B-UD-Q4_K_XL.gguf', sizeGB: 17.6, mmprojUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'mmproj-F16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B UD-Q5_K_M', group: 'Qwen 3.8 27B', description: 'Qwen 3.8 27B · Q5 dynamic, higher quality. For 24 GB cards.', pulls: '6M+', tags: ['27B', 'Vision', 'UD-Q5_K_M', '20 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'Qwen3.8-27B-UD-Q5_K_M.gguf'), filename: 'Qwen3.8-27B-UD-Q5_K_M.gguf', sizeGB: 19.8, mmprojUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'mmproj-F16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B UD-Q6_K', group: 'Qwen 3.8 27B', description: 'Qwen 3.8 27B · Q6 dynamic, near-lossless.', pulls: '6M+', tags: ['27B', 'Vision', 'UD-Q6_K', '22 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'Qwen3.8-27B-UD-Q6_K.gguf'), filename: 'Qwen3.8-27B-UD-Q6_K.gguf', sizeGB: 22, mmprojUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'mmproj-F16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B Q8_0', group: 'Qwen 3.8 27B', description: 'Qwen 3.8 27B · Q8, full quality. 32 GB+ or CPU with lots of RAM.', pulls: '6M+', tags: ['27B', 'Vision', 'Q8_0', '29 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'Qwen3.8-27B-Q8_0.gguf'), filename: 'Qwen3.8-27B-Q8_0.gguf', sizeGB: 29, mmprojUrl: HF('unsloth/Qwen3.8-27B-GGUF', 'mmproj-F16.gguf'), mmprojSizeGB: 0.93 },+ { name: 'Qwen 3.8 27B (Ollama)', description: 'Qwen 3.8 27B · one-command pull, projector included. Vision + tools + thinking out of the box.', pulls: '570K+', tags: ['27B', 'Vision', 'Tools', '18 GB'], updated: 'Hot', agent: true, released: '2026-08', ollamaModel: 'qwen3.8', sizeGB: 17.7 },+ { name: 'Qwen 3.8 9B Distill', group: 'Qwen 3.8 9B Distill', description: 'Qwen 3.8 9B distill · the 27B reasoning in a size that fits an 8 GB card. Text only, the repo ships no vision projector.', pulls: '126K+', tags: ['9B', 'Q4_K_M', '6 GB'], updated: 'Hot', agent: true, released: '2026-08', downloadUrl: HF('empero-ai/Qwen3.8-9B-Distill-GGUF', 'Qwen3.8-9B-Q4_K_M.gguf'), filename: 'Qwen3.8-9B-Q4_K_M.gguf', sizeGB: 5.8 },+ { name: 'Qwen 3.8 9B Distill Q5_K_M', group: 'Qwen 3.8 9B Distill', description: 'Qwen 3.8 9B distill · Q5, higher quality. Text only.', pulls: '126K+', tags: ['9B', 'Q5_K_M', '7 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('empero-ai/Qwen3.8-9B-Distill-GGUF', 'Qwen3.8-9B-Q5_K_M.gguf'), filename: 'Qwen3.8-9B-Q5_K_M.gguf', sizeGB: 6.6 },+ { name: 'Qwen 3.8 9B Distill Q6_K', group: 'Qwen 3.8 9B Distill', description: 'Qwen 3.8 9B distill · Q6, near-lossless. Text only.', pulls: '126K+', tags: ['9B', 'Q6_K', '8 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('empero-ai/Qwen3.8-9B-Distill-GGUF', 'Qwen3.8-9B-Q6_K.gguf'), filename: 'Qwen3.8-9B-Q6_K.gguf', sizeGB: 7.6 },+ { name: 'Qwen 3.8 9B Distill Q8_0', group: 'Qwen 3.8 9B Distill', description: 'Qwen 3.8 9B distill · Q8, full quality. Text only.', pulls: '126K+', tags: ['9B', 'Q8_0', '10 GB'], updated: 'New', agent: true, released: '2026-08', downloadUrl: HF('empero-ai/Qwen3.8-9B-Distill-GGUF', 'Qwen3.8-9B-Q8_0.gguf'), filename: 'Qwen3.8-9B-Q8_0.gguf', sizeGB: 9.8 },// ── Qwen 3.6 27B DENSE (April 21, 2026 · new release) ──{ name: 'Qwen 3.6 27B', group: 'Qwen 3.6 27B', description: 'Qwen 3.6 27B dense · vision + agentic coding + thinking preservation. 256K context. Recommended default.', pulls: 'New', tags: ['27B', 'Vision', 'Q4_K_M', '16 GB'], updated: 'Hot', agent: true, released: '2026-04', downloadUrl: HF('unsloth/Qwen3.6-27B-GGUF', 'Qwen3.6-27B-Q4_K_M.gguf'), filename: 'Qwen3.6-27B-Q4_K_M.gguf', sizeGB: 16 },{ name: 'Qwen 3.6 27B Q3_K_M', group: 'Qwen 3.6 27B', description: 'Qwen 3.6 27B · Q3 quant, fits 12GB VRAM completely. For GPU-only inference.', pulls: 'New', tags: ['27B', 'Vision', 'Q3_K_M', '13 GB'], updated: 'Hot', agent: true, released: '2026-04', downloadUrl: HF('unsloth/Qwen3.6-27B-GGUF', 'Qwen3.6-27B-Q3_K_M.gguf'), filename: 'Qwen3.6-27B-Q3_K_M.gguf', sizeGB: 13 },diff --git a/src/components/models/DiscoverModels.tsx b/src/components/models/DiscoverModels.tsxindex 1ee3d563..f604820c 100644--- a/src/components/models/DiscoverModels.tsx+++ b/src/components/models/DiscoverModels.tsx@@ -9,7 +9,7 @@ import {getUncensoredTextModels, getMainstreamTextModels,detectProviderModelPath, startModelDownloadToPath,startModelDownload, searchCivitaiModels,- installBundleComplete, checkBundlesInstalled, resolveHfGgufFiles,+ installBundleComplete, checkBundlesInstalled, resolveHfGgufFiles, planModelDownload,type DiscoverModel, type DownloadProgress, type ModelBundle, type CivitAIModelResult, type HfGgufFile,} from '../../api/discover'import { getSystemVRAM } from '../../api/comfyui'@@ -564,20 +564,33 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:setInstallError('Could not determine model directory. Please check app permissions.')return}+ // A vision GGUF carries no image tower: llama.cpp reads it from a separate+ // mmproj file that has to sit in the model folder BEFORE the server starts,+ // or the model silently loads text-only. It goes down the same path as the+ // model, so progress, pause, resume and retry work on it unchanged.+ const plan = planModelDownload(model, realUrl, realName, realBytes)try {- dlStore.getState().setMeta(realName, realUrl, 'gguf', targetDir)- await startModelDownloadToPath(realUrl, targetDir, realName, realBytes)+ if (plan.length > 1) {+ dlStore.getState().setBundleGroup(model.group || model.name, plan.map(f => f.filename))+ }+ for (const f of plan) {+ dlStore.getState().setMeta(f.filename, f.url, 'gguf', targetDir)+ await startModelDownloadToPath(f.url, targetDir, f.filename, f.expectedBytes)+ }dlStore.getState().startPolling()if (isActiveBuiltin) {// Built-in engine: await the flat GGUF, then (re)boot llama-server on// it so the freshly-added model is chat-ready without a manual switch.- await new Promise<void>((resolve, reject) => {+ // The projector is awaited too: booting before it lands would bring the+ // model up text-only and the image button would lie.+ const awaitFile = (fname: string) => new Promise<void>((resolve, reject) => {const poll = setInterval(() => {- const d = dlStore.getState().downloads[realName]+ const d = dlStore.getState().downloads[fname]if (d?.status === 'complete') { clearInterval(poll); resolve() }else if (d?.status === 'error') { clearInterval(poll); reject(new Error(d.error || 'Download failed')) }}, 500)})+ for (const f of plan) await awaitFile(f.filename)try {await startBundledEngine(`${targetDir}/${realName}`)} catch (e) {diff --git a/src/lib/__tests__/model-compatibility-smoke.test.ts b/src/lib/__tests__/model-compatibility-smoke.test.tsindex d8a01b4a..fc53ab7a 100644--- a/src/lib/__tests__/model-compatibility-smoke.test.ts+++ b/src/lib/__tests__/model-compatibility-smoke.test.ts@@ -22,6 +22,7 @@ import {isPlainTextPlanner,getToolCallingStrategy,getRecommendedAgentModels,+ isVisionCompatible,} from '../model-compatibility'// ── Agent Compatibility ─────────────────────────────────────────────────@@ -180,3 +181,41 @@ describe('getRecommendedAgentModels', () => {}})})++// ── Qwen 3.8 (August 2026) ──────────────────────────────────────────────+// The family arrives on three routes with three different name shapes: an+// Ollama tag, a GGUF file name in the built-in engine, and LM Studio's+// quant-less publisher key. All three have to reach the same verdict, or the+// image button and the Think toggle disagree with the model that is loaded.++describe('Qwen 3.8 across all three routes', () => {+ const names = [+ 'qwen3.8:latest',+ 'qwen3.8:27b',+ 'Qwen3.8-27B-UD-Q4_K_M.gguf',+ 'Qwen3.8-27B-Uncensored-Q4_K_M.gguf',+ 'Huihui-Qwen3.8-27B-abliterated-Q4_K.gguf',+ 'huihui_ai/Qwen3.8-abliterated:27b',+ 'qwen/qwen3.8-27b',+ ]++ it('reads images on every route', () => {+ for (const n of names) expect(isVisionCompatible(n), n).toBe(true)+ })++ it('takes tools and the think parameter on every route', () => {+ for (const n of names) {+ expect(isAgentCompatible(n), n).toBe(true)+ expect(isThinkingCompatible(n), n).toBe(true)+ }+ })++ it('does not bleed into unrelated families', () => {+ expect(isVisionCompatible('llama3.1:8b')).toBe(false)+ expect(isVisionCompatible('hermes3:8b')).toBe(false)+ })++ it('offers Qwen 3.8 as a recommended local pick', () => {+ expect(getRecommendedAgentModels().some(m => m.name === 'qwen3.8:latest')).toBe(true)+ })+})diff --git a/src/lib/model-compatibility.ts b/src/lib/model-compatibility.tsindex 396278c8..f6f2f446 100644--- a/src/lib/model-compatibility.ts+++ b/src/lib/model-compatibility.ts@@ -34,7 +34,7 @@ const AGENT_COMPATIBLE = [// ── Hermes: THE uncensored agent model ──'hermes3', 'hermes-3', 'hermes',// ── Standard models with native tool calling ──- 'qwen3.6', 'qwen3-coder-next', 'qwen3-coder', 'qwen3', 'qwen2.5',+ 'qwen3.8', 'qwen3.6', 'qwen3-coder-next', 'qwen3-coder', 'qwen3', 'qwen2.5','llama3.1', 'llama3.2', 'llama3.3', 'llama4','mistral', 'mistral-nemo', 'mistral-small', 'mistral-large',// Ministral (Mistral's 3B/8B edge line) has native tool calling like its@@ -165,6 +165,7 @@ export const hasNativeToolCalling = isAgentCompatibleconst THINKING_COMPATIBLE = ['qwq','deepseek-r1',+ 'qwen3.8', // Qwen 3.8 takes thinking on/off per request'qwen3.6', // Qwen 3.6 — thinking preservation'qwen3', // Qwen 3.x has native thinking'qwen3.5',@@ -218,7 +219,11 @@ const VISION_COMPATIBLE = ['gemma3', 'gemma4', // Gemma 3/4 are natively multimodal'llava', 'bakllava','llama3.2-vision', 'llama4', // Llama 3.2 Vision, Llama 4- 'qwen2.5-vl', 'qwen3-vl', 'qwen-vl', 'qwen3.6',+ // Qwen 3.8 is natively vision-language. On Ollama the tag carries the+ // projector; for a GGUF the catalog downloads the repo's mmproj next to the+ // model and the built-in engine starts with --mmproj, so the image button is+ // right to offer on every route.+ 'qwen2.5-vl', 'qwen3-vl', 'qwen-vl', 'qwen3.8', 'qwen3.6','minicpm-v', 'moondream', 'pixtral','mistral-small3.1', 'mistral-small3.2',// Entries must be in POST-normalizeFamily form. `glm-4v` normalizes to@@ -311,6 +316,7 @@ export interface RecommendedModel {export function getRecommendedAgentModels(): RecommendedModel[] {return [// Local — HOT picks+ { name: 'qwen3.8:latest', label: 'Qwen 3.8 27B', reason: 'Newest Qwen dense. Vision + tools + switchable thinking, 262K context.', hot: true, provider: 'ollama' },{ name: 'qwen3.6:latest', label: 'Qwen 3.6 35B MoE', reason: '35B brain, 3B active. Vision + agentic coding + thinking. Brand new.', hot: true, provider: 'ollama' },{ name: 'qwen3.5:35b-a3b', label: 'Qwen 3.5 35B MoE', reason: '35B brain, 3B active. Best agentic + 256K context. SWE-bench leader.', hot: true, provider: 'ollama' },{ name: 'gemma4:26b', label: 'Gemma 4 26B MoE', reason: '26B brain, runs like 4B. Native tools + vision. Apache 2.0.', hot: true, provider: 'ollama' },diff --git a/src/lib/release-notes.ts b/src/lib/release-notes.tsindex 41f40a98..3ed365a3 100644--- a/src/lib/release-notes.ts+++ b/src/lib/release-notes.ts@@ -41,6 +41,7 @@ export const RELEASE_NOTES: ReleaseNote[] = ['Anthropic models sent with your own key now use prompt caching, so a follow up on the same conversation is cheaper than starting it cold.','The Code view grew a mode menu per conversation (Ask, Bypass, Plan mode), the plan moved into the right panel, and a real file explorer arrived that you can widen and preview files in without leaving the app.','Your chats survive a hard crash: a wiped chat database is restored from the app\'s own backup instead of the backup overwriting the good copy. A long hosted chat that hits the message limit shrinks its request and keeps going instead of refusing every further turn, browser voice recording reaches the transcriber again, and a link an agent made up is labelled as unverified.',+ 'Qwen 3.8 is in the model list, uncensored builds included, and it can look at pictures: the separate vision file is downloaded next to the model and the built in engine starts with it, so a downloaded Qwen 3.8 sees images instead of quietly ignoring them.',],details: [{@@ -64,6 +65,7 @@ export const RELEASE_NOTES: ReleaseNote[] = ['The LoRA trainer plans for an AMD card instead of reading a silent nvidia-smi as no GPU at all. On Linux it installs the ROCm build; on Windows and macOS it refuses before the clone and the 2.5 GB, because there is no wheel to install there.','A bundle card in the Model Manager reads its own download state instead of its neighbours\'. Video bundles share files, so one failed attempt used to put a Retry button on every card and hide bundles that were complete on disk.','A finished download in the Model Manager waits for ComfyUI to list the file before announcing it, so a model stops being missing from the Installed tab and every picker until you reload by hand.',+ 'Qwen 3.8 joined the Model Manager: the viral uncensored 27B, the huihui abliterated 27B, the official 27B in Unsloth\'s dynamic quants, a 9B distill for small cards, and the two Ollama tags. Every 27B entry is a vision model, so its projector file is downloaded next to the model and the built in engine is started with it. The 9B distill is listed as text only, because its repo ships no projector.',],},{