kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12953 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
[복구요청]직장 판타지 (Workplace Fantasy) DLC2 v1.3.5.3 +DLC2
요청
dnkflwodnkl22355
08/29 3508 0
마나리는 물속 미만잡이네
야짤
하츠네미쿠
08/29 15139 5
[복구 요청] RJ01475962 하해탄 - 도성의 전설
요청
dnkflwodnkl22355
08/29 4557 2
포레스티아 이거 개킹받네
일반
deliciousibo
08/29 3192 1
게임말고 cg집은 얻을수있는곳 없나
질문
o0o0o
08/29 3300 0
번역요청) [Syunichi] C107 오마케 본편 이후
동인
ㅁㄴㅇㄹ
08/29 69502 14
[8/29] 오데트의 섹스 플랜 Day 1 (원신)
영상
Bremerton
08/29 65221 68
멍머이의 게임 개발일지 (2)
창작
inu
08/29 6671 8
여동생이 빌린 돈을 몸으로 갚겠다고 말했다 오토모드+폰트 수정
번역
fbeurb1290
08/29 156668 146
[요청복구] 최애 VTuber의 비밀 멤버십 한정이 너무 대박이었다 ~수위 높은 진짜 에로 ASMR 방송, 오프파코 인증을 곁들여~
영상
삐리빵뽕
08/29 64124 49
내가 방주 풀게된 계기
일반
RED LOTUS
08/29 14643 45
[미번/버전업] RJ01463643 Nakara v1.1 (DL버전)
미번
kkkkkk0909
08/29 33897 38
알미오시온의 의술사 이거 치트엔진 사용 가능한가요?
질문
maxbroani
08/29 4292 1
(버전업/AI번역/검수) RJ01303046 메이드 in 메이드 v1.3.1
번역
craven
08/29 142677 96
AI) 인생 최애캐로 NTR, 능욕
야짤
카제가토오루
08/29 28280 39
[복구요청] [RJ01590355] 프리메모 Pretty Memories CAS 버전
요청
qwertywowsans
08/29 4680 0
외장 ssd 2TB
일반
SML
08/29 4065 3
[복구요청] RJ01107130 너에게 가르치는 야한 일
요청
qwertywowsans
08/29 4086 0
[미번/번역요청]거대엉덩이 팔척 소년 기담 -중-
동인
아돌
08/29 67679 6
[직번] 미파이 코스프레
동인
Yuzu
08/29 76329 27
아 2차 수정글 써야되네
일반
allon
08/29 4222 0
[구매보급][미번] RJ01199138 도스케베 트랜스 학원~내가 임신시키는 파라다이스~
미번
쁠뿡
08/29 32439 25
[복구요청] [RJ01542346] Succubus Hunt 스팀 노모판 ver.1.52
요청
sdfsdfsdfsd
08/29 5592 3
햇살속의 리얼 펜장난 질문
질문
5keward-more
08/29 4144 0
릿카 한글판 샀는데 노모 패치는 없나요?
질문
mtt920
08/29 4867 0
보급글 쓰다가 문득 든 생각
일반
뺏기는게좋은걸
08/29 13383 51
욕정 하숙집 중간 후기(중간까지 느낀점)
일반
phantom0to1
08/29 6083 1
[복구요청] 청아) 버) dd_dd 5.29~
요청
cypher
08/29 6385 0
요청복구 9개+a
복구
r4gsdrg
08/29 90190 107
『마장영희 세레녹시아』 제작 보고 78 모브 야한 이벤트 & 야한 장면 관련 작업도 막바지
정보
iahue4r
08/29 19347 26