(repoId: string, filename: string)
| 62 | } |
| 63 | |
| 64 | function 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 | } |