kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12946 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
[복구요청] 군청의 오르파네지 1.05 노모 RJ01006462
요청
dl2061
08/24 7534 0
[rk-2][구매보급/미번]친구엄마가 내 거근으로 마구 가버렸던 여름축제편
동인
프로베스트캣
08/24 121046 31
지피티 사용량 끝나서 플러스로 결제했는데
일반
piriparafuru
08/24 7567 5
(스포, H씬 스압주의) SAO Invisible Trap_verβ8.5 리뷰
후기 및 공략
drogba
08/24 27988 13
AI, 명조) 스토리에서는 보여줄 수 없는 명조의 애프터스토리
야짤
카제가토오루
08/24 19688 9
노모) 요정창관 3호실 레이시 ~갈색 피부의 엘프를 지명한 동정 오크~ 2
동인
ㅇㅇ
08/24 127199 115
극도무뢰 EX여경 의지 어떻게 채움?
질문
sinbokchi
08/24 8283 0
바이러스 토탈 이 정도는 괜찮은건가요?
질문
symbung0008
08/24 9124 0
AI)블아)스노하라자매 행복보테배3p
야짤
koreno1
08/24 21082 5
루나 번역기에서 ezTrans를 사용하려면 에러가 뜨는데 이유 아시는분?
질문
chiruki
08/24 6899 0
[복구요청] 무한유급
요청
애플파이pie
08/24 8716 0
훌륭한 썰기로구나
일반
vivy
08/24 6896 2
The wife next door후기
후기 및 공략
rtiuy
08/24 15039 3
젠가쿠 2 (ぜんがく!!(2)) 복구 요청합니다
요청
wesdxc23
08/24 6443 0
플레시 게임
질문
tktky2
08/24 6239 -6
미번/노모패치) SAO Invisible Trap vβ8.5
미번
hellowolrd
08/24 61325 75
Amatani Haruka-IF: 이웃사람들에게 씨뿌리기 할 수 있는 세계관의 이야기~소꿉친구 동급생의 경우~
동인
k8625
08/24 167556 290
여행물 노예의 그 맛이 있음
일반
dkak332
08/24 7816 0
동음은 왕자님계<< 이게 존나 많아서 좋음
일반
sweetroll
08/24 8311 6
[요청] 에투알 마리아주 1.1.1 RJ01586101
요청
manmenmii
08/24 8516 0
작품 추천좀 해주라
질문
dkak332
08/24 6694 -2
서큐버스 계승자 엔딩보면 갤러리 열림?
질문
기러기가리거리
08/24 6285 0
AI)버튜버) 오니와 꼬맹
야짤
dkeie
08/24 18566 6
그냥 궁금한건데 소리?
일반
mugumugu
08/24 6898 -14
[복구요청] (한글자막) POKO 작가꺼 NTR영상 모음집
요청
karatro
08/24 9228 4
꼴림 치트키
일반
kamasot
08/24 21509 47
SAO NTR vβ8.5 업데이트 (8월 업데이트)
정보
drogba
08/24 28818 11
아니 백합 음성은 와 이라노
일반
skkanz
08/24 5868 -2
리즈벨의 아틀리에 후기
후기 및 공략
에로탐구가
08/24 13375 3
상태이상 3편 발매일 앞당겨짐
정보
kkkkkk0909
08/24 22603 8