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

Function deriveModelName

src/components/HfModelFileList.tsx:64–68  ·  view source on GitHub ↗
(repoId: string, filename: string)

Source from the content-addressed store, hash-verified

62}
63
64function deriveModelName(repoId: string, filename: string): string {
65 const baseName = repoId.split('/').pop() || repoId;
66 const quantization = filename.match(/Q\d+_K_[MSL]|Q\d+_\d+|Q\d+|F\d+/i)?.[0] || '';
67 return `${baseName}-${quantization}`.toLowerCase().replace(/[^a-z0-9-]/g, '-');
68}

Callers 1

HfModelFileListFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected