kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12954 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
란스 4 복구 요청글 쓰기 전에 물어보려 합니다.
질문
plpo00900
08/29 3916 -2
AI) 블아, 히후미, 수줍은 엉덩이
야짤
무수
08/29 15007 8
[AI번역/3차 수정] HOME 이미지 번역
번역
allon
08/29 172898 217
gaptax 서클은 신작 안나오나?
질문
zzeta
08/29 3193 1
도미갬 존나 꼴리네
일반
murako33
08/29 3589 0
[복구요청] [AI번역, 편의성패치] RJ01217708 잠입! 의혹의 세뇌 SEX 컬트 종교 v250122
요청
dasfff543
08/29 4670 -3
그냥 복구 42종
복구
Cheat
08/29 93055 119
DL 좋네
일반
JK
08/29 5007 1
치한의극한, 진치한의극한 공략 (수정)
후기 및 공략
머겅머겅
08/29 12193 8
ai(농~~~( 여름빛 음부와 비밀 촬영회
영상
JK
08/29 56938 40
구매보급,번역요청) 亜人少女~異能少女との同棲生活~
미번
a159700-01
08/29 31770 40
OC
창작
chubichubii
08/29 6342 8
용병의 모험 그렇게 재밌음?
질문
safwewre
08/29 5199 0
약?스포) 프린세스 시너지 엔딩 봄
후기 및 공략
silk011345
08/29 13782 4
[번역요청] 나의 히어로 에로토피아~HERO 빌화 계획~
요청
megamans
08/29 6362 0
튀김토마토 서클 신작 보급예정
일반
뺏기는게좋은걸
08/29 10721 19
[ai/44Gg44KL44GY44KD44KTTUM=]마법소녀에게 벌 주기
영상
뒤치기는 뒤에서
08/29 61482 40
HOME 이미지 gpt 초벌번역은 다했는데
일반
allon
08/29 7728 9
[구매보급,영문판,apk] Tunnel Escape FE
앱
레임
08/29 26444 33
[요청복구][RJ148257][RJ157136][RJ203624]치한의 극한 시리즈 3종
복구
dmol2279
08/29 76029 49
역식질 테스트용
일반
BroadRight
08/29 4963 5
[ai/44Gg44KL44GY44KD44KTTUM=]오크의 교배 영상
영상
뒤치기는 뒤에서
08/29 55534 33
아세로라(あせろら)에서 만든 게임은 정말 재밌는데
일반
bexter1234
08/29 4969 1
이런 동음 비슷한거 아는 사람 있음?
질문
q1-w2q1-w2
08/29 3472 0
언홀리 메이든, 카린의 형무소같은 겜 추천점..!!
질문
maybewo
08/29 4086 0
노예 계약물 존나 꼴려
야짤
murako33
08/29 22726 17
탈의마작 단점
일반
!%#2;
08/29 5000 3
home 세이브 경로가 어디지?
질문
tkgom
08/29 5322 0
셀레녹시아 10월쯤에 예고나 정식체험판 생각중이라고 하네
일반
888481616
08/29 3847 1
Traveler Inn Tales 갤러리 찾고잇느데 어딧음?
질문
skywing16
08/29 3764 0