MCPcopy Create free account
hub / github.com/Icecubesaad/OpenLLM-Studio / getRecommendedQuantization

Function getRecommendedQuantization

src/components/HfModelFileList.tsx:57–62  ·  view source on GitHub ↗
(vramGb: number)

Source from the content-addressed store, hash-verified

55}
56
57function getRecommendedQuantization(vramGb: number): string | null {
58 if (vramGb >= 10.0) return 'Q6_K';
59 if (vramGb >= 6.0) return 'Q5_K_M';
60 if (vramGb >= 4.0) return 'Q4_K_M';
61 return 'Q3_K_M';
62}
63
64function deriveModelName(repoId: string, filename: string): string {
65 const baseName = repoId.split('/').pop() || repoId;

Callers 1

HfModelFileListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected