Skip to content

test: add tokenizer fallback regression coverage#287

Merged
Thump604 merged 1 commit intowaybarrios:mainfrom
Thump604:codex/pr215-regression
Apr 14, 2026
Merged

test: add tokenizer fallback regression coverage#287
Thump604 merged 1 commit intowaybarrios:mainfrom
Thump604:codex/pr215-regression

Conversation

@Thump604
Copy link
Copy Markdown
Collaborator

Current main already contains the load_model_with_fallback() return fix, so this replacement PR keeps only the regression coverage from #215.

Changes:

  • add a pure unit test for the successful (model, tokenizer) return path
  • add a unit test for the tokenizer-fallback branch
  • avoid workflow-file changes and avoid Apple-Silicon-only gating by stubbing mlx_lm and the model-detection helpers directly

Validation:

  • PYTHONPATH=/Users/David/code/vllm-mlx-pr215-regression /opt/ai-runtime/venv-live/bin/python -m pytest /Users/David/code/vllm-mlx-pr215-regression/tests/test_tokenizer_utils.py -q
  • PYTHONPATH=/Users/David/code/vllm-mlx-pr215-regression /opt/ai-runtime/venv-live/bin/python -m py_compile /Users/David/code/vllm-mlx-pr215-regression/tests/test_tokenizer_utils.py
  • PYTHONPATH=/Users/David/code/vllm-mlx-pr215-regression /opt/ai-runtime/venv-live/bin/python -m black --check --fast /Users/David/code/vllm-mlx-pr215-regression/tests/test_tokenizer_utils.py

Supersedes the remaining regression-test portion of #215.

@Thump604 Thump604 merged commit 2cce3da into waybarrios:main Apr 14, 2026
7 checks passed
Thump604 added a commit to Thump604/vllm-mlx that referenced this pull request Apr 14, 2026
janhilgard pushed a commit that referenced this pull request Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant