๐Ÿฆ™ ๋ผ๋งˆ(LLaMa)์˜ ์—ญ์‚ฌ

1์žฅ. ๋ผ๋งˆ(LLaMa)๋ž€ ๋ฌด์—‡์ธ๊ฐ€

"Meta AI released a new open-source language model called LLaMA."
์ƒ์„ฑํ˜• ๊ฒฝ์Ÿ์— ๊ฐ€์žฅ ํ•ต์‹ฌ์ด ๋˜๋Š” ๊ฑฐ๋Œ€ ์–ธ์–ด๋ชจ๋ธLLM์— ์ฃผ๋ ฅํ•˜๋Š” ๋ฉ”ํƒ€.

2์žฅ. ๋ผ๋งˆ์˜ ํŠน์ง•ย 

  • 175 billion (GPT3) โ†’ 65 billion (LLaMa)
" ๋” ์ž‘๊ณ  ๊ฐ•๋ ฅํ•œ ๋ชจ๋ธ๋กœ, ๊ฒฝ์Ÿ ๋ชจ๋ธ๊ณผ ๋น„์Šทํ•œ ์ˆ˜์ค€์˜ ์„ฑ๋Šฅ์„ ๋‚ด๋ฉด์„œ๋„ ์ปดํ“จํŒ… ์„ฑ๋Šฅ์„ ๋” ์ ๊ฒŒ ์†Œ๋น„ํ•ด ํ™˜๊ฒฝ์— ๋ฏธ์น˜๋Š” ์˜ํ–ฅ๋„ ๋” ์ž‘๋‹ค "


  • LLaMA: open source
์˜คํ”ˆ์†Œ์Šค ์ปค๋ฎค๋‹ˆํ‹ฐ ๊นƒํ—ˆ๋ธŒ์— ๋ผ๋งˆ ์†Œ์Šค์ฝ”๋“œ๋ฅผ ์—…๋ฐ์ดํŠธ
(ํ•™์Šต ํŒจ๋Ÿฌ๋ฏธํ„ฐ - '๊ณต์‹์ ์œผ๋กœ๋Š”' ์Šน์ธ ์‹œ ์—ฐ๊ตฌ๋ชฉ์ ์œผ๋กœ ์ œ๊ณต)
๋ผ๋งˆ๋Š” ํ›„๋ฐœ์ฃผ์ž, ๋Œ€๋ถ€๋ถ„ ์˜คํ”ˆํ˜•์œผ๋กœ.
open ai๋Š” apiํ˜•ํƒœ ์œ ๋ฃŒ๋ชจ๋ธ.
ย 
โ†’ ๋งˆ์ดํฌ๋กœ์†Œํ”„ํŠธ VS ๊ตฌ๊ธ€ VS ๋ฉ”ํƒ€ 3ํŒŒ์ „


3์žฅ. ๋ผ๋งˆ์˜ ์—ญ์‚ฌ๋Š” 3์ฃผ


  • 2023.02.24
๋ฉ”ํƒ€๋Š” ์ง€๋‚œ๋‹ฌ 24์ผ ์ด ๋ชจ๋ธ์˜ ๊ฐœ๋ฐœ์„ ๋ฐœํ‘œํ•˜๋ฉด์„œ ์—ฐ๊ตฌ ๋ชฉ์ ์œผ๋กœ ์Šน์ธ๋ฐ›์€ ์‚ฌ๋žŒ์—๊ฒŒ๋งŒ ์ œ๊ณตํ•˜๊ฒ ๋‹ค๊ณ  ๋ฐํ˜”๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ๋ˆ„๊ตฐ๊ฐ€๊ฐ€ ๋น„ํŠธํ† ๋ ŒํŠธ๋ฅผ ํ†ตํ•ด โ€˜๋ผ๋งˆโ€™๊ฐ€ ์‚ฌ์šฉํ•˜๋Š” ๊ฐ€์ค‘์น˜๋ฅผ ์œ ์ถœํ–ˆ๋‹ค.ย 


LLM์— Stable Diffusion Moment๊ฐ€ ์˜ค๊ณ  ์žˆ๋‹ค
1 week of Stable Diffusion | multimodal.art


์Šคํ…Œ์ด๋ธ” ๋””ํ“จ์ „(Stable Diffusion) : ์˜คํ”ˆ์†Œ์Šค ํ…์ŠคํŠธ ์ด๋ฏธ์ง€ ์ƒ์„ฑ๊ธฐ
2022๋…„ 8์›”์˜ Stable Diffuion(SD) ๊ณต๊ฐœ๋กœ ์ธํ•œ 'ํญ๋ฐœ์ ์ธ ํ˜์‹ '์„ ์˜๋ฏธํ•˜๋Š” ๊ฒƒ
GPT-3 ๊ธ‰์˜ ์–ธ์–ด ๋ชจ๋ธ์„ ๊ฐœ์ธ ๋…ธํŠธ๋ถ์—์„œ ์‹คํ–‰๊ฐ€๋Šฅ


