Files
game_voice_recorder/app/src/renderer/models-meta.ts
EJClaw 5f04ccdd4e M5: 포터블 exe 앱 (트레이·설정 창·첫 실행 마법사) + M6 사전 기능
- app/src/main: Electron 메인(트레이 상태 아이콘, 설정 창, 단일 실행, DPAPI safeStorage, 스모크 모드), IPC(window.gvr), 파인튜닝 관리
- app/src/renderer: 설정 8개 탭 + 5단계 첫 실행 마법사 (React)
- electron-builder: GameVoiceRecorder.exe, zip(폴더 포터블) + 단일 exe 포터블, 워커·리소스 포함
- 사전: 사이트에서 단어·교정 규칙 추가/삭제(/api/dictionary), 게임 패치 이름 자동 추가, 묶음별 중복 허용 + DB 마이그레이션
- 사이트 서버: 종료 시 WebSocket 먼저 끊기(재시작 멈춤 수정) + 재연결 테스트
- scripts/finetune-e2e.mts, stt-eval.mts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 02:16:08 +09:00

46 lines
1.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// STT 모델 표시용 정적 정보 (보고서 5-2 추정치). 실제 크기/설치 여부는 gvr.models() 가 준다.
export interface ModelMeta {
stars: number;
acc: string;
vramMb: number; // float16 기준 추정 (MiB, 보고서 5-2 GB 값 × 1024)
sizeMb: number; // 설치 전 표시용
}
export const MODEL_META: Record<string, ModelMeta> = {
tiny: { stars: 1, acc: '낮음', vramMb: 614, sizeMb: 75 },
small: { stars: 2, acc: '보통', vramMb: 1024, sizeMb: 464 },
medium: { stars: 3, acc: '좋음', vramMb: 2150, sizeMb: 1457 },
'large-v3-turbo': { stars: 4, acc: '높음', vramMb: 2867, sizeMb: 1548 },
'large-v3': { stars: 5, acc: '최고', vramMb: 4608, sizeMb: 2949 },
};
/** 설정 화면에 카드로 보여 줄 모델 (작은 것 → 큰 것) */
export const CARD_MODELS = ['small', 'medium', 'large-v3-turbo', 'large-v3'];
export const COMPUTE_TYPES = [
{ value: 'float16', label: 'float16 (기본 · 권장)' },
{ value: 'int8_float16', label: 'int8_float16 (VRAM 절약)' },
{ value: 'int8', label: 'int8 (VRAM 최소 · 느림)' },
];
export function metaFor(name: string): ModelMeta {
// 파인튜닝 모델은 large-v3-turbo 기반
return MODEL_META[name] ?? MODEL_META['large-v3-turbo']!;
}
export function vramFor(name: string, computeType: string): number {
const base = metaFor(name).vramMb;
if (computeType === 'int8') return Math.round(base * 0.55);
if (computeType === 'int8_float16') return Math.round(base * 0.6);
return base;
}
export function ctShort(computeType: string): string {
return computeType === 'float16' ? 'fp16' : computeType;
}
export function stars(n: number): string {
return '★'.repeat(n) + '☆'.repeat(5 - n);
}