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

Method setUp

tests/test_batching.py:166–174  ·  view source on GitHub ↗

Set up MLX test fixtures

(self)

Source from the content-addressed store, hash-verified

164
165 @unittest.skipIf(not MLX_AVAILABLE, "MLX not available")
166 def setUp(self):
167 """Set up MLX test fixtures"""
168 self.model_config = MLXModelConfig(
169 model_id=TEST_MODEL_MLX,
170 max_new_tokens=100
171 )
172 # Create a real cache manager instead of mock
173 from optillm.inference import CacheManager
174 self.cache_manager = CacheManager.get_instance(max_size=1)
175
176 @unittest.skipIf(not MLX_AVAILABLE, "MLX not available")
177 def test_mlx_batch_creation(self):

Callers

nothing calls this directly

Calls 2

MLXModelConfigClass · 0.90
get_instanceMethod · 0.80

Tested by

no test coverage detected