Kaname keeps two jobs: the model downloader and benchmarks. Benchmarks now run against endpoints (any OpenAI-compatible server added by URL, with an optional server-side API key and hand-written hardware notes) instead of deployments Kaname started itself. Removed: runtimes, deployments, sweeps, resource telemetry, hardware detection, the /api/v1 API with tokens and guardrails, and all Docker access. The quality eval's coding tests run in a network-less sandbox container that shares only an exchange folder with the worker. The previous state is kept in branch backup / tag backup-0.14.3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1d2f908b75
commit
276108932d
199 files changed
+5462
-15961
No files matched your search
+1
-13
@@ -1,8 +1,7 @@
|
||||
import "server-only";
|
||||
import { and, asc, desc, eq, sql } from "drizzle-orm";
|
||||
import { db } from "@/lib/db/client";
|
||||
import { deploymentsByModel, listDeployableModels } from "@/lib/deployments";
|
||||
import { jobs, modelFiles, models, modelTags, tags } from "@/lib/db/schema";
|
||||
import { modelFiles, models, modelTags, tags } from "@/lib/db/schema";
|
||||
import { modelFamilies } from "@/lib/hub/metadata";
|
||||
import { fileRole } from "@/lib/file-roles";
|
||||
import { quantGroup } from "@/lib/selection";
|
||||
@@ -30,7 +29,6 @@ export async function listLibrary() {
|
||||
pipelineTag: models.pipelineTag,
|
||||
license: models.license,
|
||||
hubTags: models.hubTags,
|
||||
requestedBy: models.requestedBy,
|
||||
fileCount: sql<number>`count(${modelFiles.id})`,
|
||||
totalBytes: sql<number>`coalesce(sum(${modelFiles.size}), 0)`,
|
||||
/** Selected files that are on disk (present or verified). */
|
||||
@@ -56,13 +54,6 @@ export async function listLibrary() {
|
||||
const tagsByModel = new Map<string, Tag[]>();
|
||||
for (const t of tagRows) tagsByModel.set(t.modelId, [...(tagsByModel.get(t.modelId) ?? []), { id: t.id, name: t.name, color: t.color }]);
|
||||
|
||||
const pending = new Set(
|
||||
(await d.select({ modelId: jobs.modelId }).from(jobs).where(eq(jobs.state, "pending_approval"))).map((j) => j.modelId),
|
||||
);
|
||||
|
||||
const [byModel, deployable] = await Promise.all([deploymentsByModel(), listDeployableModels()]);
|
||||
const deployableIds = new Set(deployable.map((m) => m.id));
|
||||
|
||||
return rows.map(({ updateDiff, ...r }) => ({
|
||||
...r,
|
||||
updateAvailable: !!updateDiff && updateDiff.sha === r.remoteSha && r.remoteSha !== r.pinnedSha,
|
||||
@@ -72,9 +63,6 @@ export async function listLibrary() {
|
||||
hubTags: r.hubTags ?? [],
|
||||
quants: [...(quants.get(r.id) ?? [])].sort(),
|
||||
tags: tagsByModel.get(r.id) ?? [],
|
||||
deployable: deployableIds.has(r.id),
|
||||
pendingApproval: pending.has(r.id),
|
||||
deployments: byModel.get(r.id) ?? [],
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user