kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12965 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
시퀄 할로우월드 질문
질문
gduhan82
08/25 5244 0
NTR 백합 게임 진행 30
정보
auo-cast-off
08/25 27399 11
[Oosawara Sadao] 대마인 고급 핑크 살롱 출장
동인
멜신
08/25 119549 177
[복구요청] RJ146843 마그멜의 창녀
요청
뺏기는게좋은걸
08/25 9800 2
[수정][공식번역]VHMV-230730[원본 버전 및 개발현황 공유]
번역
liopu
08/25 279739 192
이게 무슨소리니...?
정보
auo-cast-off
08/25 26732 17
[복구요청] 아들 동급생의 노리개가 되는 어머니들
요청
asd45221
08/25 8826 7
루루의 마을 만들기 질문이요(코하쿠)
질문
4389eeow232
08/25 7523 0
[복구요청] RJ01577275 人妻上司の分からせ方 유부녀 상사 참교육
요청
swagman
08/25 6076 1
[ai번역, 미검수, 번역파일만] 청순한 JK는 집주인의 오나홀이 된다 ~동정 남자친구 몰래 NTR당해 조교받는 30일간의 성노예 생활~
번역
cattower00
08/25 304977 212
[복구요청] Ai 들켜버린 출장녀
요청
puha1004
08/25 6401 0
NTR OFFICE 선택지 질문좀
질문
medlar
08/25 6301 0
パパ活ダイアリー Day1.サキ
영상
안아줘요
08/25 118596 138
마성의그녀 ed 3 4 5
일반
skssksskss
08/25 6918 4
[요청복구] 구동휘정 쿠르타 아메테스
복구
hopec
08/25 133051 40
[Tamarun/청아] 섹시 세이아라 미안하네 (블루 아카이브)
동인
ㅇㅇ
08/25 113853 94
펌) 함락 당하는 기사이야기 3
동인
kjalar
08/25 101996 63
[복구요청] 꺾이는 꽃을 향한 트로이메라이
요청
sksmsalstjd
08/25 7220 8
실비보험 복복복구 재업
복구
little Demon
08/25 127849 49
봉주희 ver3.41A 하피세자매 버그수정
유틸
dlgotmd626
08/25 14310 14
[복구요청] ntrpg, ntrpg2, ntrpg2 마개조
요청
suiheisen
08/25 7658 5
종말의 얼터에고이즘 dlc 지금 처음 해보는데
일반
thisispower
08/25 6730 -1
타락성흔) 다회차 게임 너무 힘들어
일반
kamasot
08/25 6635 1
[복구요청] [손번역] Succubus Raid
요청
hyun0607
08/25 6952 2
소붕이는 자러가
일반
신사의품격
08/25 5346 0
마나카 모드 넣을 시 휴대폰 사라짐
질문
qqwwer
08/25 6533 0
BBQ daisuki
정보
인생망함
08/25 24072 14
GPT 5시간 롤링 롤백기념, AI 순위 최신화 8/26
정보
iwwdi
08/25 18982 7
로리보지 참교육할려고 했지만
일반
unknown1357
08/25 6909 2
133. AI, 셀레스포니아) 전투 후 마력이 떨어진 셀레스포니아
야짤
miso5
08/25 54655 38