kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12951 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
NTR기사 해피엔딩 있나요?
질문
takatomo9450
08/24 7966 1
포레스티아 1.4.4 하렘 패치 버그 질문
질문
asdawv123
08/24 7593 0
【복구요청】ROBF 시리즈
요청
마법소녀유화
08/24 6018 0
어디 야겜 서클에서 프리코네 야겜좀 만들어주면좋겟다
일반
신사의품격
08/24 6092 0
파안연 서클 신작 오늘 발매
정보
qmdl123
08/24 24496 9
[미번/구매보급] RJ430948 & RJ01364390 트랜스 피메일 판타지 Nexus(넥서스) & Legacy(레거시) 컴플리트 에디션
미번
어스리
08/24 49173 55
cg 추가 업데이트 한다고 했던 아이만들기 온천 근황
정보
페비
08/24 26608 15
마성의그녀와 변태도 이거 올리면 주말 외출 호텔열림
일반
신사의품격
08/24 9364 3
거울음마 1.98버전까지 나왓네
일반
신사의품격
08/24 5660 0
RJ111240 사실은 에로했던 동화 빨간망토 후기
후기 및 공략
min-0101
08/24 24347 12
[복구요청] RJ01391107 호시즈키 아스나와 음욕의 지하가-append 노모버전
요청
rkddkwl2
08/24 8931 0
하 거을음마 하다가 스토리 꼬여서 떄려침
일반
신사의품격
08/24 5113 0
손번역중인데 빡새네
일반
cbdpffhj
08/24 6426 9
이번에 V5 나오고 만들고 있는 시시아 망가
야짤
오랜친구
08/24 36028 39
야겜 뉴비 이것저것 찍어먹어보고 후기
후기 및 공략
eldruin1728
08/24 29630 2
던브 통합모드 파일 뜯어보니까
질문
didimo
08/24 5763 2
혹시 이 TS물 아는 사람 있나
일반
moews
08/24 6732 2
ai) 화장실
야짤
JK
08/24 23508 19
[후원보급,AI] 44K144Kv44K744K55peo5ZGz 모음집
야짤
Jackal
08/24 32269 44
청아)페이트 잭 더 리퍼
창작
이상한 사람
08/24 13266 9
크레아스트러글 처녀엔딩만 2번봤다
후기 및 공략
mozumozu
08/24 15408 5
방주정리 음성정리하니까 확실히 많이주네
일반
alcor
08/24 5369 3
아마도 다음 이미지번역 작업 예정
작업현황
Neko_Aqua
08/24 21495 24
게임 내용만 보고 이름 알려주실 분... 제발.
질문
scl5801
08/24 7981 0
[복구요청] RJ01062134 착유 클리커
요청
guric
08/24 5595 2
모든 서브 리스트 없어진게 착각이 아니였구나
일반
페비
08/24 6155 4
취업하니깐 너무 많이사고있네
일반
쁠뿡
08/24 6071 6
미번)ai) 연인과 마작패: 마작부 설립편
미번
JK
08/24 43682 26
[AI번역/앱포팅/미검수] 정욕의 고식 마사지점 1.9.11ver
앱
쿠루쿠루
08/24 54930 76
DL사이트 VPN 없이 접속하는 거 어렵네...
일반
천목지성
08/24 6463 1