kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12917 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
[복구요청] 알름 모험단의 미궁 탐색기
요청
qnfrdmsekf
08/23 4680 -1
[복구요청] 알름 모험단의 미궁 탐색기
요청
qnfrdmsekf
08/23 4909 -1
[AI번역/미검수] 세라복 미인 유부녀 아헤아헤 문 + 모바일패치
번역
쿠루쿠루
08/23 255274 111
Halcyon Days 이거 H는 어케 하는거임?
질문
vvwvwvwvvwwvwv
08/23 5554 0
여동생 동거생활 판타지 이어하기 질문...
질문
porudnekl
08/23 6922 0
어흐어흐마
창작
chubichubii
08/23 22009 30
육성 시뮬류 야겜 추천 좀
질문
lemonbul
08/23 8530 3
ㅅㅂ 나도 당할뻔 했네
일반
밥먹고옴
08/23 7165 0
「마장영희 셀레녹시아」 제작 보고 76 스트리밍 이벤트 구현 등
정보
iahue4r
08/23 36344 36
펌) [Nanahara Fuyuki] DECOY*DAISY
동인
morgan911
08/23 113488 126
잭오나인테일 육성 질문
질문
cck9084
08/23 7660 0
[구매보급] [버전업] RJ01414102 이상한 형무소와 음욕의 지하 미궁 ~빈틈투성이인 나나의 H한 프리즌 브레이크~ Ver.1.1.2 26.08.23
미번
gkqisq
08/23 62355 45
[michiking] 서큐버스 성도회 문질문질 집행부 3
동인
lostro
08/23 103066 79
[구매보급] [버전업] RJ01217604 건방진 딸과 보이지 않는 유령 Ver2.7.2 26.08.22 "DLC없음"
미번
gkqisq
08/23 51706 30
뭔가 의심스러운 파일이 있다면 실행하기 전에 꼭 해야할것
일반
element22
08/23 6635 0
이와라 나만 안됨?
일반
snsyah00
08/23 4894 0
[구매보급] [버전업] 빛의 프린세스 티어리 프리즘 1.02 26.08.22
미번
gkqisq
08/23 52935 46
Exe파일 실행기록이 남는 폴더도 있구나
일반
dd
08/23 5091 0
회상방이 세계관에 녹아들어있는 겜들이 좋더라
일반
ㅇㅇ
08/23 6717 1
My maid dreams of electric sheep v0.9 업데이트가 늦어진점 죄송합니다.
정보
kkkkkk0909
08/23 22585 9
d3d9.dll 백신 감지된거면 번역에 쓰는 크랙파일 이슈일 확률이 높나
일반
element22
08/23 5376 0
바이러스 나도 걸렸나 검사했더니
일반
보태배는 사랑
08/23 6917 2
[요청복구] My maid dreams of electric sheep 0.8.9 [deep번역,일부손번] apk번역 버전 포함
복구
kkkkkk0909
08/23 168595 55
[기계번역/미검수] 모모 선배와 야구권
번역
괴물나방
08/23 236932 70
회상방 처음부터 다 열린 겜은 성취감이 없네
일반
할머니
08/23 5959 -1
[미번] HOME (v26.08.17) 체험판
미번
kkkkkk0909
08/23 53621 42
[구매보급]쿨한 후배 방송부 여자의 비뚤어진 애정 표현
소리
이름뭐하지
08/23 50526 52
[복구요청] My maid dreams of electric sheep 0.8.9[Feat. Zenpy]
요청
이서책
08/23 8333 0
44G944KL44Gb44KK44KT 작가 과거 영상 음성 추가 2
영상
abbaca
08/23 135762 100
뭔 게임이었는지 찾아주실분
질문
sonnim
08/23 5774 0