kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12930 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
마장영희 세레녹시아는 올해 12 월 31 일에 출시해도 기적 아닐까?
일반
하키나
08/30 4120 0
우주 산업이나 외계행성 탐험에 되게 부정적인데
일반
codegreen
08/30 3836 0
나는 몸 쓰는 동아리가 좋다
일반
manaeli2825
08/30 3643 0
아 섹스 실습섬 세이브 날렸다
일반
paromote
08/30 3907 0
ai 따로 탭 만드는 건 좀 낭비인가
일반
nanairo
08/30 11156 31
Home 후기 + 짧팁
후기 및 공략
jokerkamil
08/30 21128 32
vp 세레나 죄책감 ㅈ되노 ㅅㅂㅋㅋ
일반
엔하리그베다나무
08/30 6339 -2
[복구요청] 나를 사랑하는 3명의 서큐버스 복구 부탁드립니다
요청
simsim12
08/30 5346 0
rec민감 존나높네
일반
bliuneos
08/30 4663 0
[복구요청] NTR아이돌 -꿈의 약속 2.05 복구 부탁드립니
요청
nonename
08/30 6035 0
[AI][미검수]아마세 미유를 전국대회에 데려가줘! v1.0.0
번역
아르
08/30 126369 156
[복구요청] 루텔라리아의 봉인
요청
강조
08/30 4767 1
추남 노숙자에게 당하는게 ㄹㅇ폭력적으로 꼴릴때가 있음
야짤
ㅇㅇ
08/30 15459 9
[복구요청] RJ01077239 감각차단 함정 시뮬레이터
요청
aninumoo
08/30 5057 -2
[복구요청] 【VR】초만원 전철 ~역에서 발견한 귀여운 아이에게 몰래 장난~ RJ01290571
요청
illillillilli
08/30 5840 0
double exposure 같은겜 없음?
질문
아죠씨
08/30 5445 2
[Clover] 공유여친 1 - 4 (3, 4는 미번)
동인
tldifix
08/30 72139 27
포켓몬 망가 찾아주실분 있나요 ㅠㅠ
질문
dddddddas11334
08/30 4784 -3
주말동안 뭘한거람
일반
aLdpSrLS
08/30 5288 1
미번,펌) glty07 ゴル 부장과 세이버가 코스프레 H 하는 이야기
동인
너구리
08/30 65848 20
Beta-sama no Amaama Chikubi Name Tekoki
동인
신사의품격
08/30 62668 27
오랜만에 백신 돌렸는데 멀웨어 2개가 나오네
일반
Bluebe
08/30 4447 0
종말의 얼터에고이즘 개조+dlc
질문
satam1212
08/30 4609 0
[요청복구] 퇴마사 카오루 ~마조인걸 들키면 안 되는 인습촌~
복구
tktpqjvkffh
08/30 60218 35
혹시 dawalixi 작가 젖소 나들이 코스 클린본 아는 사람 있냐
질문
49i1jb
08/30 6358 0
【순애/노모】면허 합숙에서 운명의 사람을 만난 이야기
동인
HoneyWorks
08/30 80416 102
영포티 직장인 판타지
동인
무이이야
08/30 74274 67
[구매보급,번역요청] [고어,료나] RJ356059 귀인 제국 ~반귀의 여자를 강O하고 동료를 만들어라~
미번
쁠뿡
08/30 28664 22
이겜은 모바일로는 절대 못하나
질문
judar25
08/30 5058 -1
[Poron] 흑갸루와 조숙한 꼬맹이의 엣찌한 숙박회
동인
ed123
08/30 56770 17