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

Function _result

tests/test_markdown_output.py:55–88  ·  view source on GitHub ↗
(
    index: int,
    *,
    benchmark_status: str = "direct",
    speed_confidence: str = "medium",
)

Source from the content-addressed store, hash-verified

53
54
55def _result(
56 index: int,
57 *,
58 benchmark_status: str = "direct",
59 speed_confidence: str = "medium",
60) -> CompatibilityResult:
61 model = ModelInfo(
62 id=f"org/Test-{index}|Model",
63 family_id=f"test-{index}",
64 name=f"Test-{index}",
65 parameter_count=7_000_000_000 + index,
66 downloads=1_500 * index,
67 likes=index,
68 license="apache-2.0",
69 published_at=f"2026-01-0{index}T00:00:00Z",
70 )
71 return CompatibilityResult(
72 model=model,
73 gguf_variant=GGUFVariant(
74 filename=f"test-{index}.gguf",
75 quant_type="Q4_K_M",
76 file_size_bytes=4 * 1024**3,
77 ),
78 can_run=True,
79 vram_required_bytes=(4 + index) * 1024**3,
80 vram_available_bytes=24 * 1024**3,
81 estimated_tok_per_sec=10.0 * index,
82 speed_confidence=speed_confidence,
83 quality_score=80.0 - index,
84 fit_type="full_gpu",
85 benchmark_status=benchmark_status,
86 benchmark_source=benchmark_status,
87 benchmark_confidence=1.0,
88 )
89
90
91def test_display_markdown_runtime_table_top_three():

Calls 3

ModelInfoClass · 0.90
CompatibilityResultClass · 0.90
GGUFVariantClass · 0.90

Tested by

no test coverage detected