b11146 ships ubuntu-cuda-13.4-arm64 (+ cudart), so llamacpp-cuda gains linux-arm64, auto resolves NVIDIA arm64 Linux to CUDA, and the desktop's localModels flag ships on Linux arm64 too. Every upstream Linux llama.cpp build (CPU included) links the system libgomp, which minimal hosts (WSL, containers) lack, and a normal install never touches the system package manager. Each Linux engine now pins Ubuntu 24.04's libgomp1 .deb (glibc 2.38, the floor upstream already sets) and stages libgomp.so.1 beside llama-server, where the $ORIGIN RUNPATH finds it; the artifact mirror covers the pool URL after 24.04's EOL. DebPackage's ar+tar unpack becomes pm.package.unpack_deb and reads zstd data.tar (Ubuntu's default) with the stdlib codec PM's 3.14 runtime has. Pre-PM engines on Linux carry only llama.cpp's own archives, so adoption maps their manifests to those and records them as outdated (usable now, update offered) instead of failing to match. Verified on an RTX Spark N1X (WSL, Ubuntu 26.04, no system libgomp): ensure_engine() for cuda, cpu and vulkan through PM's real download/stage/ verify path; ldd resolves libgomp from the entry; llama-server serves completions (CUDA0 at 445 tok/s). linux-x64 cpu/vulkan staged through the same path with no NEEDED library missing beyond glibc/libstdc++/OpenSSL 3.
26 lines
947 B
TypeScript
26 lines
947 B
TypeScript
const featureFlags = {
|
|
/** Local-models GUI surfaces (settings pane, pickers, statusbar, tips). */
|
|
localModels: ({ argv }) =>
|
|
process.platform === 'win32' ||
|
|
process.platform === 'darwin' ||
|
|
(process.platform === 'linux' && (process.arch === 'x64' || process.arch === 'arm64')) ||
|
|
argv.includes('--local')
|
|
} satisfies Record<string, (args: FeatureFlagInput) => boolean>
|
|
|
|
export type FeatureFlags = { [K in keyof typeof featureFlags]: boolean }
|
|
|
|
export function isCanaryTag(tag: string | null | undefined): boolean {
|
|
return /\+canary\.20\d{6}T\d{6}Z$/.test(tag || '')
|
|
}
|
|
|
|
export interface FeatureFlagInput {
|
|
/** desktop launch flags */
|
|
argv: readonly string[]
|
|
/** Whether this artifact is a canary-channel build. */
|
|
canary: boolean
|
|
}
|
|
|
|
export function resolveFeatureFlags(input: FeatureFlagInput): FeatureFlags {
|
|
return Object.fromEntries(Object.entries(featureFlags).map(([k, v]) => [k, v(input)])) as FeatureFlags
|
|
}
|