Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/mlx_omni_server/chat/mlx/model_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ def __init__(self, processor):
else:
self.tokenizer = processor

# OutlinesLogitsProcessor accesses tokenizer._tokenizer
# (outlines_logits_processor.py), so expose it here too —
# otherwise json_schema/guided decoding with a VLM raises
# AttributeError: 'VLMTokenizerWrapper' has no '_tokenizer'.
self._tokenizer = self.tokenizer

# Load config from model path for apply_chat_template
# We'll get it from the model's config attribute if available
self.config = {"model_type": "gemma4"} # Default
Expand Down