bug: Tokenizer test hardcoded to Qwen3.5-4B path which may not exist #56

Open
opened 2026-05-20 23:58:14 +02:00 by sleepy · 0 comments
Owner

src/models/qwen3_5/tokenizer.zig line 259 hardcodes the tokenizer path to /Users/sleepy/.sleepy-llm/models/Qwen3.5-4B/tokenizer.json. On machines without the 4B model cached, this causes test failures.

Reproduction

zig build test

Result: Tokenizer Qwen3.5 encode Hello test fails silently.

Expected

Tests should either:

  • Skip if model not found, OR
  • Use a mock/test tokenizer.json, OR
  • Parameterize the path via build option/env var

Fix

Add a comptime or runtime check for the model path, or bundle a minimal test tokenizer.

`src/models/qwen3_5/tokenizer.zig` line 259 hardcodes the tokenizer path to `/Users/sleepy/.sleepy-llm/models/Qwen3.5-4B/tokenizer.json`. On machines without the 4B model cached, this causes test failures. ## Reproduction ```bash zig build test ``` Result: `Tokenizer Qwen3.5 encode Hello` test fails silently. ## Expected Tests should either: - Skip if model not found, OR - Use a mock/test tokenizer.json, OR - Parameterize the path via build option/env var ## Fix Add a comptime or runtime check for the model path, or bundle a minimal test tokenizer.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sleepy/sleepy-llm#56
No description provided.