kone
소미소프트
소미소프트

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

07/19/2026, 16:41:32
일반
12945 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
[요청복구] Esurience 일본풍 미인 소꿉친구와 숨겨진 갈망
복구
뺏기는게좋은걸
08/29 65837 38
최면물 게임추천해줄 소붕이있니?
질문
쁠뿡
08/29 5227 2
(요청)【VR】大江戸とりがーVR!! 〜タイムスリップしたら痴女集団に襲われてVRハーレム地獄?!
요청
anna22
08/29 4651 0
[복구요청] RJ01586313 LOVING DEAD GIRL 러빙・데드・걸 복구 요청드립니다
요청
sang1212
08/29 5315 0
[RJ01549139]상식개변 시뮬레이터 노모화 어떻게함?
질문
checkfake
08/29 5119 0
ai( 시키는 대로 하는 버니 학원 ~거유 인기 그녀들을 갈아입히고 음란한 섹스~
영상
JK
08/29 58522 40
우왕 짱 야하다.
일반
차곡차곡은뚠뚠오늘도뚠뚠
08/29 4629 3
ai( 빛에 타락한 마법소녀는 질X 섹스를 하고 싶어
영상
JK
08/29 65007 83
유니티 모바일로 하는 최선의 방법이 뭐임?
질문
roarr
08/29 4539 0
ballon translator 쓸 때 팁 하나
정보
라비쉬
08/29 14841 4
잭오나인테일 2.3 노예 납품 관련
질문
he1ios78
08/29 4119 0
서큐버스 저지먼트 일반샀는데
질문
poison
08/29 4698 0
Amplected 복구 요청드림다
요청
ロリ巨乳
08/29 5285 1
ai( 달콤달콤 메이드 학원 ~최고급 봉사 10연발~
영상
JK
08/29 55000 38
다키스트 던전 [키메라 팩] 개인 모드 모음집
유틸
5dk2io1
08/29 15977 32
ai( 거유 지하 아이돌의 비밀 영업 ~무대 후 땀범벅 섹스 유출 영상~
영상
JK
08/29 52192 31
데니아 영상 모음(7gb)
영상
Denia
08/29 55448 44
ai( 거유 치어리딩부의 치욕적인 하메도리 유출 사건 ~고문의 미친 기록 영상~
영상
JK
08/29 56869 35
꿈과 술집과 비밀의조교 해본사람들 이거 겜 어려웟음 ???
질문
a123123a1231237
08/29 5001 0
이거 보자마자 머리에 짜릿 하고 신호가 왔음
일반
ㅇㅇ
08/29 4822 3
시골성활 겨울편 시점 전환 방법 질문좀
질문
ntrwhdkdy123
08/29 3499 0
키오스크야 힘을내
일반
JK
08/29 4318 0
수상한 마사지 똥버전 복구 앙망
요청
speed1557
08/29 6507 -1
[버, 청아] ZGRfZGQ= 모음집 3.8GB
영상
우유
08/29 63552 58
던브 스탯 치트패치용 파일
유틸
피가로
08/29 8644 8
버) dd_dd
영상
건더기
08/29 59091 62
동인지 제목 아는 사람 있음?
질문
marinehero973
08/29 4956 1
[미번,구매보급] RJ168533 부치코메☆하이킥! ver 2.0.5 DLC + 여러개
미번
기러기가리거리
08/29 39306 45
[이미지 번역] HOME 일부 이미지 번역
번역
sangun1
08/29 156792 160
스케치 마사지 뿌직뿌직버전도 있지않았나요?
질문
speed1557
08/29 4884 0