Spaces:
Running
Running
revert auto-backfill: single pass only, manual Show more
Browse files
fork.js
CHANGED
|
@@ -393,7 +393,6 @@ async function search(append) {
|
|
| 393 |
// (fits_only above) and dropped client-side (headroom residuals) below.
|
| 394 |
const bestSort = q.sort === "best";
|
| 395 |
if (!append) nofitDropped = 0;
|
| 396 |
-
let batchDropped = 0;
|
| 397 |
|
| 398 |
for (const m of res.results) {
|
| 399 |
const ui = card(m);
|
|
@@ -432,7 +431,6 @@ async function search(append) {
|
|
| 432 |
} else if (bestSort) {
|
| 433 |
ui.c.remove();
|
| 434 |
nofitDropped++;
|
| 435 |
-
batchDropped++;
|
| 436 |
} else {
|
| 437 |
ui.status.textContent = warnings[0] || "Doesn't fit this hardware.";
|
| 438 |
}
|
|
@@ -444,10 +442,6 @@ async function search(append) {
|
|
| 444 |
}
|
| 445 |
await Promise.all(Array.from({ length: 4 }, worker));
|
| 446 |
if (!alive()) return;
|
| 447 |
-
// best-sort hides non-fits: a batch can come back empty (e.g. every top
|
| 448 |
-
// model over the headroom reserve at long ctx), so keep paging until the
|
| 449 |
-
// screen has cards or the server is exhausted.
|
| 450 |
-
if (bestSort && batchDropped > 0 && offset < total) { search(true); return; }
|
| 451 |
if (bestSort) $("#count").textContent =
|
| 452 |
`${(total - nofitDropped).toLocaleString()} models that fit your hardware`;
|
| 453 |
}
|
|
|
|
| 393 |
// (fits_only above) and dropped client-side (headroom residuals) below.
|
| 394 |
const bestSort = q.sort === "best";
|
| 395 |
if (!append) nofitDropped = 0;
|
|
|
|
| 396 |
|
| 397 |
for (const m of res.results) {
|
| 398 |
const ui = card(m);
|
|
|
|
| 431 |
} else if (bestSort) {
|
| 432 |
ui.c.remove();
|
| 433 |
nofitDropped++;
|
|
|
|
| 434 |
} else {
|
| 435 |
ui.status.textContent = warnings[0] || "Doesn't fit this hardware.";
|
| 436 |
}
|
|
|
|
| 442 |
}
|
| 443 |
await Promise.all(Array.from({ length: 4 }, worker));
|
| 444 |
if (!alive()) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 445 |
if (bestSort) $("#count").textContent =
|
| 446 |
`${(total - nofitDropped).toLocaleString()} models that fit your hardware`;
|
| 447 |
}
|