▾ modified .memory/history.md +5 -0 Viewed
@@ -230,3 +230,8 @@ reader; (2) the model did not know JSON was expected and planned prose while thi 230 230 adding the schema instruction to the system message (measured 3/3 correct with vs prose in fields 231 231 without). Decision taken without asking (strong evidence); flagged to the user. Linux tests 155, 232 232 gate PASS (run #18 ). Mac re-run pending: the host-runner stayed busy with the server (see handoff). 233 + Follow-up: Mac XCTest re-run after the fixes — 1 failure, `jsonObjectOutputIsAnObject` : greedy 234 + Qwen3-0.6B looped ("tuna tuna…") to max_tokens on "Tell me a joke." once the JSON instruction was 235 + added. Model degeneration, not a server bug: prompt changed to a factual question, and the test now 236 + checks finish_reason == stop first (readable failure). Mac 178 pass. compat.sh fixed to always rebuild 237 + (it would have tested a stale Release binary). Compat run on the Mac handed to the user.
@@ -230,3 +230,8 @@ reader; (2) the model did not know JSON was expected and planned prose while thi 230 adding the schema instruction to the system message (measured 3/3 correct with vs prose in fields 230 adding the schema instruction to the system message (measured 3/3 correct with vs prose in fields 231 without). Decision taken without asking (strong evidence); flagged to the user. Linux tests 155, 231 without). Decision taken without asking (strong evidence); flagged to the user. Linux tests 155, 232 gate PASS (run #18 ). Mac re-run pending: the host-runner stayed busy with the server (see handoff). 232 gate PASS (run #18 ). Mac re-run pending: the host-runner stayed busy with the server (see handoff). 233 + Follow-up: Mac XCTest re-run after the fixes — 1 failure, `jsonObjectOutputIsAnObject` : greedy 234 + Qwen3-0.6B looped ("tuna tuna…") to max_tokens on "Tell me a joke." once the JSON instruction was 235 + added. Model degeneration, not a server bug: prompt changed to a factual question, and the test now 236 + checks finish_reason == stop first (readable failure). Mac 178 pass. compat.sh fixed to always rebuild 237 + (it would have tested a stale Release binary). Compat run on the Mac handed to the user.
▾ modified .memory/summary.md +3 -1 Viewed
@@ -178,7 +178,9 @@ Server tests start the real server on a random port (`HummingbirdTesting` `.live 178 178 the docs' curl examples (`Tests/Compatibility/`, deps via `uv`). It starts `rzb serve` with ids 179 179 `chat` / `embed` / `unforced` (Llama, if cached) and stops it; `RZB_URL=…/v1` targets a running 180 180 server instead. Linux = fake engine (protocol only, `real_model` tests skipped): 28 pass, 19 skip. 181 - Mac (MLX, Qwen3-4B + bge-small + Llama-3.2-3B): 45/46 before the #43 fixes. 181 + Mac (MLX, Qwen3-4B + bge-small + Llama-3.2-3B): 45/46 before the #43 fixes; re-run after them 182 + awaits the user (run on the Mac). compat.sh always rebuilds rzb (incremental) unless RZB_BIN is set. 183 + Tests 2026-11-25 after #43 fixes: Linux 155, Mac 178. 182 184 183 185 ## mlx-swift-lm API version trap 184 186
@@ -178,7 +178,9 @@ Server tests start the real server on a random port (`HummingbirdTesting` `.live 178 the docs' curl examples (`Tests/Compatibility/`, deps via `uv`). It starts `rzb serve` with ids 178 the docs' curl examples (`Tests/Compatibility/`, deps via `uv`). It starts `rzb serve` with ids 179 `chat` / `embed` / `unforced` (Llama, if cached) and stops it; `RZB_URL=…/v1` targets a running 179 `chat` / `embed` / `unforced` (Llama, if cached) and stops it; `RZB_URL=…/v1` targets a running 180 server instead. Linux = fake engine (protocol only, `real_model` tests skipped): 28 pass, 19 skip. 180 server instead. Linux = fake engine (protocol only, `real_model` tests skipped): 28 pass, 19 skip. 181 - Mac (MLX, Qwen3-4B + bge-small + Llama-3.2-3B): 45/46 before the #43 fixes. 181 + Mac (MLX, Qwen3-4B + bge-small + Llama-3.2-3B): 45/46 before the #43 fixes; re-run after them 182 + awaits the user (run on the Mac). compat.sh always rebuilds rzb (incremental) unless RZB_BIN is set. 183 + Tests 2026-11-25 after #43 fixes: Linux 155, Mac 178. 182 184 183 ## mlx-swift-lm API version trap 185 ## mlx-swift-lm API version trap 184 186
▾ modified Tests/RazorbillMLXTests/ConstrainedSmokeTests.swift +8 -2 Viewed
@@ -58,8 +58,14 @@ struct ConstrainedSmokeTests { 58 58 59 59 @Test func jsonObjectOutputIsAnObject() async throws { 60 60 let response = try await complete( 61 - try plan("Tell me a joke.", extra: #","response_format":{"type":"json_object"}"#)) 62 - let content = try #require(response.choices.first?.message.content) 61 + // Greedy Qwen3-0.6B loops on open-ended prompts ("Tell me a joke." repeated "tuna" 62 + // until max_tokens once the JSON instruction was added, #43): ask for facts. 63 + try plan( 64 + "Give the name, the country and the population of the capital of France.", 65 + extra: #","response_format":{"type":"json_object"}"#)) 66 + let choice = try #require(response.choices.first) 67 + let content = choice.message.content ?? "" 68 + #expect(choice.finishReason == .stop, "truncated: \(content)") 63 69 #expect(try JSONSerialization.jsonObject(with: Data(content.utf8)) is [String: Any]) 64 70 } 65 71
@@ -58,8 +58,14 @@ struct ConstrainedSmokeTests { 58 58 59 @Test func jsonObjectOutputIsAnObject() async throws { 59 @Test func jsonObjectOutputIsAnObject() async throws { 60 let response = try await complete( 60 let response = try await complete( 61 - try plan("Tell me a joke.", extra: #","response_format":{"type":"json_object"}"#)) 61 + // Greedy Qwen3-0.6B loops on open-ended prompts ("Tell me a joke." repeated "tuna" 62 - let content = try #require(response.choices.first?.message.content) 62 + // until max_tokens once the JSON instruction was added, #43): ask for facts. 63 + try plan( 64 + "Give the name, the country and the population of the capital of France.", 65 + extra: #","response_format":{"type":"json_object"}"#)) 66 + let choice = try #require(response.choices.first) 67 + let content = choice.message.content ?? "" 68 + #expect(choice.finishReason == .stop, "truncated: \(content)") 63 #expect(try JSONSerialization.jsonObject(with: Data(content.utf8)) is [String: Any]) 69 #expect(try JSONSerialization.jsonObject(with: Data(content.utf8)) is [String: Any]) 64 } 70 } 65 71