kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12926 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
[직번]V팬의 절단면 2026 여름
동인
돋돋돋돋돋
08/30 59207 47
[복구요청] RJ159285 TREASURE HUNTER 마이 탐색형RPG ~전설의 보물~
요청
dmsgktn13
08/30 5563 0
[직번]V팬의 절단면 2025 겨울
동인
돋돋돋돋돋
08/30 52795 38
[미번][Guilty Dash] 여체를 탐하는 접대여관
미번
돔마
08/30 21518 17
멜론에만 올라온 동인지를 공유하는 커뮤니티도 어딘가에는 있지않을까
일반
fodselgeburt
08/30 4189 0
[직번] 선배의 오나홀에 타락한 그녀
동인
sgdvl
08/30 54421 37
[요청복구][RJ219794] Depravia-Egrigori 복구
복구
k704614
08/30 47399 26
히토미 질문 하나만 드립니다
질문
강조
08/30 4338 0
【하렘/근친/순애/노모】야한 기분 되게 해주는 APP ~누나와 나 여동생과~
동인
HoneyWorks
08/30 56813 75
스팀 야겜이 생각보다 '야'가 약한 이유에 대한 뇌피셜(펙트체크함)
일반
kknd
08/30 5474 9
이나리 압축파일 백업해놓게있었네
일반
신사의품격
08/30 3449 0
home 이거 생각보다 그리 갓겜은 아닌듯
후기 및 공략
remille
08/30 8989 7
[알림] 신 방주 털이 01-01 업로드 완료
복구
ㅇㅇ
08/30 48966 44
[손번역/검수]서큐버스 프리즌 ~유몽귀환~ 2차 오류 수정중
번역
cbdpffhj
08/30 105093 274
Mr. No Face Booty Bounce Sex 🔞🥵
영상
참새
08/30 57770 84
금지된숲 저거 리메이크버전말고 원조는 완결났던가
질문
김코라
08/30 3797 0
[직번]V팬의 절단면 2025 여름
동인
돋돋돋돋돋
08/30 52920 39
[복구요청]저속해지는 공주 루시아 이야기 Ver.2.06 손번역+노모패치
요청
azezazazezaz
08/30 5185 0
[반영구] 신 멸망 방주 털이 복구 01 - 01 업로드 완료
복구
ㅇㅇ
08/30 66632 75
지극히 매우! 주관적인 내 갓겜 List
후기 및 공략
jokerkamil
08/30 10528 3
아야세 미유 1.0 드디어 나오맜구나....
일반
warawararara
08/30 5111 4
드디어 끝났다.
일반
cbdpffhj
08/30 3645 3
[구매보급,미번,번역요청] RJ01581737 Succubus&Judgement
미번
issslam
08/30 23877 24
만약 크룸만 다운로드 속도 느릴때 대처법
정보
qeqeqeqe
08/30 7844 2
[복구 요청] 카바씨의 즐거운 투병 생활 UC
요청
lkjlkjlk
08/30 4499 5
[요청복구] 너스콜 경비원 AI개조모드
복구
rucie99
08/30 43710 38
히토미 하나만 찾고싶어요
질문
hjlsh9
08/30 3298 0
오치카노 어나더 이미지 9860장이야
일반
하츠네미쿠
08/30 4156 2
[일부 요청복구] BLACK PANDA 서클 작품 4개
복구
Nate Higgerson
08/30 42891 32
minimax h3 무료 이용
정보
iwwdi
08/30 8266 4