Large language models are having their Stable Diffusion moment (simonwillison.net)
LLaMA is easy to run on your own hardware, large enough to be useful, and open-source enough to be tinkered with,


  • 2023.03.10
Georgi Gerganov's Home Page (ggerganov.com)
Georgi Gerganov(์กฐ์ง€ ๊ฒŒ๋ฅด๊ฐ€๋…ธํ”„)๋ผ๋Š” ๊ฐœ๋ฐœ์ž๊ฐ€ M1 ์นฉ์„ ๊ตฌ๋น„ํ•œ ๋งฅํ‚จํ† ์‹œ ๋…ธํŠธ๋ถ์—์„œ ์ด ๋ชจ๋ธ์„ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ์ฝ”๋“œ(llama.cpp)๋ฅผ ๋งŒ๋“ค์–ด ๊ณต๊ฐœย 


  • 2023.03.11
Artem Andreenko ๐Ÿ‡บ๐Ÿ‡ฆ ๋‹˜์˜ ํŠธ์œ„ํ„ฐ: "I've sucefully runned LLaMA 7B model on my 4GB RAM Raspberry Pi 4. It's super slow about 10sec/token. But it looks we can run powerful cognitive pipelines on a cheap hardware. https://t.co/XDbvM2U5GY" / ํŠธ์œ„ํ„ฐ (twitter.com)
์•„๋ฅดํ…œ ์•ˆ๋“œ๋ฆฐ์ฝ”๋ผ๋Š” ๊ฐœ๋ฐœ์ž๊ฐ€ ๋ผ์ฆˆ๋ฒ ๋ฆฌ ํŒŒ์ด์—์„œ ์†๋„๋Š” ๋Š๋ฆฌ์ง€๋งŒ โ€˜๋ผ๋งˆโ€™๋ฅผ ์‹คํ–‰ํ•˜๋Š”๋ฐ ์„ฑ๊ณต


  • 2023.03.13
Stanford CRFM
Stanford Alpaca, and the acceleration of on-device large language model development (simonwillison.net)
์Šคํƒ ํฌ๋“œ์˜ ์—ฐ๊ตฌ์ง„, ์˜คํ”ˆAI์˜ ๋‹ค๋นˆ์น˜-003๊ณผ ๋น„์Šทํ•˜์ง€๋งŒ ํ›จ์”ฌ ๊ฐ€๋ฒผ์šด ํ•˜๋“œ์›จ์–ด์—์„œ ์‹คํ–‰๋˜๋Š” โ€˜๋ผ๋งˆ 7Bโ€™์˜ ์กฐ์ • ๋ฒ„์ „์ธ โ€˜์•ŒํŒŒ์นด 7Bโ€™๋ฅผ ์ถœ์‹œ



4์žฅ. ์ƒ๊ฐํ•ด๋ณผ ๊ฒƒ


  1. ย ์–ธ์–ด๋ชจ๋ธ์„ ๊ฐœ์ธ์žฅ๋น„์—์„œ ๊ตฌ๋™ํ•  ์ˆ˜ ์žˆ๋‹ค?
    ๊ตฌ๋™๊ฐ€๋Šฅ ๋ฒ”์œ„: ์Šˆํผ ์ปดํ“จํ„ฐ โ†’ ๋งฅ โ†’ 50๋งŒ์› ๊ทธ๋ž˜ํ”ฝ์นด๋“œ (7B)

    1) ํŒŒ์ธ ํŠœ๋‹์ด ๊ฐ€๋Šฅํ•˜๊ณ 
    2) ํŒŒ์ธ ํŠœ๋‹์ด ์ €๋ ดํ•˜๊ณ 
    3) ๋ชจ๋ธ ์ž์ฒด๊ฐ€ ๊ฐ€๋ณ๋‹ค๋Š” ๋ถ€๋ถ„ย 


2. ๊ฐ„๊ณผํ•  ์ˆ˜ ์—†๋Š” ๋น„์šฉ์ ˆ๊ฐ์˜ ์ธก๋ฉด

