kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12924 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
언홀리 평점이 엄청 높네
일반
lovelylovely
08/30 3609 2
시간용사 이거 시간정지 요소 말고도 게임으로도 재밌는데?
후기 및 공략
reconquesta
08/30 7726 1
변태토끼두건 이거 존나재밌네
일반
qwertyuiaz
08/30 3600 1
[Esuke/노모] 처제가 허벌이었어!?
동인
ㅇㅇ
08/30 59486 91
망가 제목 좀 알려주실 수 있나요
질문
bokdong2
08/30 3730 0
136, AI) 해변에 간 무표정쨩과 이웃집 소년 (iF 스토리 금태양 출현)
야짤
miso5
08/30 23956 29
셋 다 강간
야짤
인생망함
08/30 13955 13
[RJ01662018]심야 학교의 파이즈리 괴이 번역 방법
질문
asd60111
08/30 3615 0
극뢰무경 ex 여경 유기 후기
후기 및 공략
sinbiru
08/30 7516 4
오네쇼타는 여자 쪽이 무표정이면 좋은거 같음
일반
FGFFG0829
08/30 3427 1
[미번][번역요청]RJ01612168NTRレRPG オチカノ-Another- ~僕だけだった皆が他人に堕ちた理由を教えて~
미번
F1_code
08/30 26037 33
마법소녀 실피나 기다리는데
일반
sinwoo9722
08/30 3225 0
꿈에서 유메쨩
동인
나나세마루
08/30 44720 16
게임 실행이 안되는건 무슨 경우인가요
질문
kamasot
08/30 3396 -4
[복구] Übermation 원신 호두 음몽 4K
영상
ages41
08/30 58648 53
게임 손번역 하시는 분들은 일본어를 배우신 분들인가요?
질문
milio
08/30 4627 1
RJ01601409 [구매보급] [버전업] TUNNEL ESCAPE - Fates Entwined 1.08? 26.08.26
미번
gkqisq
08/30 24055 32
[미번][구매보급/번역요청] 마법 소녀 쥬얼리 시스터즈
미번
vite123
08/30 19300 20
최근에 쯔꾸르 달리고 있는데. 나이트메어 나이트가 젤 낫네.
일반
WERSFR
08/30 4339 0
(스포주의)낯가림 보육교사와 14일간 클리어 했습니다
후기 및 공략
oolloojr
08/30 7896 4
영웅전희 레이드 돌리다가 꿀 조합 발견했음.
후기 및 공략
didimo
08/30 7498 6
qwen 3.8 flash, glm 5.3 flash 출시
정보
iwwdi
08/30 7700 1
[AGU]186장)격정의 리비도 4편도 많이 연재 된듯
야짤
헤으응킬러
08/30 11633 12
gpt 루나 전용 한도량 업데이트
정보
iwwdi
08/30 7972 3
미유 이거 패치좀 되고 해야겠노
일반
526791789
08/30 3510 0
복구요청) RJ01051075 크립토의 찢어짐 Ver1.02 3차수정
요청
sang1212
08/30 4102 1
[미번/후원보급]Forest of blue skin R 8/30
미번
F2P
08/30 24094 50
CENDRES
요청
ㅇㅇ
08/30 3414 0
게임 제목이 기억이 안나요
질문
invalidtoken
08/30 3727 -2
네벨 가이스터랑 타락신관 둘중 하나만 하면 뭐가더나을까
질문
whimpercatt
08/30 3556 0