inkling-2-mini-decide / scripts /start_llama_server.ps1
ibrahimdinc's picture
Initial release: Inkling 2 Mini decision layer, calibration and JevBench evaluation
ce2a505
Raw History Blame Contribute Delete
1.44 kB
# Starts llama-server for Inkling 2 Mini on an 8 GB NVIDIA GPU (tested: RTX 3070 Ti, 32 GB RAM, llama.cpp b12613).
# Listens on 127.0.0.1 only.
#
# .\scripts\start_llama_server.ps1 -LlamaServer C:\path\to\llama-server.exe -Model .\models\Inkling-2-Mini-UD-Q4_K_XL.gguf
#
# Notes for 8 GB cards:
# - --no-op-offload is required. With op offload on, the compute buffer alone needs ~6.8-8.4 GB.
# - Expert tensors of layers 6-10 (part of the looped core, run 3x per token) go to the GPU, all other experts to the CPU.
# Do not combine -ot with --n-cpu-moe: the --n-cpu-moe rules take precedence.
# - On a GPU with >= 24 GB you can drop -ot / --no-op-offload and use -ngl 99 alone.
param(
[Parameter(Mandatory = $true)][string]$LlamaServer,
[Parameter(Mandatory = $true)][string]$Model,
[string]$MmProj = "", # optional: mmproj-F16.gguf for image inputs
[string]$GpuLoopLayers = "6|7|8|9|10",
[int]$Ctx = 16384,
[int]$UBatch = 256,
[int]$Port = 8080,
[int]$Threads = 8,
[int]$BatchThreads = 16
)
$a = @(
"-m", $Model, "--host", "127.0.0.1", "--port", $Port,
"-ngl", "99", "-np", "1", "-c", $Ctx, "-ub", $UBatch, "-fa", "on", "--fit", "off", "--no-op-offload",
"--jinja", "-t", $Threads, "-tb", $BatchThreads, "--load-mode", "none",
"-ot", "blk\.($GpuLoopLayers)\.ffn_.*_exps.*=CUDA0,ffn_.*_exps.*=CPU"
)
if ($MmProj) { $a += @("--mmproj", $MmProj) }
& $LlamaServer @a