(vramGb: number)
| 55 | } |
| 56 | |
| 57 | function 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 | |
| 64 | function deriveModelName(repoId: string, filename: string): string { |
| 65 | const baseName = repoId.split('/').pop() || repoId; |