kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12921 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
Qos 부류 문신은 대놓고 있거나 덕지덕지 있으면 안꼴리고
일반
ㅇㅇ
08/23 5518 1
존재감없는 여동생 슬슬 해도됨?
질문
루파조아
08/23 7002 -5
그냥 함 밀어야지.
일반
Lenti_Plasmid
08/23 4372 1
이거 원본 뭐임
질문
safwewre
08/23 5530 3
[복구요청] [VJ01000434] [ai번역] 좀더! 임신! 불꽃의 가슴 이세계 젖가슴 메이드 학원!
요청
익명
08/23 9041 2
너넨 장르나 진행방식 취향 아닌데 걍 깡체급으로 인생야겜인거 있냐
질문
ㅇㅇ
08/23 6005 0
개인적 qos?BBC 노꼴 포인트
일반
afe1231
08/23 6320 1
포레스티아 호감도 버그걸린건가?
질문
asdawv123
08/23 7109 -1
바이러스 떡밥은 언제부터 돌았음?
질문
safwewre
08/23 7910 0
[Kyaradain] 쉬운 누나, 제모, 여름
동인
asdfg125123
08/23 112080 102
혹시 짤에 QOS 문신 넣어주는 커미션도 있나?
질문
supersexyguybaby
08/23 7337 0
[보이스코믹][구매보급][한] 제 여자친구와 섹스해주세요2
소리
책먹는망아지
08/23 53933 88
잭오 2.3 뭐가 어떻게 꼬여있는지 감도 안 잡힘
일반
ㅇㅇ
08/23 6898 0
아직 안나온게임 업뎃현황은
질문
doedk39d
08/23 5695 0
난 왜..
일반
Denia
08/23 7297 6
휴... 해킹 당했지만 다행이다
일반
싱클레어
08/23 7879 1
이미지 번역 경험자님들 저에게 가르침을 주세요
질문
gkffkf12
08/23 7565 -5
토미에는 결혼하고 싶어 히로시 진행이 안되는데 버그인가 아니면 조건이 있나?
질문
어흥
08/23 5718 0
본인 바이러스 해킹 논란에 면역인 이유
일반
ㅇㅇ
08/23 7635 7
바이러스 열풍에 멀웨어 돌렸는데
일반
opgg12512
08/23 6789 -1
걍 애드블록은 필수임 이제. 안 하면 병신
일반
망아지
08/23 7161 7
기기로 외장하드 연결해서 멀웨어 제로 돌리면 검사가 되나?
일반
사막바다미어켓
08/23 6361 0
사실 바이러스 걸려도 알빠노인 방법 있음
일반
쿠지락스
08/23 6685 1
post nut 3 마도서 스타트
일반
ENE
08/23 5911 1
그래서 이 바이러스 열풍 언제 끝남
질문
vivy
08/23 6598 2
근데 ㄹㅇ 무섭노
일반
인생망함
08/23 6077 1
본체는 문제 없는거 같은데
일반
lololololololololol
08/23 5236 0
님들 똥겜하지마세요
일반
솔라셀
08/23 8316 11
요즘 바이러스 이슈 터져서 나도 멀제로 돌렸는데
일반
asfmasf
08/23 7532 1
스포) 파마의 무녀 3 뭔가 아쉽네
일반
dorodorong
08/23 7292 7