MCPcopy
hub / github.com/Andyyyy64/whichllm / fake_rank_models

Function fake_rank_models

tests/test_cli.py:416–428  ·  view source on GitHub ↗
(models, hardware, **kwargs)

Source from the content-addressed store, hash-verified

414 captured: dict[str, object] = {}
415
416 def fake_rank_models(models, hardware, **kwargs):
417 captured["fit_filter"] = kwargs.get("fit_filter")
418 return [
419 CompatibilityResult(
420 model=model,
421 gguf_variant=None,
422 can_run=True,
423 vram_required_bytes=4 * 1024**3,
424 vram_available_bytes=8 * 1024**3,
425 fit_type="full_gpu",
426 quality_score=80.0,
427 )
428 ]
429
430 monkeypatch.setattr(
431 "whichllm.hardware.detector.detect_hardware", lambda: _hw_with_gpu(8)

Callers

nothing calls this directly

Calls 1

CompatibilityResultClass · 0.90

Tested by

no test coverage detected