๋ชฉ๋ก2024/05 (5)

SJ_Koding

ppk๊ฐ€ ํ•„์š”ํ•œ ์„œ๋กœ ๋‹ค๋ฅธ ๋‘ ๊ฐœ์˜ ์„œ๋ฒ„ ๊ฐ„ ํŒŒ์ผ ์ „์†กํ•˜๊ธฐ (SSH, SCP)

๋งŒ์•ฝ 100GB์งœ๋ฆฌ์˜ ํŒŒ์ผ์„ ์˜ฎ๊ฒจ์•ผํ• ๋•Œ, A๋ผ๋Š” ์„œ๋ฒ„์™€ B์„œ๋ฒ„๊ฐ€ ์žˆ๊ณ (์ดํ•˜ ๊ฐ๊ฐ A, B๋กœ ์นญํ•จ), A์—์„œ B๋กœ ํŒŒ์ผ์„ ์ „์†กํ•œ๋‹ค๊ณ  ํ•˜์ž.๊ฐ€์žฅ ์‰ฌ์šด ๋ฐฉ๋ฒ•์€ A๋ผ๋Š” ์„œ๋ฒ„์—์„œ ํŒŒ์ผ์„ ๋กœ์ปฌ๋กœ ๋‹ค์šด๋ฐ›๊ณ  ๋กœ์ปฌ์—์„œ ๋‹ค์‹œ B์„œ๋ฒ„๋กœ ์ „์†กํ•˜๋Š” ๋ฐฉ๋ฒ•์ด์žˆ๋Š”๋ฐ,์ด๋ ‡๊ฒŒํ•˜๋ฉด ๊ต์ˆ˜๋‹˜์ด๋‚˜ ์ง์žฅ ์ƒ์‚ฌ๊ฐ€ ์—‰๋ฉ์ด๋ฅผ ํ† ๋‹ฅ์ด๋ฉฐ ๊ทน์ฐฌ์„ ํผ๋ถ“๋Š”๋‹ค.์‚ฌ์‹ค A์—์„œ B๋กœ ๋ฐ”๋กœ ์ „์†กํ•˜๋Š”๊ฒŒ ๊ฐ€์žฅ ํ˜„๋ช…ํ•˜๊ณ  ๋น ๋ฅธ ๋ฐฉ๋ฒ•์ธ๋ฐ,๋ฏธ๋ฆฌ ๋งํ•˜๋ฉด ํ™˜๊ฒฝ์— ๋”ฐ๋ผ ๋‹ค๋ฅด๊ฒ ์ง€๋งŒA -->๋กœ์ปฌ : 20์‹œ๊ฐ„ ์†Œ์š”, A-->B: 20๋ถ„ ์†Œ์š” ์ •๋„์˜์œ ์˜๋ฏธํ•œ ์ฐจ์ด๋ฅผ ํ™•์ธํ–ˆ๋‹ค. ๋˜ํ•œ ์ธ์ฆ ๊ณผ์ •์—์„œ ppkํŒŒ์ผ์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ ์–ด๋–ป๊ฒŒ ํ•˜๋ฉด ๋ ๊นŒ?1. PuttyGen ์„ค์น˜ (ppkํŒŒ์ผ์ด ์—†์„๊ฒฝ์šฐ)๋จผ์ €, ppk ํŒŒ์ผ์„ ์ƒ์„ฑํ•˜๊ฑฐ๋‚˜ ๋ณ€ํ™˜ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” PuttyGen์ด ํ•„์š”ํ•˜๋‹ค. PuttyGen์€ PuTT..

[LLM] LLM Response ์‹ค์‹œ๊ฐ„ ์ถœ๋ ฅ & Markdown ์ ์šฉํ•˜๊ธฐ (langchain, showdown)

