kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12920 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
다들 바이러스 검사하길래 나도 뭔가 싱숭생숭해서 했는데
일반
chrispypie
08/23 5846 0
스압) 그동안 플레이한 DL 사이트 게임 37개 후기...txt
후기 및 공략
앙카보지섹스
08/23 59253 44
여주 타락물 추천해주실분
질문
foxrain1216
08/23 5148 0
컴퓨터 자체를 깡통으로 보는게 맞음 ㅇㅇ
일반
ramunee
08/23 5441 2
살생부 작성 -완-
일반
bangsanspy
08/23 6735 -2
윈레이터로 유니티는 잘돌아가네
일반
마도카랑손잡고순애
08/23 4161 0
어예 님포 치트메뉴 드디어 상호작용 되네.
일반
alram
08/23 5014 0
[요청복구] 만차율 300% 시리즈
복구
808B
08/23 169316 57
와 이거 좀 꼴리네
야짤
인생망함
08/23 17507 6
이번에 방주 하드 살라는데 님들은 방주용 외장하드 뭐로 삼?
질문
텅텅이
08/23 5398 -1
쿠로이누 질문좀 !!
질문
신사의품격
08/23 4674 0
MV/MZ 실시간 번역기 이번주도 생존신고
일반
mrpls
08/23 10115 17
동인지 제목좀 찾아주세오 부탁드립니다
질문
merchen089
08/23 4118 0
[복구요청] GFF 서클
요청
kinta109
08/23 5351 2
내가 생각하는 모든일본애니에 관한 생각(지극히 개인적인 생각임)투머치함
일반
hikaritoko01
08/23 5392 -8
그 바이러스 사건이 대충 몇일날 쯤에 일어난거임?
질문
Kkk
08/23 6041 0
나의 비참한 인생 << 이거 개꼴리네
일반
ㅇㅇ
08/23 7356 2
[스포][스압주의] 바이오 테크너서 후기 및 여러가지 팁들, 자잘한 공략
후기 및 공략
영기네텃밭도둑
08/23 23497 16
파마의 무녀) 확실히 마망이 딸들보다 감도 좋은듯
야짤
salmon77
08/23 19743 8
[4UU] 환영회에서 만취해 분위기에 휩쓸려 아이 만들기❤︎
동인
요요코코
08/23 106630 67
[Mankai Kaika, Ratatatat74, Laliberte, Mikage, Terasu Mc] [6.07 GB] 업데이트 및 복구
동인
킴찐빵
08/23 124753 140
[번역자막만] "부숴주세요, 주인님♡" 육변기 소망 도M엘프메이드의 모닝 좆밥 펠라, 꼴사나운 오호고에, 목 조르기 진심교미로 실금 절정 【허리 털기♪ 과격 순애 마조 오나홀】
소리
하츠네미쿠
08/23 53549 57
ai가 좋긴 좋구만
일반
댕댕이커여어
08/23 5024 1
바이러스 뒷북 쳐서 미안한데...
질문
Macbyeongsin
08/23 6754 3
부녀근친vs모자근친
일반
maternal033
08/23 5193 3
라이프가드 모바일로 안 되서 아쉽네..
일반
익명
08/23 5833 0
로젤리프 엔딩봤다
일반
c9ej453
08/23 4540 0
[직번] [R-man] 모브 얼굴 이지만 몸매의 자기주장이 강한 배구부쨩이 선배에게 특별지도를 받는 15페이지 만화
동인
maha1004
08/23 109800 94
sao2첨해보는데
질문
afe1231
08/23 7594 0
잭오 할때마다 고민되는거
일반
ㅇㅇ
08/23 6082 1