We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1e57d8 commit 21b8c86Copy full SHA for 21b8c86
packages/tasks/src/gguf.ts
@@ -137,7 +137,7 @@ export function findNearestQuantType(
137
// This means finding the largest quantization that is smaller than or equal to the target.
138
for (const availableQuant of sortedAvailable) {
139
// We know the key exists due to the filter above.
140
- const availableIndex = orderMap.get(availableQuant)!;
+ const availableIndex = orderMap.get(availableQuant) ?? 0;
141
if (availableIndex >= targetIndex) {
142
return availableQuant;
143
}
0 commit comments