MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/optillm / MLXModelConfig

Class MLXModelConfig

optillm/inference.py:292–299  ·  view source on GitHub ↗

Configuration for MLX models

Source from the content-addressed store, hash-verified

290
291@dataclass
292class MLXModelConfig:
293 """Configuration for MLX models"""
294 model_id: str
295 max_new_tokens: int = 4096
296 temperature: float = 0.7
297 top_p: float = 0.9
298 repetition_penalty: float = 1.0
299 enable_prompt_caching: bool = True
300
301class MLXInferencePipeline:
302 """MLX-based inference pipeline that mirrors PyTorch pipeline interface"""

Callers 2

setUpMethod · 0.90
create_pipelineMethod · 0.85

Calls

no outgoing calls

Tested by 1

setUpMethod · 0.72