LLM ๋ชจ๋ธ์„ ๊ธฐ๋Šฅ์— ๋”ฐ๋ผ ํŒŒ์ธํŠœ๋‹ ์‹œ์ผœ ์ฑ—๋ด‡ ์‹œ์Šคํ…œ์„ ๊ตฌ์ถ•ํ•˜๊ณ , ์›น ๊ฐœ๋ฐœํŒ€์— ๋„˜๊ธฐ๊ธฐ ์ „ LLM์˜ ์‹ค์‹œ๊ฐ„ ์ŠคํŠธ๋ฆฌ๋ฐ ์ถœ๋ ฅ๊ณผ, ์ถœ๋ ฅ์ด Markdown์–ธ์–ด์ผ ๋•Œ ChatGPT์ฒ˜๋Ÿผ ์‹ค์‹œ๊ฐ„์œผ๋กœ Markdown๋ฌธ๋ฒ•์ด ์ ์šฉ๋˜๊ฒŒ ๋” ๊ตฌํ˜„ํ•ด๋ณด์•˜๋‹ค.์›น ๊ฐœ๋ฐœ์ž๊ฐ€ ์•„๋‹ˆ์–ด์„œ ๊ฐ€์žฅ Basicํ•œ ์–ธ์–ด๋ฅผ ์‚ฌ์šฉํ–ˆ๋‹ค. ํ”„๋ก ํŠธ : HTML, CSS, JavaScript๋ฐฑ์—”๋“œ: FastAPI๋งŒ์•ฝ ChatGPT์ฒ˜๋Ÿผ ๊ฐ€๋…์„ฑ ์ข‹๊ฒŒ ๋‹ต๋ณ€ํ•˜๊ธธ ์›ํ•œ๋‹ค๋ฉด, ์•„๋ž˜ ๊ณผ์ •์„ ๊ฑฐ์น˜๊ธฐ ์ „์— System ํ”„๋กฌํ”„ํŠธ ํŠœ๋‹์œผ๋กœ "markdown ํ˜•์‹์œผ๋กœ ๊ฐ€๋…์„ฑ ์ข‹๊ฒŒ ๋‹ต๋ณ€ํ•ด์ค˜" ์‹์œผ๋กœ  ํ”„๋กฌํ”„ํŠธ๋ฅผ ์ถ”๊ฐ€ํ•ด์ฃผ์ž.# ๋‚ด์šฉ- ๊ทธ๋Ÿฌ๋ฉด ์ด๋Ÿฐ์‹์œผ๋กœ- markdown ๋ฌธ๋ฒ•์— ๋”ฐ๋ผ ๊ทธ๋Œ€๋กœ ๋ณ€ํ™˜์—†์ด ๋ฐ˜ํ™˜ํ• ํ…๋ฐ## ๋ณ€ํ™˜ ๋ฐฉ๋ฒ•- ๊ทธ ๋ฐฉ๋ฒ•์„ ์•„๋ž˜์— ์†Œ๊ฐœํ•˜๊ฒ ๋‹ค. MD๋ณ€ํ™˜ ๋ฐฉ๋ฒ•๋ก  ์š”์•ฝ:์ŠคํŠธ๋ฆฌ๋ฐ ..

