MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / approxModelSizeB

Function approxModelSizeB

src/setup/wizard.ts:568–576  ·  view source on GitHub ↗
(modelId: string)

Source from the content-addressed store, hash-verified

566}
567
568function approxModelSizeB(modelId: string): number {
569 const colon = modelId.match(/:(\d+(?:\.\d+)?)b/i);
570 if (colon) return parseFloat(colon[1]!);
571 const x = modelId.match(/(\d+)x(\d+)b/i);
572 if (x) return parseInt(x[1]!, 10) * parseInt(x[2]!, 10) * 0.3;
573 if (/72b/.test(modelId)) return 72;
574 if (/v3$/i.test(modelId)) return 50;
575 return 0; // unknown
576}
577
578/** Write the assembled config to disk, merging with existing values. */
579async function writeConfig(picks: {

Callers 1

buildLightLocalChoicesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected