diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a92b364bb1..a3e62d4367e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel ## Unreleased +- Desktop: the library scan uses four convolution taps for Qwen3.5-2B, so the supported checkpoint is offered instead of being refused at scan time; a checkpoint with the old value still gets a geometry refusal (#3768). Thanks to @AIFlowML. + - Desktop: a ticket can finalize only after a current independent review of its actual builder work; reviewer blockers stay with their batch and ordinary later notes no longer revoke approval (#3484). Thanks to @AIFlowML. - Metal: Ling-3.0-tiny's MLA layers run on Kimi's `k3_mla` kernels with three added kernels for cache and query RoPE and gate widening, registered with planted controls in the kernel contract (#3609). Thanks to @ThinkOffApp. diff --git a/app/electron/agent/engine/geometry.ts b/app/electron/agent/engine/geometry.ts index 7c8a95d2de1..a03b49bfc8b 100644 --- a/app/electron/agent/engine/geometry.ts +++ b/app/electron/agent/engine/geometry.ts @@ -32,7 +32,7 @@ const QWEN35: PinnedGeometry = { linear_num_value_heads: 16, linear_key_head_dim: 128, linear_value_head_dim: 128, - linear_conv_kernel_dim: 6144, + linear_conv_kernel_dim: 4, num_attention_heads: 8, num_key_value_heads: 2, head_dim: 256, diff --git a/app/electron/agent/engine/library.test.ts b/app/electron/agent/engine/library.test.ts index 11027af03c5..940c2b70a4b 100644 --- a/app/electron/agent/engine/library.test.ts +++ b/app/electron/agent/engine/library.test.ts @@ -85,7 +85,23 @@ try { await fs.writeFile(path.join(wrongGeometry, 'config.json'), JSON.stringify({ model_type: 'qwen3_5', quantization: { bits: 4, group_size: 64 }, max_position_embeddings: 32768, text_config: { hidden_size: 1024, num_hidden_layers: 24, vocab_size: 151936 } })) const servedGeometry = path.join(modelsDir, 'served-geometry') await checkpoint(servedGeometry) - await fs.writeFile(path.join(servedGeometry, 'config.json'), JSON.stringify({ model_type: 'qwen3_5', quantization: { bits: 4, group_size: 64 }, max_position_embeddings: 32768, text_config: { hidden_size: 2048, num_hidden_layers: 24, vocab_size: 248320, intermediate_size: 6144, linear_num_key_heads: 16, linear_num_value_heads: 16, linear_key_head_dim: 128, linear_value_head_dim: 128, linear_conv_kernel_dim: 6144, num_attention_heads: 8, num_key_value_heads: 2, head_dim: 256, full_attention_interval: 4 } })) + const servedConfig = { + model_type: 'qwen3_5', + quantization: { bits: 4, group_size: 64 }, + max_position_embeddings: 32768, + text_config: { + hidden_size: 2048, num_hidden_layers: 24, vocab_size: 248320, intermediate_size: 6144, + linear_num_key_heads: 16, linear_num_value_heads: 16, linear_key_head_dim: 128, linear_value_head_dim: 128, + linear_conv_kernel_dim: 4, num_attention_heads: 8, num_key_value_heads: 2, head_dim: 256, full_attention_interval: 4, + }, + } + await fs.writeFile(path.join(servedGeometry, 'config.json'), JSON.stringify(servedConfig)) + const wrongConvolution = path.join(modelsDir, 'wrong-convolution') + await checkpoint(wrongConvolution) + await fs.writeFile(path.join(wrongConvolution, 'config.json'), JSON.stringify({ + ...servedConfig, + text_config: { ...servedConfig.text_config, linear_conv_kernel_dim: 6144 }, + })) const incomplete = path.join(modelsDir, 'incomplete') await checkpoint(incomplete) await fs.writeFile(path.join(incomplete, 'model.safetensors.index.json'), JSON.stringify({ weight_map: { a: 'model-00001-of-00002.safetensors', b: 'model-00002-of-00002.safetensors' } })) @@ -111,6 +127,10 @@ try { assert.match(refused.reason!, /hidden size is 1024/) assert.match(refused.reason!, /UnsupportedQwenGeometry/) assert.equal(selected.models.find((model) => model.path === servedGeometry)?.loadable, true, 'the geometry the engine serves stays offered') + const refusedConvolution = selected.models.find((model) => model.path === wrongConvolution)! + assert.equal(refusedConvolution.complete, true) + assert.equal(refusedConvolution.loadable, false) + assert.match(refusedConvolution.reason!, /linear conv kernel dim is 6144/) assert.equal(selected.models.find((model) => model.path === foreign)?.complete, true) assert.match(selected.models.find((model) => model.path === incomplete)!.reason!, /missing.*shards/) assert.match(selected.models.find((model) => model.path === invalid)!.reason!, /safetensors/)