kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12940 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
진짜 로리쇼타파 구분하는 방법
일반
unknown1357
08/23 5656 3
메시아 오브 로리타 중후반일기
일반
dkak332
08/23 4712 0
[복구요청] RJ01396599 アカネの冒険 아카네의 모험
요청
기러기가리거리
08/23 5351 4
블리치 천년혈전 오리히메가 진짜 잘 뽑혔단 말이지...
일반
odorwolf
08/23 5612 5
동인 야겜은 제작비 얼마 정도 들어감??
질문
전여친
08/23 5897 -3
게임제목찾고있습니다 ㅠ
질문
samepeoplee
08/23 4179 0
아인소녀 뭔가 애매하긴했는데
일반
powerofh
08/23 4877 0
드래곤디아 ctrl 스킵 불가
정보
epiphyllum
08/23 21201 4
아니 왜 자기 일에 무관한 사람들을 끌어들이는 거야
일반
asljkajksafj0293213
08/23 5500 1
전원 네토라레 2 이거 캐릭 한번 죽으면 부활안댐?
질문
whimpercatt
08/23 8455 0
[NTR] 수학여행 한정 시리즈 모음
동인
HoneyWorks
08/23 139513 121
(노모) [Croriin] 요정의 비밀
동인
없
08/23 124935 116
개인적으로 개추는 크게 와닿지 않던데
일반
할머니
08/23 6891 -9
[구매보급][전편 오호고에]하이 스펙의 다우너 쿨 소꿉친구와 무인도에 표류한 결과, "오호고에절정 성 처리도구 정도의 이용 가치밖에 없다"라며 쓸모없게 인정되어 버렸다... ...?
소리
이름뭐하지
08/23 54302 68
【순애?/NTR?】이세계 전생 용사 요시다 하루오는 사랑을 한다
동인
HoneyWorks
08/23 128102 97
욕탕에서 남자들에게 희롱당하는 왕녀님
창작
unknown1357
08/23 12247 10
【근친/노모】우리들의 불끈불끈 캠프!
동인
HoneyWorks
08/23 119004 72
좆같은광고 존나 오네
일반
인생망함
08/23 5698 0
궁금한게 있는데 스팀여름이나 가을 할인때 야겜들은 할인폭이 크지 않지?
질문
black-z
08/23 5274 0
[2차 as, 요청번역, AI, 미검수]변태 토끼 두건 최신버전 Rabbit Hood [2026-08-12]
번역
iwwdi
08/23 245330 84
ㅅㅍ)파마의 무녀3
일반
엘프대마인
08/23 7306 4
나의 비참한 인생 NTR남 생긴거랑 대사가 ㅅㅂㅋㅋㅋ
일반
뺏기는게좋은걸
08/23 8252 2
전원 네토라레2 ntr 후기
후기 및 공략
gmrvnd147
08/23 26392 12
던브 제일 편하게 미는 방법 연구중
일반
fusbriwidhei32
08/23 5051 0
전라로 사죄하는 여자들
동인
나나세마루
08/23 104797 32
크레아 스트러글 별로였음?
일반
rptmr1
08/23 7639 0
크레아 스트러글 참 재밌게 했는데
후기 및 공략
rptmr1
08/23 18327 3
굴욕과 수치와 성희롱
동인
나나세마루
08/23 100448 35
Tenants of the Dead 의상, 갤러리 해금하는법좀요
질문
papapaya5
08/23 5735 0
미번 포저 가족의 미친 성생활 Akaimelon
동인
uzaki
08/23 99554 43