- Python 82.7%
- Dockerfile 4.9%
- Hurl 3.4%
- jq 3.3%
- Makefile 2.6%
- 기타 3.1%
| 파일 이름 | 최신 커밋 메시지 | 최근 커밋 날짜 |
|---|---|---|
The Grafana GPU panels stopped updating because the collector scraped xpu-smi from the serving container. intel/llm-scaler-vllm:0.26.0-b1 ships xpu-smi 1.3.6, whose flat device_level schema does not match the rich schema the parser expects, so every run failed with rc=1 and the gpu_server_xpu_* series vanished from the textfile. Collect from a dedicated container instead: run the digest-pinned vllm/vllm-openai-xpu image with --entrypoint xpu-smi and --device /dev/dri:/dev/dri. The privileged flag is required; without it xpu-smi omits the utilization section entirely. --pull=never keeps a missing image from stalling on a multi-gigabyte download, and each run clears a stale container of the same name first. Failures now report the exception and the docker stderr on stderr so the journal explains the cause instead of only status=1/FAILURE. Metric names, labels and units are unchanged, so the dashboard needs no change. Adds a role task that pulls the pinned image and updates the collector tests and static validation for the new argv and image pin. Verified on ubuntu-gpu: the unit reports success, the textfile has collector_success 1 with 2 GPUs x 12 series and both pci_bdf labels, and VictoriaMetrics reports a fresh last-success timestamp. |
||
| benchmarks | ||
| containers | ||
| inventories | ||
| playbooks | ||
| plugins/become | ||
| profiles | ||
| roles | ||
| tests | ||
| .ansible-lint | ||
| .gitignore | ||
| .yamllint | ||
| AGENTS.md | ||
| ansible.cfg | ||
| Makefile | ||
| README.md | ||
| requirements.yml | ||
ubuntu-b70 LLM server
ubuntu-gpu(Ubuntu 26.04, Intel Arc Pro B70)을 재현 가능한 OpenAI 호환 LLM 서버로 구성한다.
모델별 정적 Compose 프로필이 image digest/ID, 모델 revision과 체크섬, vLLM 실행 인자를
소유한다. 현재 제공하는 프로필은 qwen-3.8-27b, gemma-4-12b, gemma-4-31b다.
Gemma 4 12B는 두 GPU의 DP2, 나머지는 GPU0의 TP1 OpenAI 호환 API로 배치한다.
최초 설정
.vault_pass와 암호화된 Vault는 초기 부트스트랩에서 생성된다. .vault_pass는 절대 커밋하지 않는다.
sudo 비밀번호를 입력할 때만 다음 명령을 사용한다.
ansible-vault edit inventories/group_vars/all/vault.yml
vault_ubuntu_gpu_become_password의 빈 문자열을 실제 sudo 비밀번호로 바꾼다.
Grafana Alloy가 중앙 VictoriaMetrics에 인증해 지표를 전송하도록 같은 Vault에 GPU 서버 전용 telemetry token을 추가한다.
vault_gpu_server_telemetry_token: <GPU server metrics-write token>
실행
make install-tools
make install-requirements
make models
make apply MODEL=qwen-3.8-27b
make apply는 MODEL을 반드시 요구하며 내부에서 verify → ping → check → apply → test-api를
순서대로 실행한다. 모델과 image를 현재 서비스를 유지한 채 먼저 다운로드·검증하고, 새 API가
정상화되지 않으면 이전 Compose를 자동 복원한다.
API 주소는 http://10.132.245.37:8080/v1이다. Bearer token은 Vault의
vault_llm_api_key이며, 평문 확인이 필요하면 ansible-vault view를 사용한다.
운영 설정
qwen-3.8-27b: Intel llm-scaler 0.26.0-b1과 RedHat INT4 체크포인트 기반, context 110592, DP2, rank당 max sequences 4(전체 C8), batch 2048, MTP3, XPU Graph OFF, auto KV, text-only. 별도model_mtp.safetensors를 사용해 두 rank의 동시 기동 메모리 피크를 제한하며, 32GiB 보조 swap과 swappiness 10을 유지한다.gemma-4-31b: Intel llm-scaler b3.1 기반에 upstream Gemma 4 MTP embedding 수정만 고정 적용, Google QAT W4A16, context 32768, TP1, max sequences 1, assistant MTP4, XPU Graph, FP8 KV, text-onlygemma-4-12b: Qwen TP2/P2P와 동일한 pinned vLLM/XPU-kernels 기반 custom-all-reduce 이미지에 Gemma용 symmetric INT4, MTP multimodal embedding, FP16 vision projection overflow 수정을 고정 적용, Google 원본을 online symmetric INT4 group 32로 양자화, context 131072, DP2, rank당 max sequences 4(전체 C8), assistant MTP6, XPU Graph, auto KV, image 4/audio 1/video 1vllm-server/8080 API에는 5분 주기의 content canary가 적용된다. Qwen과 Gemma 4 12B의 GPU 두 장은 DP2로 독립 실행한다. Gemma TP2/P2P 후보는 C1 TPOT가 18.25% 개선됐지만 C8 output TPS가 DP2의 45.14%여서 균형 게이트에서 제외됐으며 검증 프로필과 증거는 유지한다.qwen-3.8-27b-tp2-custom-ar-graph-mtp3-mm은 TP2/P2P, custom all-reduce, XPU Graph, MTP3를 유지하면서 Base64 이미지 입력을 요청당 최대 4장 허용한다. 영상, 로컬 파일 및 HTTP(S) 원격 이미지는 거부한다.qwen-3.8-27b-tp2-custom-ar-graph-mtp2-mm-s8-b2048은 같은 pinned runtime과 98,304 context를 유지하면서 검증된 schedulermax sequences 8, batch tokens 2,048, MTP2를 고정한다. 전체 matrix에서 기존 profile 대비 C8 output TPS는 22.27% 증가하고 C8 TTFT는 73.88% 감소했으며, C1 TPOT 증가는 1.94%였다.- Grafana Alloy는 30초마다 CPU, RAM, disk, network와 vLLM
/metrics를 수집해 인증된 OTLP HTTP로 중앙 VictoriaMetrics에 전송한다. root 전용 textfile collector가 Docker 소켓을 Alloy에 노출하지 않고xpu-smi를 실행해 B70 두 장의 utilization, VRAM, power, clock과 fan 지표를 GPU별로 게시한다. - vLLM Compose service와 컨테이너 이름은
vllm-server, llama.cpp는llama-server를 사용한다. vllm_server와llama_serverrole은 엔진별 task와 Compose 구성을 독립적으로 관리하며,llm_runtime_engine값에 따라 playbook이 하나만 실행한다.- vLLM 메모리 설정은 사용할 프로필의
compose.yml에서 조정한다. - llama.cpp로 롤백하려면 같은 파일에
llm_runtime_engine: llama_cpp를 설정한다. pinned GGUF 모델은 롤백 적용 시 다시 다운로드하며 Intel SYCL 설정은 그대로 유지된다. - llama.cpp의 SYCL 런타임 문제 시 같은 파일에
llama_server_backend: vulkan을 설정한다. - 방화벽과 TLS는 이 저장소에서 관리하지 않는다.
API TPS 벤치마크
컨테이너에 포함된 표준 vllm bench serve로 고정된 random dataset의 prompt 처리,
token generation, TTFT, TPOT, ITL, E2E latency와 aggregate throughput을 측정한다.
표준 suite는 benchmarks/suite.yml에 있으며 seed, 입력·출력 길이,
동시성, 반복 수와 percentile을 모두 고정한다. 각 workload·동시성 shape는 DP rank와
실행 경로를 준비하기 위해 측정 전에 한 번 선행 실행한다. API 키는 컨테이너의 secret
파일에서만 읽으며 결과에 저장하지 않는다.
make benchmark-api MODEL=qwen-3.8-27b
비교 실험은 canonical suite를 바꾸지 않고 candidate ID와 matrix filter를 extra-vars로 전달한다. 선택한 candidate ID, case, 동시성 및 반복 수는 manifest에 기록된다.
make benchmark-api MODEL=qwen-3.8-27b BENCHMARK_ARGS='-e benchmark_candidate_id=example -e benchmark_case_ids=[pp512-tg256] -e benchmark_concurrency_levels=[1] -e benchmark_round_count=5'
정식 실행은 깨끗한 Git commit에서만 허용된다. 측정 중 content canary를 멈추고 같은 Compose 구성을 loopback 전용 포트로 재기동하여 외부 트래픽을 격리한다. 완료 또는 실패 후에는 운영 Compose와 canary를 자동 복구한다. 강제 중단 등으로 복구되지 않았다면 다음 명령을 실행한다.
make benchmark-restore
결과는 benchmarks/runs/<UTC>-<commit>/ 아래에 저장한다. raw/에는 vLLM 상세 원본,
summary.json에는 metric별 mean·median·min·max·CV, manifest.json에는 Git·suite·OS·GPU·
container image·모델 checksum·공개 benchmark argv와 복구 상태를 기록한다. 요청 실패, 비유한 metric, 출력 길이
불일치 또는 세 번 측정한 output TPS의 CV가 5%를 초과하면 실행은 실패한다. 실패한 원본과
failure.json도 삭제하지 않는다.
Qwen TP2/P2P 검증
Qwen3.8-27B의 TP1, TP2/P2P, TP2/USM과 운영 DP2를 동일한 pinned 모델·이미지·MTP 설정으로 비교한다. 아래 진입점은 XCCL peer-copy/all-reduce를 먼저 측정하고 TP2/P2P smoke gate를 통과한 뒤 canonical serving matrix를 실행한다.
make benchmark-tp2-p2p
collective 결과에는 4KiB–32MiB FP16 all-reduce의 p50·p95, algorithmic/bus bandwidth,
oneCCL 로그와 PCIe topology가 저장된다. serving 결과에는 각 round의 지속 GPU telemetry와
커널 xe 오류 diff가 추가된다. P2P 실패 시 stale IPC handle 진단은
CCL_ZE_CACHE_OPEN_IPC_HANDLES=0으로 한 번 분리 실행하며 canonical 결과에는 포함하지
않는다. 모든 단계는 성공·실패와 관계없이 운영 DP2 Compose와 content canary를 복구한다.
라이브 API와 한국어·reasoning 비노출·도구 호출·streaming 회귀는 digest가 고정된 Hurl
컨테이너로 검증한다. Vault API 키는 임시 0600 변수 파일로만 전달하고 종료 시 삭제한다.
make test-api MODEL=qwen-3.8-27b
이미지 멀티모달 프로필의 최대 컨텍스트는 격리된 후보 실행으로 탐색한다. 각 후보는 이미지 정책과 한도 근접 C1/C4 요청을 검증하고 매번 기존 운영 Compose를 복구한다.
make benchmark-qwen-multimodal
최종 멀티모달 프로필 배포 후 Base64 이미지 serving의 C1/C4 output TPS와 3회 CV를 측정하고 양 GPU 및 커널 오류 gate를 다시 확인한다.
make benchmark-qwen-multimodal-image
한국어 장문 생성 품질 비교
make novel-experiment NOVEL_ARGS='--run-id novel-YYYYMMDD'는 실제 운영 배포를
보존한 뒤 고정된 3,000자 소설 요청을 여러 런타임에서 실행한다. 비커스텀 Intel 및
upstream XPU의 TP1/DP2 비교, MTP·Graph·통신 구현 비교, llama.cpp SYCL/Vulkan
비교와 독립 복구 절차는 실험 안내를 따른다.
실험 중 8080 서비스가 교체되므로 승인된 중단 시간에만 실행한다.