kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12937 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
내가 약해서 그런걸까 히로인들 호감도 쌓고나서 몹한테
질문
whimpercatt
08/30 4165 0
katanashi apollo 지리네
정보
turtle365go
08/30 8782 6
척영의 늑대 세이브파일 안 불러와진다 ㅅㅂ 어카냐
질문
35vtevefvet3t45
08/30 3666 0
약스포) 와 시간용사 왤케 본격적임? ㅋㅋㅋㅋ
후기 및 공략
reconquesta
08/30 7127 4
[미번,번역요청] 고전 게임 몇개 올립니다.
미번
tentacle master
08/30 15929 12
서큐버스 프리즌 유몽귀환 몸 살펴보기 오류
피드백
jonhd
08/30 4737 1
이노센트 도터 같은 게임 추천좀
질문
unleashed
08/30 4026 0
[직번/Dekosuke 18gou/팬스가] 네 남자 내가 좀 가져갈게
동인
BroadRight
08/30 61767 111
서큐버스 프리즌 유몽귀환 타포리 오류
피드백
sacheon
08/30 5112 0
사라의 집 번역하는 방법 아는사람 있음?
질문
35vtevefvet3t45
08/30 4391 0
Electron for RPG Maker MZ 언팩 방법
정보
gamiren
08/30 7679 3
어펜드가 발매될 때 까지 성기사 릿카 아직 남아있는 떡밥을 정리함
일반
roinq
08/30 3635 0
퇴마사 레이나2 꿈속질문
질문
sexcsex
08/30 4845 0
xiangweitudou 영상 모음 복구 부탁드립니다
요청
d3233232
08/30 4881 1
[복구요청] [한국어 자막판】 논짱과 M남 『남자의 시오후키 하는 방법 자○ 챌린지 편』
요청
siriei3j
08/30 5100 1
나와 그녀의 치한생활 이거 휠 조작이 안먹히는데
질문
말트라뮤
08/30 4217 0
AI)블아)아비도스 전원임신 보테배sex
야짤
koreno1
08/30 14314 15
AI) 페이트, 네로 비키니, 해변 야쓰
야짤
무수
08/30 11020 4
【순애】어른 놀이
동인
HoneyWorks
08/30 62071 96
미번,코스케하루히토) 만끽중 6 - 자택편
동인
kjalar
08/30 45707 12
호감도 짤 몇개
야짤
Denia
08/30 16826 29
미번,토야마에이트) 좋아하는애가 알바하는곳이 야한서비스를 하고있다 6(준비호)
동인
kjalar
08/30 43241 15
[복구요청] 정욕의 고식 마사지점 요청
요청
iaruo
08/30 4825 0
아마세 미유 버그 너무많네 ㅡㅡ
일반
konekat
08/30 5575 0
유마즈리 타워편 번역하시는 분 없나
일반
hons
08/30 4291 0
[복구 요청] 계승되는 자의 고독
요청
connag
08/30 4451 1
잭오나인테일 2.3 빈민가 바이커 조건 질문입니다.
질문
allforyou
08/30 4445 -1
오치카노 텍스트 번역 분량이 home 7배네
일반
하츠네미쿠
08/30 5458 9
대사 스킵 키 Alt로 설정 좀 안했으면 좋겠다
일반
Teletubbie
08/30 4303 1
[복구요청][보추] My Femboy Roommate 복구 요청드립니다.
요청
roblga
08/30 5326 0