kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12912 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
개X발 ㅋㅋㅋㅋㅋㅋ
일반
니끼
08/30 4534 3
펌,인도커리) 약혼자의 자매는 외모SSR, 성격은 최악지옥인 에로댄스여자2
동인
kjalar
08/30 23886 39
(청아) 꾸준 연필 37주차
창작
지나가던사람
08/30 6142 17
아 home 조이플로 돌리다가 찐빠남
일반
KLY
08/30 4568 0
[복구 요청] 교배 도시에 어서 오세요
요청
hamcon
08/30 5421 0
최근 느끼는건데
일반
09avi4
08/30 4425 0
하고싶은 야겜이 쌓이고 있다 비상
일반
aagobe
08/30 4796 0
고블린 둥지 이거 버근가??
질문
오픈할배
08/30 5199 0
야겜 찾아요 ㅠ
질문
startyo
08/30 3979 0
드디어 나의 성저체성을 알았다. 난 마조 였던것이다.
일반
차곡차곡은뚠뚠오늘도뚠뚠
08/30 5249 0
어흐 여친최면 2편도 마저올라왔구나 ㅋㅋㅋ
야짤
kjalar
08/30 9870 8
님포 완성될때까지
일반
차곡차곡은뚠뚠오늘도뚠뚠
08/30 4683 0
Traveler Inn Tales 0.99 갤러리 코드 아시는분?
질문
kuang0321
08/30 4433 -1
변태 토끼 두건 질문
질문
greateast
08/30 4726 0
메이드와 H와 마이홈같은 게임 추천좀
질문
하츠네미쿠
08/30 4477 0
[기계번역] 마조 자위 입문 ~자, 딸딸이를 시작해보죠!~
영상
ejjsbs
08/30 22795 26
[구매보급,자체번역,료나] RJ01168443 버려진 아이
번역
쁠뿡
08/30 32049 38
미번 망가 하나 찾고 있습니다..!
질문
kelfrog
08/30 3921 0
[청아] アブジャン 신작 RJ01678278
영상
교미의요정
08/30 21502 20
야한짓 하는걸 은유하는 묘사 개좋다
일반
sakae
08/30 4649 4
님포 세이브 덧씌우기 안되네
일반
kamasot
08/30 3279 0
아마세 미유 이거 H-데셍 이벤트는 어케함??
질문
gandaing
08/30 3466 0
관리인 엿보기 뭔가 살짝 아쉽네
후기 및 공략
dpgutlqkf
08/30 5751 4
아득한 세레스피아 2.0 추가컨텐츠 어디로 가야 하나용
질문
tuuuy
08/30 3570 0
몰디브로 응석받이 여름편 하고 있는데
질문
asdf2222
08/30 3437 0
전국란스 원숭이 죽이기 하는데
일반
gg00dd00ss
08/30 3727 0
길들이는 마사지 아린편 정발은 언제할거같음?
일반
megamans
08/30 4115 0
제작 일기 ①「마차 안에서는」전투 시스템과 캐릭터 소개
정보
라임
08/30 7920 15
[복구요청] 수수 (명조)
요청
ete-bot
08/30 4625 1
HOME이나 슬슬 들어가볼까
일반
인생망함
08/30 5034 0