๊ธฐ์กด AI ์—ฐ๊ตฌ์˜ ํฐ ์žฅ์• ๋ฌผ: ๋Œ€๊ทœ๋ชจ ์–ธ์–ด ๋ชจ๋ธ ํ•™์Šต ์‹œ ๋ง‰๋Œ€ํ•œ ๋น„์šฉ
ํ•™๊ณ„์™€ ์—ฐ๊ตฌ๊ธฐ๊ด€์—์„œ LLaMA์˜ ํ™œ์šฉ์œผ๋กœ ์ตœ์†Œ ์ˆ˜๋ฐฑ๋งŒ ๋‹ฌ๋Ÿฌ ๋น„์šฉ ์ ˆ๊ฐํ•  ๊ฒƒ์œผ๋กœ ์˜ˆ์ธก


3. ํ”„๋กœ์ ํŠธ์— ๋Œ€ํ•œ ์•ผ๋ง/๊ตฌํ˜„ ๋ฒ”์œ„ ํ™•์žฅ

API ๋น„์šฉ ๋ฌธ์ œ x โ†’ ๋” ๋‹ค์–‘ํ•œ ์‘์šฉ ๋ฒ”์œ„


4. ์•…์šฉ๊ณผ ์ฑ…์ž„๋ฌธ์ œ์— ๋Œ€ํ•œ ์šฐ๋ ค

ํ†ต์ œ ๊ธฐ๋ฐ˜ ์ƒ์šฉ ์„œ๋น„์Šค ์ ‘๊ทผ ๋ฐฉ์‹: ์ฑ…์ž„ ์†Œ์žฌ ๋ถ„๋ช…
ex) ์˜คํ”ˆAI, ๋งˆ์ดํฌ๋กœ์†Œํ”„ํŠธ, ๊ตฌ๊ธ€ - ์ˆ˜์ต์ฐฝ์ถœ & ์ฑ…์ž„์„ฑ ์žˆ๋Š” ๋„๊ตฌ ์‚ฌ์šฉ ๋ณด์žฅ


c.f) Stable diffusion, LLaMA: ์ฑ…์ž„ ๊ด€๋ จ ์›์น™ ๋ฏธ์ค€์ˆ˜ ๊ฐ€๋Šฅ์„ฑ์— ๋Œ€ํ•œ ์šฐ๋ ค
๊ณต๊ฒฉ์ /์กฐ์ž‘๋œ AI ์ฝ˜ํ…์ธ ์˜ ์›น ์œ ํ†ต


5. ๊ทธ๋ž˜์„œ, '๋ผ๋งˆ์˜ ์œ ์ถœ์ด ๊ณผ์—ฐ ์–ด๋–ค ์˜ํ–ฅ์„ ๋ฏธ์น  ๊ฒƒ์ธ๊ฐ€'

์ „๋ฌธ๊ฐ€๋“ค์˜ ์˜ˆ์ธก๋Œ€๋กœ LLaMA๋Š” ์„ธ๊ณ„์—์„œ ๊ฐ€์žฅ ๋„๋ฆฌ ์‚ฌ์šฉ๋˜๋Š” ์ƒ์„ฑํ˜• AI๊ฐ€ ๋ ๊นŒ?
ex) Stable diffusion์—์„œ ์˜คํ”ˆ์†Œ์Šค ๋Šฅ๋ ฅ์ž๋“ค์ด ๋งŒ๋“ค์–ด๋‚ธ ์ „๋ก€


๋งํฌ
Week 3 of LLaMA ๐Ÿฆ™ - Replicate โ€“ Replicate
https://simonwillison.net/2023/Mar/13/alpaca/
https://ai.facebook.com/blog/large-language-model-llama-meta-ai/
https://www.itworld.co.kr/news/281539#csidxf0164453fb380639bde9a6e177f11e6
https://blog.naver.com/hilft/223047153234
https://news.hada.io/topic?id=8684
4
1๊ฐœ์˜ ๋‹ต๊ธ€

(์ฑ„์šฉ) ๋งˆ์ผ€ํŒ… ๋ฆฌ๋“œ, AI ์—”์ง€๋‹ˆ์–ด, ์œ ํŠœ๋ธŒ PD, SNS ํฌ๋ฆฌ์—์ดํ„ฐ

์ง€ํ”ผํ„ฐ์Šค์˜ ์ฝ˜ํ…์ธ  ํ”Œ๋ผ์ดํœ ๋กœ ๊ณ ์† ์„ฑ์žฅํ•  ํŒ€์›์„ ์ฐพ์Šต๋‹ˆ๋‹ค!

๐Ÿ‘‰ ์ด ๊ฒŒ์‹œ๊ธ€๋„ ์ฝ์–ด๋ณด์„ธ์š”