From 43dac8e3865f3cd7eb1bc01e387ed49b7ee0b87a Mon Sep 17 00:00:00 2001 From: happybell80 Date: Wed, 13 Aug 2025 01:17:22 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B0=90=EC=A0=95=20=EC=8B=9C=EC=8A=A4?= =?UTF-8?q?=ED=85=9C=20=EA=B3=84=ED=9A=8D=20=EC=97=85=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=8A=B8=20-=20=EC=95=84=ED=82=A4=ED=85=8D=EC=B2=98=20?= =?UTF-8?q?=EA=B2=B0=EC=A0=95=20=EC=82=AC=ED=95=AD=20=EB=B0=8F=20=EC=A7=84?= =?UTF-8?q?=ED=96=89=20=ED=98=84=ED=99=A9=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...‹œ์Šคํ…œ_ํ˜„์‹ค์ ์šฉ_5๋‹จ๊ณ„_๋กœ๋“œ๋งต.md | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/plans/250808_๊ฐ์ •์‹œ์Šคํ…œ_ํ˜„์‹ค์ ์šฉ_5๋‹จ๊ณ„_๋กœ๋“œ๋งต.md b/plans/250808_๊ฐ์ •์‹œ์Šคํ…œ_ํ˜„์‹ค์ ์šฉ_5๋‹จ๊ณ„_๋กœ๋“œ๋งต.md index 796dc57..696d889 100644 --- a/plans/250808_๊ฐ์ •์‹œ์Šคํ…œ_ํ˜„์‹ค์ ์šฉ_5๋‹จ๊ณ„_๋กœ๋“œ๋งต.md +++ b/plans/250808_๊ฐ์ •์‹œ์Šคํ…œ_ํ˜„์‹ค์ ์šฉ_5๋‹จ๊ณ„_๋กœ๋“œ๋งต.md @@ -41,11 +41,12 @@ def calculate_entropy(probs: List[float]) -> float: ``` ### ๊ธฐ์ˆ  ์Šคํƒ -- **๊ฐ์ • ๋ชจ๋ธ**: klue/bert-base ๊ธฐ๋ฐ˜ (์ด๋ฏธ ํ•™์Šต ์™„๋ฃŒ) -- **์ž„๋ฒ ๋”ฉ**: ๊ธฐ์กด skill-embedding ์„œ๋น„์Šค ํ™•์žฅ (ํฌํŠธ 8515) +- **๊ฐ์ • ๋ชจ๋ธ**: klue/bert-base ๊ธฐ๋ฐ˜ โ†’ ONNX ๋ณ€ํ™˜ ์™„๋ฃŒ +- **์„œ๋น„์Šค**: skill-embedding ํ™•์žฅ (ํฌํŠธ 8515, /emotion ์ถ”๊ฐ€) - **์ €์žฅ**: ๊ธฐ์กด ChromaDB ํ™œ์šฉ (๋ฉ”ํƒ€๋ฐ์ดํ„ฐ์— ๊ฐ์ • ์ถ”๊ฐ€) -- **์˜์‚ฌ๊ฒฐ์ •**: ฮต-greedy (ฮต=0.1) +- **์˜์‚ฌ๊ฒฐ์ •**: ์—”ํŠธ๋กœํ”ผ ๊ธฐ๋ฐ˜ ๋ณต์žก๋„ ํŒ๋‹จ - **๊ธฐ์กด ์ฝ”๋“œ**: rb10508_micro์˜ memory/storage.py ์žฌ์‚ฌ์šฉ +- **์„ค์ •๊ฐ’**: confidence=0.35, entropy=2.0, temperature=1.232 ### ์„ฑ๋Šฅ ๋ชฉํ‘œ - ์‘๋‹ต์‹œ๊ฐ„: 500ms ์ด๋‚ด @@ -72,12 +73,23 @@ curl -w "@curl-format.txt" http://localhost:8503/analyze ### ์‚ฐ์ถœ๋ฌผ - [x] 7๊ฐœ ๊ฐ์ • ๋ชจ๋ธ ํ•™์Šต ์™„๋ฃŒ (training_emotion) -- [ ] skill-embedding ์„œ๋น„์Šค์— /analyze_emotion ์—”๋“œํฌ์ธํŠธ ์ถ”๊ฐ€ +- [x] ONNX ๋ณ€ํ™˜ ์™„๋ฃŒ (423MB) +- [ ] skill-embedding ์„œ๋น„์Šค์— /emotion ์—”๋“œํฌ์ธํŠธ ์ถ”๊ฐ€ - [ ] Temperature Scaling ์ ์šฉ (1.232) - [ ] ์—”ํŠธ๋กœํ”ผ ๊ณ„์‚ฐ๊ธฐ ๊ตฌํ˜„ - [ ] ChromaDB ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ ํ†ตํ•ฉ - [ ] rb10508_micro ์—ฐ๋™ +### ์•„ํ‚คํ…์ฒ˜ ๊ฒฐ์ • ์‚ฌํ•ญ (2025-08-12) +**๋ฌธ์ œ**: ๊ฐ์ • ๋ถ„์„์„ ์–ด๋””์— ๊ตฌํ˜„ํ•  ๊ฒƒ์ธ๊ฐ€? +- Option A: ๋ณ„๋„ skill-emotion ์„œ๋น„์Šค (์•„ํ‚คํ…์ฒ˜ ์›์น™) +- Option B: skill-embedding์— ํ†ตํ•ฉ (์ž์› ํšจ์œจ์„ฑ) + +**์ตœ์ข… ๊ฒฐ์ •**: skill-embedding์— ํ†ตํ•ฉ +- ์ด์œ : ONNX Runtime ๊ณต์œ , ๋ฉ”๋ชจ๋ฆฌ 200MB ์ ˆ์•ฝ, ๋ ˆ์ดํ„ด์‹œ ๊ฐ์†Œ +- ํŠธ๋ ˆ์ด๋“œ์˜คํ”„: ์„œ๋น„์Šค ์—ญํ•  ํ˜ผ์žฌ vs ์‹ค์šฉ์„ฑ +- ํ–ฅํ›„: ์„œ๋น„์Šค๋ช… ๋ณ€๊ฒฝ ๊ณ ๋ ค (skill-embedding โ†’ skill-ai) + --- ## Phase 2: ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ†ตํ•ฉ