8bcustom-model / runtime_policy /RUNTIME_ROUTER_RULES.md
koreallmdev's picture
Upload folder using huggingface_hub
c418a42 verified
|
Raw
History Blame Contribute Delete
2.03 kB
# DGX Runtime Router Rules
## μ΅œμ’… 톡과 μ •μ±…
93λ‹¨κ³„μ—μ„œ `router + template runtime` 방식이 ν†΅κ³Όν–ˆμŠ΅λ‹ˆλ‹€.
- passed: 6/6
- decision: VLLM_API_ROUTER_TEMPLATE_SMOKE_PASS
- model: dgx-stable-current
- stable λ³€κ²½: μ—†μŒ
## λΌμš°νŒ… 원칙
일반 μ§ˆλ¬Έμ€ λͺ¨λΈμ—κ²Œ 자유 μƒμ„±μ‹œμΌœλ„ λ©λ‹ˆλ‹€.
ν•˜μ§€λ§Œ 검증 μ •μ±…μ²˜λŸΌ 정닡이 μ •ν•΄μ§„ ν•­λͺ©μ€ λͺ¨λΈμ—κ²Œ 자유 μƒμ„±μ‹œν‚€μ§€ 말고 ν…œν”Œλ¦ΏμœΌλ‘œ μ‘λ‹΅ν•©λ‹ˆλ‹€.
## Route A: base prompt
λŒ€μƒ:
- FastAPI
- Docker
- 일반 Python
- 일반 였λ₯˜ 뢄석
- 일반 파일/폴더 λͺ…λ Ή
μ‚¬μš© 파일:
- OPENWEBUI_BASE_SYSTEM_PROMPT.txt
## Route B: Linux guarded prompt
λŒ€μƒ:
- df
- du
- ps
- grep
- ss
- journalctl
- systemctl
- Ubuntu λ””μŠ€ν¬/ν”„λ‘œμ„ΈμŠ€/포트 확인
μ‚¬μš© 파일:
- OPENWEBUI_LINUX_GUARDED_PROMPT.txt
주의:
- 좔상 경둜 λŒ€μ‹  μ‹€μ œ μ˜ˆμ‹œ 경둜λ₯Ό μ‚¬μš©ν•©λ‹ˆλ‹€.
- λͺ…λ Ήμ–΄λŠ” ASCII둜 μž‘μ„±ν•©λ‹ˆλ‹€.
## Route C: vLLM medium prompt
λŒ€μƒ:
- vLLM μ‹€ν–‰
- OpenAI ν˜Έν™˜ API
- /v1/models
- /v1/chat/completions
- api_server
- gpu-memory-utilization
- max-model-len
- max-num-seqs
μ‚¬μš© 파일:
- OPENWEBUI_VLLM_MEDIUM_PROMPT.txt
핡심:
- `python -m vllm.entrypoints.openai.api_server` ν˜•μ‹μ„ μš°μ„  μ‚¬μš©ν•©λ‹ˆλ‹€.
- 8000 포트 확인 λͺ…령을 ν¬ν•¨ν•©λ‹ˆλ‹€.
## Route D: LoRA stable policy template
λŒ€μƒ ν‚€μ›Œλ“œ:
- LoRA
- adapter
- stable
- current_stable_repair
- smoke test
- benchmark
- rejected
- hold candidate
- 승격
- νšŒκ·€
- CJK λˆ„μΆœ
μ‚¬μš© 파일:
- LORA_STABLE_POLICY_TEMPLATE.txt
핡심:
- 이 ν•­λͺ©μ€ λͺ¨λΈ 자유 생성 κΈˆμ§€μž…λ‹ˆλ‹€.
- κ³ μ • ν…œν”Œλ¦Ώμ„ λ°˜ν™˜ν•©λ‹ˆλ‹€.
- 이유: λͺ¨λΈμ΄ LoRA μ •μ˜μ™€ 검증 절차λ₯Ό 잘λͺ» μƒμ„±ν•˜κ±°λ‚˜ CJK driftλ₯Ό λ‚Ό 수 μžˆμŠ΅λ‹ˆλ‹€.
## ν˜„μž¬ 운영 μƒνƒœ
- production model served by vLLM: dgx-stable-current
- merged model path source: 86_vllm_models/latest_merged_current_stable_repair_path.txt
- stable adapter: 06_train/current_stable_repair
- runtime policy: router_template_runtime