LLM 2024. 5. 28. 16:14
requirements.txt ์˜ค๋ฅ˜ ์—†์ด ๋งŒ๋“ค๊ธฐ (@, file:///๋ฅผ ๋ฒ„์ „์œผ๋กœ ๋ฐ”๊พธ๊ธฐ)

์š”์•ฝ:๋ฌธ์ œ ์ฝ”๋“œpip freeze > requirements.txtํ•ด๊ฒฐ ์ฝ”๋“œpip list --format=freeze > requirements.txtํŒŒ์ด์ฌ์„ ์‚ฌ์šฉํ•œ๋‹ค๋ฉด ๋‹ค๋ฅธ ๊ฐ€์ƒํ™˜๊ฒฝ, ๋‹ค๋ฅธ PC, local --> server, ๊ฒฝ์ง„๋Œ€ํšŒ ๊ฒ€์ฆ์†Œ์Šค์ฝ”๋“œ๋“ฑ ํ™˜๊ฒฝ ์ž์ฒด๋ฅผ ์˜ฎ๊ฒจ์•ผํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ๊ต‰์žฅํžˆ ๋งŽ๋‹ค.๊ทธ๋Ÿฌ๊ธฐ ์œ„ํ•ด์„œ๋Š” ๊น”๋ ค์žˆ๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์™€ ๊ฐ๊ฐ์˜ ๋ฒ„์ „์„ ํ†ต์งธ๋กœ ์•Œ๊ณ  ์˜ฎ๊ฒจ์•ผํ•˜๋Š”๋ฐ, ๋Œ€๊ฒŒ requirements.txt๋ผ๋Š” ํŒŒ์ผ๋ช…์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์˜ฎ๊ธฐ๊ณค ํ•œ๋‹ค.์ด๋ฅผ ์œ„ํ•ด ํ„ฐ๋ฏธ๋„์—์„œ ๋„๋ฆฌ ์•Œ๋ ค์ง„ ์•„๋ž˜์˜ ๋ช…๋ น์„ ์‚ฌ์šฉํ•œ๋‹ค.pip freeze > requirements.txtabsl-py==1.4.0accelerate==0.23.0aiohttp @ file:///rapids/aiohttp-3.8.4-cp310-cp3..

[LLM] ์ ์€ ๋ฐ์ดํ„ฐ๋กœ fine-tuningํ•˜์ž! LIMA: Less Is More for Alignment ๋ฆฌ๋ทฐ (Meta, 2023) - ไธ‹ํŽธ

ํ•ด๋‹น ํฌ์ŠคํŒ…์€ ์ด์ „ ๊ธ€๊ณผ ์ด์–ด์ง„ ํฌ์ŠคํŒ…์ž…๋‹ˆ๋‹ค. ๊ฐœ์ธ์ ์œผ๋กœ ไธ‹ํŽธ์— ์žฌ๋ฐŒ๋Š” ๋‚ด์šฉ์ด ๋งŽ์€ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๋…ผ๋ฌธ ์ „์ฒด๋‚ด์šฉ์„ ์ œ๊ฐ€ ์ดํ•ดํ•œ๋Œ€๋กœ ๋น ์ง์—†์ด ๊ธฐ์ž…ํ•˜๊ธฐ ๋•Œ๋ฌธ์—, ๋‚ฎ์€ ํ™•๋ฅ ๋กœ ์ž˜๋ชป๋œ ๋‚ด์šฉ์ด ํฌํ•จ๋˜์–ด์žˆ์„ ์ˆ˜ ์žˆ์œผ๋ฉฐ ๊ธ€์ด ๊ธธ๊ฒŒ ๋‚˜์—ด๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค. ๊ฐ€๋…์„ฑ์„ ์œ„ํ•ด section์ด๋‚˜ ์ค‘์š”๋ถ€๋ถ„์€ ์ปฌ๋Ÿฌ๋กœ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. 2024.05.03 - [LLM] - [LLM] ์ ์€ ๋ฐ์ดํ„ฐ๋กœ fine-tuningํ•˜์ž! LIMA: Less Is More for Alignment ๋ฆฌ๋ทฐ (Meta, 2023) - ไธŠํŽธ [LLM] ์ ์€ ๋ฐ์ดํ„ฐ๋กœ fine-tuningํ•˜์ž! LIMA: Less Is More for Alignment ๋ฆฌ๋ทฐ (Meta, 2023) - ไธŠํŽธLLM์„ ํŒŒ์ธํŠœ๋‹ ํ•  ์ผ์ด ์ƒ๊ฒผ๋Š”๋ฐ, ๋ฌด์—‡๋ณด๋‹ค ์ƒˆ๋กœ์šด ๋„๋ฉ”์ธ์—์„œ ์ž˜ ์ถ”๋ก ํ•  ์ˆ˜ ์žˆ..

LLM 2024. 5. 11. 11:56
[LLM] ์ ์€ ๋ฐ์ดํ„ฐ๋กœ fine-tuningํ•˜์ž! LIMA: Less Is More for Alignment ๋ฆฌ๋ทฐ (Meta, 2023) - ไธŠํŽธ

LLM์„ ํŒŒ์ธํŠœ๋‹ ํ•  ์ผ์ด ์ƒ๊ฒผ๋Š”๋ฐ, ๋ฌด์—‡๋ณด๋‹ค ์ƒˆ๋กœ์šด ๋„๋ฉ”์ธ์—์„œ ์ž˜ ์ถ”๋ก ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜๊ธฐ์œ„ํ•ด ๋ฐ์ดํ„ฐ์…‹์ด ๋‹น์—ฐํžˆ ๋งŽ์•„์•ผ ํ•œ๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ์—ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด Function calling๊ธฐ๋Šฅ์„ ์ˆ˜ํ–‰ํ•  ๋•Œ, Function์„ ์–ด๋А prompt์—์„œ ํ˜ธ์ถœํ•  ์ง€ ์ž˜ ์•Œ๊ธฐ ์œ„ํ•ด์„œ๋Š” ๋‹น์—ฐํžˆ ์ˆ˜๋งŽ์€ ๋ฐ์ดํ„ฐ์…‹์œผ๋กœ ์ด๋ฅผ ๊ตฌ๋ณ„์‹œ์ผœ์•ผ ํ•œ๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ๋‹ค.๊ทธ๋Ÿฐ๋ฐ, ์ด ์ƒ๊ฐ์ด ํŽธํ–ฅ๋œ ์ƒ๊ฐ์ž„์„ ๊นจ๋‹ซ๊ฒŒ ๋œ ๋…ผ๋ฌธ์ด Meta์—์„œ ๋ฐœํ‘œํ•œ LIMA: Less Is More for Alignment(2023) ๋…ผ๋ฌธ์ด๋‹ค. Abstract์ €์ž๋Š” LLM์ด ํ›ˆ๋ จ๋˜๋Š” ๋‘ ๋‹จ๊ณ„์— ๋Œ€ํ•ด ์„ค๋ช…ํ•˜๊ณ  ์žˆ๋‹ค. ์ฒซ ๋ฒˆ์งธ๋Š” unsupervised pretraining์œผ๋กœ raw text๋กœ๋ถ€ํ„ฐ general-purpose representations์„ ํ•™์Šตํ•œ๋‹ค๋Š” ๊ฒƒ์ด๊ณ , ๋‘..

LLM 2024. 5. 3. 11:06