File size: 538 Bytes
9be6119
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Serve Dragon Finance 7B locally for OpenCode (Windows).
#
#   .\serve-model.ps1 -Model C:\models\Dragon-Finance-7B-Q4_K_M.gguf
param(
  [Parameter(Mandatory=$true)][string]$Model,
  [int]$Port = 8080,
  [int]$Ctx  = 32768
)
if (-not (Test-Path $Model)) { Write-Error "no such file: $Model"; exit 1 }

Write-Host "serving $Model on 127.0.0.1:$Port (ctx $Ctx)"
llama-server `
  -m $Model `
  --host 127.0.0.1 --port $Port `
  -c $Ctx `
  -fa on `
  -ctk q8_0 -ctv q8_0 `
  -ngl 999 `
  --jinja `
  --alias dragon-finance-7b `
  --metrics