Configuration for MLX models
| 290 | |
| 291 | @dataclass |
| 292 | class 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 | |
| 301 | class MLXInferencePipeline: |
| 302 | """MLX-based inference pipeline that mirrors PyTorch pipeline interface""" |
no outgoing calls