Files
live-app-translator/requirements.txt
EJClaw 5596f905d1 fix: Seed-X 프롬프트 형식과 티어별 용어집 전략 수정
4티어(Seed-X-PPO-7B) 번역 경로가 모델 카드 요구사항을 어기고 있었다.

- 프롬프트 끝의 `<ko>` 등 대상 언어 태그가 빠져 있었다. PPO 학습에 쓰인
  신호라 없으면 번역 품질이 흔들린다.
- Seed-X 는 chat template 없는 번역 전용 completion 모델인데 "구어체로
  자연스럽게" 같은 지시문 래퍼를 씌우고 있었다. 학습 분포를 벗어난다.
- 그 결과 MTSpec.supports_prompt_glossary=True 가 사실과 달랐다.
  Seed-X 는 용어집 지시문을 이해하지 못하므로 플레이스홀더 치환을 써야 한다.

수정
- PromptStyle(NONE/SEEDX/INSTRUCT) 도입, supports_prompt_glossary 를
  prompt_style 에서 파생시켜 둘이 어긋날 수 없게 함
- build_seedx_prompt() 로 모델 카드 형식을 분리 (지시문 주입 불가)
- INSTRUCT 경로는 chat template 사용, Qwen3 thinking 모드는 끔
- LANGUAGES 에 seedx 태그 명시
- finetune_mt.py 가 티어의 prompt_style 을 따라가게 해 학습/추론 프롬프트 일치
- AWQ Int4 로드 실패 시 autoawq 설치 안내를 담은 오류 메시지

검증: pytest 52개 통과 (프롬프트 회귀 테스트 13개 추가), ruff clean

근거: https://huggingface.co/ByteDance-Seed/Seed-X-PPO-7B

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-09-21 10:56:49 +09:00

26 lines
835 B
Plaintext

# 기본 실행에 필요한 최소 구성
PySide6>=6.6
numpy>=1.24
# --- GPU 추론 ---------------------------------------------------------
# torch 는 반드시 CUDA 빌드로 먼저 설치하세요 (README 참고):
# pip install torch --index-url https://download.pytorch.org/whl/cu128
faster-whisper>=1.0
ctranslate2>=4.4
transformers>=4.44
huggingface-hub>=0.24
sentencepiece>=0.2
accelerate>=0.33
# --- Windows 오디오 캡처 ---------------------------------------------
PyAudioWPatch>=0.2.12.7; sys_platform == "win32"
pycaw>=20240210; sys_platform == "win32"
comtypes>=1.4; sys_platform == "win32"
psutil>=5.9; sys_platform == "win32"
# --- 선택 ------------------------------------------------------------
webrtcvad-wheels>=2.0.14
# 4티어(Seed-X AWQ Int4)를 쓸 때만 필요합니다:
# pip install autoawq