kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12910 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
여주물 야겜하다가 문득 드는 생각
후기 및 공략
치사
08/22 64820 71
렌피는 예전부터 악명높긴햇는데 이게 터졋네
일반
ekqljkr
08/22 7719 4
알미오시온의 의술사 한 줄 후기
후기 및 공략
늙고살찐개
08/22 16176 1
[AI번역]秘密企划-出行
동인
doumaro
08/22 128981 154
뭐? 바이러스가 터졌다고??
야짤
849871
08/22 24193 4
트렌스 피메일 판타지 레거시 왜 사람들이 다 도망갔는지 이해가 간다
일반
kokori
08/22 8488 9
You Let The Next Hero In 1 깨는법 아시는분?
질문
Redturltle
08/22 7089 0
ie 모음
동인
k8625
08/22 196175 951
나는 폰으로 다 하는데 폰은 뭐 없나
질문
e8dh4j3ioodj
08/22 8268 -1
[검수/손번역. 근친패치 / ai 렌파이] Obsessed Lucy(루시의 집착) ver. 1.01 (완결)
번역
hghe21tg
08/22 312039 276
요즘 맛있는거 많다보니
일반
기러기가리거리
08/22 7229 3
나중에 ai가 진짜 기깔나게 발전하면 야애니는 그냥
일반
쓰던걸갖다가
08/22 7342 -1
[미번/구매보급/버전업/번역요청] RJ01550550 프린세스 시너지 v1.0.33(2026.08.22)
미번
어스리
08/22 57510 69
내가 본 가장 충격적인 짤은
일반
마법우엉
08/22 7108 3
[복구] くすりゆび
영상
hanisearcher
08/22 121221 92
[미번,구매보급,번역요청] FallingUndercover-NoxSyndicate EP.10
미번
sisisitt
08/22 53581 62
해킹같은건 전략적으로 방어해라
일반
할머니
08/22 6765 -5
충격적인거 봤는데. 공유하고싶은 마음이 들어
일반
차곡차곡은뚠뚠오늘도뚠뚠
08/22 6781 3
[미번,번역요청] 고전 게임 몇가지 올립니다
미번
tentacle master
08/22 44953 37
[복구]ⒶⓏⓃⓎⒶⓃ의 충동은 통제 불능!! Part 2 [V3.0]
영상
hanisearcher
08/22 131171 101
FR34KS 프릭스 라는 렌파이 아는사람?
질문
WERSFR
08/22 8085 0
[복구][자체자막]RJ01205539 [ドールハウス] re:START 돌하우스 업스케일 영상
영상
hanisearcher
08/22 138774 142
[Sajipen] 역할극 Girl
동인
ㅇㅇ
08/22 119305 117
퇴근하고 오니까 갑자기 뭔 바이러스 이슈 터져서 깜짝 놀랐네
일반
어스리
08/22 9441 3
딸을 치고싶은데
일반
차곡차곡은뚠뚠오늘도뚠뚠
08/22 6448 0
[복구요청] RJ01603913 빼앗긴 소녀 레이라~세계를 위해, 이 몸을 바치는 의식 계약~ 이미지번역
요청
k0424
08/22 8793 1
갑자기 왜 멀웨어 떡밥 돌고있나요?
질문
Dexa
08/22 8764 3
사실 나는 이미 해킹당해서 좆됐음
일반
하츠네미쿠
08/22 8360 1
바이러스토탈 질문
질문
Kkk
08/22 6360 1
담배고양이
야짤
쩝냡
08/22 20735 7