chore: Add LLAMA-APP-REUSE comments

This commit is contained in:
Aleksander Grygier
2026-09-01 08:24:36 +02:00
parent c024c1c567
commit 065e8d883a
2 changed files with 3 additions and 1 deletions
@@ -141,7 +141,7 @@
/** First selected draft sidecar type, drives the `--spec-type` flag. */
let draft = $derived(draftEntry?.sidecar ?? null);
// llama.cpp --spec-type value for each draft sidecar.
// LLAMA-APP-REUSE: --spec-type value for each draft sidecar
const SPEC_TYPE: Record<ModelSidecar, string> = {
[ModelAuxSidecar.MMPROJ]: '',
[ModelDraftSidecar.DFLASH]: 'draft-dflash',
@@ -174,6 +174,7 @@
}
/** The llama serve command for the current selection. */
// LLAMA-APP-REUSE: serve command shape (-hf / -hfd / --spec-type)
let serveCommand = $derived.by(() => {
const quantTag = primaryQuant ? `${modelId}:${primaryQuant}` : modelId;
const parts = ['llama', 'serve', '-hf', quantTag];
+1
View File
@@ -202,6 +202,7 @@ export interface HfCatalogBuild {
}
/** A size variant (e.g. `GPT-OSS 20B`) within a catalog entry. */
// LLAMA-APP-REUSE: llama.pages catalog.json shapes (same feed the app consumes)
export interface HfCatalogSize {
name: string;
params: string;