kone
소미소프트
소미소프트

젬마 26b 번역용 llama.cpp 세팅 (VRAM 16기가)

07/19/2026, 16:41:32
일반
12956 views · 0 likes

MTP 지원할 생각을 안하길래 LM Studio 유기하고 llama.cpp 직접 쓰기 시작했음

단문 번역용이라 컨텍스트 클 필요가 없어서 속도만 땡김

모델은 unsloth/gemma-4-26B-A4B-it-qat-GGUF

$ErrorActionPreference = "Stop"

$MODEL_DIR = "__________"

$TargetModel = Join-Path $MODEL_DIR "gemma-4-26B-A4B-it-qat-UD-Q4_K_XL.gguf"
$DraftModel  = Join-Path $MODEL_DIR "mtp-gemma-4-26B-A4B-it-Q4_0.gguf"

if (-not (Test-Path $TargetModel)) {
    throw "Target model not found: $TargetModel"
}

if (-not (Test-Path $DraftModel)) {
    throw "Draft model not found: $DraftModel"
}

$ServerCommand = Get-Command "llama-server.exe" -ErrorAction SilentlyContinue

if (-not $ServerCommand) {
    throw "llama-server.exe was not found in PATH."
}

$llamaArgs = @(
    # Models
    "-m"
    $TargetModel

    "-md"
    $DraftModel

    "-a"
    "gemma-4-26b"

    "--reasoning" 
    "off"

    # MTP speculative decoding
    "--spec-type"
    "draft-mtp"

    "--spec-draft-n-max"
    "2"

    "--no-spec-draft-backend-sampling"

    # Full GPU offload
    "-ngl"
    "all"

    "-ngld"
    "all"

    "--fit"
    "off"

    "-fa"
    "on"

    # Five slots sharing one 2048-token context pool
    "-c"
    "2048"

    "-np"
    "5"

    "--kv-unified"

    # Quantized target and draft KV caches
    # "-ctk"
    # "q8_0"

    # "-ctv"
    # "q8_0"

    # "-ctkd"
    # "q8_0"

    # "-ctvd"
    # "q8_0"

    # Batch configuration
    "-b"
    "1024"

    "-ub"
    "128"

    # Google-recommended Gemma 4 sampling
    "--temp"
    "1.0"

    "--top-p"
    "0.95"

    "--top-k"
    "64"

    # Disable additional llama.cpp sampling filters
    "--min-p"
    "0.0"

    "--typical"
    "1.0"

    "--top-n-sigma"
    "-1.0"

    "--xtc-probability"
    "0.0"

    "--dynatemp-range"
    "0.0"

    "--mirostat"
    "0"

    # Disable repetition and presence/frequency penalties
    "--repeat-penalty"
    "1.0"

    "--presence-penalty"
    "0.0"

    "--frequency-penalty"
    "0.0"

    "--dry-multiplier"
    "0.0"

    # Memory and server options
    "--ctx-checkpoints"
    "0"

    "--cache-ram"
    "0"

    "--no-cache-idle-slots"
    "--no-mmproj"

    "--host"
    "127.0.0.1"

    "--port"
    "8080"
)

Write-Host "Starting Gemma 4 llama.cpp server..." -ForegroundColor Cyan
Write-Host "Executable: $($ServerCommand.Source)"
Write-Host "Target:     $TargetModel"
Write-Host "MTP:        $DraftModel"
Write-Host "Endpoint:   http://127.0.0.1:8080"
Write-Host "Sampling:   temp=1.0, top-p=0.95, top-k=64, min-p=disabled"
Write-Host ""

& $ServerCommand.Source @llamaArgs

if ($LASTEXITCODE -ne 0) {
    throw "llama-server exited with code $LASTEXITCODE"
}

1

180-200tps 정도 나옴

0
7 comments
07/19
갑부 슈퍼파워로 거미약 치면 이길순 없으려나
07/19
반칙임 반칙
07/19
글카 어떤모델씀? 컨텍 짧다곤 해도 속도 엄청 잘나오네
07/19
아 안썼네 5080
근데 멜론북스 우회안하면 못들어가는거 너무함
일반
신사의품격
08/25 3977 -1
청아,업뎃)세상 모르는 단또쉑 1.06
미번
쩝냡
08/25 55276 40
루루마을 하다가 귀찮아서 세이브 받았는데
일반
리위아
08/25 5751 1
예전에 본 만화 찾는거 헬프좀
질문
urakan915
08/25 5150 0
업뎃)버그수정 Imperial knights DLC
미번
쩝냡
08/25 48193 41
AI) 로컬AI 야짤2
야짤
pyapyu00
08/25 30507 25
Fanza 너무 극혐이네 슈발...
일반
outward
08/25 5431 9
남주가 암컷 생물들에게 박는 수간겜 좀 추천해 주세요
질문
Ghost #a44735a1
08/25 6138 4
세타리아의 마경 질문
질문
dqwerdd
08/25 4239 0
ai) v5 그림체 깎으면서 나온 건전 / 야짤들 짤털
야짤
kjh9304
08/25 31273 28
오늘 구매한 영상 5개
영상
icepick
08/25 130058 113
[복구요청] 도라에몽 바이오하자드 ~DISIRE~
요청
NTR
08/25 5366 2
[복구요청] 엘프와 함께 1.07 손번
요청
d0min9uez1
08/25 4485 0
응석받이 여름편같은 게임 있나요?
질문
NTR
08/25 4375 2
크레아 스트러글 개꼴리네
일반
ㅇㅇ
08/25 5008 0
타락성흔같이 간접적으로 알게해주는 NTR겜 없나
질문
아로마
08/25 6864 4
[복구요청] 마법소녀 셀레스포니아 Maple 개조 버전
요청
rohclick
08/25 7655 0
게임을 찾습니다ㅏ
질문
eve-the-chururu
08/25 3579 0
서큐버스 프리즌 ~유몽귀환~ 손번역일지3
작업현황
cbdpffhj
08/25 21289 47
님들이 올타임 넘버1으로 추천하는 겜은 뭔가요?
질문
dmgkgkgk11
08/25 6921 0
오우 최면성지도 에서 제일 꼴리는 아줌마 피규어 나오네
야짤
신사의품격
08/25 19584 11
[미번,번역요청] 고전 게임 몇개 올립니당
미번
tentacle master
08/25 43032 35
거울음마 최신패치 에서 가능한거
일반
신사의품격
08/25 5367 1
완장 뭐하냐
일반
gloli
08/25 6800 7
내기준 수작 야겜 추천 1
후기 및 공략
laliberte
08/25 24190 9
음문어비스 버전업된거 번역 나오나 ? 하고 찾아보니까 안나오는 이유가잇엇구나
야짤
a123123a1231237
08/25 19830 1
[내가삼+대본번역]《자칭 츠요츠요 누나 → 즉시 자지에 패배하고 허접보지인게 들통》 노처녀 쿨 언니에게 구애받다. (중증 브라콘이라 시종일관 꽁냥거림)
소리
이름뭐하지
08/25 52634 71
오늘은 이걸해야지
야짤
신사의품격
08/25 18238 5
45번 전차 엔딩이 총 뭐뭐 있는거야?
질문
flossom
08/25 8371 0
[기계번역] 가슴을 조르는 애원 ~아스나~
번역
괴물나방
08/25 286799 97