Notice
Recent Posts
Recent Comments
ยซ   2024/12   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Archives
Today
In Total
๊ด€๋ฆฌ ๋ฉ”๋‰ด

A Joyful AI Research Journey๐ŸŒณ๐Ÿ˜Š

[1] 241030 Task: ํ† ํฐ, ํŒŒ๋ผ๋ฏธํ„ฐ [Goorm All-In-One Pass! AI Project Master - 4th Session, Day 1] ๋ณธ๋ฌธ

๐ŸŒณAI & Quantum Computing Bootcamp 2024โœจ/Tasks

[1] 241030 Task: ํ† ํฐ, ํŒŒ๋ผ๋ฏธํ„ฐ [Goorm All-In-One Pass! AI Project Master - 4th Session, Day 1]

yjyuwisely 2024. 10. 31. 09:09

Teacher: ๋ณต์Šตํ•˜์‹œ๋Š” ๋ถ„๋“ค์„ ์œ„ํ•ด ์ œ๊ฐ€ ๊ณต์œ ํ•œ notion์— ์‹ค์Šตํ•˜๊ณ  ์ฐพ์•„๋ณผ ๋‚ด์šฉ์„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ถ”๊ฐ€ํ•ด ๋‘์—ˆ์Šต๋‹ˆ๋‹ค. ์ฐธ๊ณ ํ•ด ์ฃผ์„ธ์š”.

https://platform.openai.com/tokenizer


ํ† ํฐ 

GPT ๋ชจ๋ธ์—์„œ์˜ ํ† ํฐ(token)์€ ๋งค์šฐ ๊ฐ„๋‹จํ•œ ๊ฐœ๋…์ด๋‹ค. ์ผ์ƒ ์–ธ์–ด์—์„œ ์šฐ๋ฆฌ๊ฐ€ ์‚ฌ์šฉํ•˜๋Š” ๋‹จ์–ด๋‚˜ ๋ฌธ์žฅ ๋ถ€ํ˜ธ์™€ ๊ฐ™์€ ๊ฒƒ์„ ์ƒ๊ฐํ•˜๋ฉด ๋œ๋‹ค. GPT ๋ชจ๋ธ์—์„œ๋Š” ์ด๋Ÿฌํ•œ ๋‹จ์–ด๋‚˜ ๋ฌธ์žฅ ๋ถ€ํ˜ธ๋ฅผ ๋” ์ž‘์€ ๋‹จ์œ„๋กœ ์ชผ๊ฐ  ๊ฒƒ์„ ํ† ํฐ์ด๋ผ๊ณ  ๋ถ€๋ฅธ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ์˜์–ด์—์„œ "cat"์ด๋ผ๋Š” ๋‹จ์–ด๋Š” ํ•˜๋‚˜์˜ ํ† ํฐ์œผ๋กœ ์ฒ˜๋ฆฌ๋  ์ˆ˜ ์žˆ์ง€๋งŒ, ๋” ๊ธด ๋‹จ์–ด๋‚˜ ๋ณต์žกํ•œ ๋ฌธ์ž๋Š” ์—ฌ๋Ÿฌ ๊ฐœ์˜ ํ† ํฐ์œผ๋กœ ๋‚˜๋‰  ์ˆ˜ ์žˆ๋‹ค.

https://wikidocs.net/223125

์ž…๋ ฅ ํ˜น์€ ์ถœ๋ ฅํ•˜๋Š”๋ฐ ์‚ฌ์šฉ๋˜๋Š” ํ…์ŠคํŠธ ๋ฐ์ดํ„ฐ ๋‚ด ‘์˜๋ฏธ๋ฅผ ๊ฐ€์ง„ ์ตœ์†Œ ๋ง์˜ ๋‹จ์œ„(ํ˜•ํƒœ์†Œ)’๊ฐ€ ํ† ํฐ

https://hildilid.tistory.com/26


ํŒŒ๋ผ๋ฏธํ„ฐ 

๋จธ์‹ ๋Ÿฌ๋‹์—์„œ ํŒŒ๋ผ๋ฏธํ„ฐ๋ž€ ๋ชจ๋ธ์ด ๋ฐ์ดํ„ฐ๋กœ๋ถ€ํ„ฐ ํ•™์Šตํ•˜๋Š” ๊ฐ’๋“ค์„ ๋งํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ์„ ํ˜• ํšŒ๊ท€ ๋ชจ๋ธ์—์„œ์˜ ๊ฐ€์ค‘์น˜(weight)์™€ ์ ˆํŽธ(bias), ๋˜๋Š” ์ธ๊ณต์‹ ๊ฒฝ๋ง์—์„œ์˜ ๊ฐ€์ค‘์น˜์™€ ํŽธํ–ฅ ๋“ฑ์ด ํŒŒ๋ผ๋ฏธํ„ฐ์— ํ•ด๋‹นํ•ฉ๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ํŒŒ๋ผ๋ฏธํ„ฐ๋“ค์€ ํ•™์Šต ๋ฐ์ดํ„ฐ๋ฅผ ํ†ตํ•ด ์—…๋ฐ์ดํŠธ๋˜๊ณ , ๋ชจ๋ธ์˜ ์˜ˆ์ธก์„ ๊ฒฐ์ •ํ•˜๋Š” ํ•ต์‹ฌ ์š”์†Œ์ž…๋‹ˆ๋‹ค.

๋ฐ˜๋ฉด์— ํ•˜์ดํผํŒŒ๋ผ๋ฏธํ„ฐ๋Š” ๋ชจ๋ธ์˜ ํ•™์Šต ๋ฐฉ์‹์„ ๊ฒฐ์ •ํ•˜๋Š” ๊ฐ’๋“ค๋กœ, ์‚ฌ์šฉ์ž์— ์˜ํ•ด ๋ฏธ๋ฆฌ ์„ค์ •๋˜๋ฉฐ ํ•™์Šต ๊ณผ์ •์—์„œ ์ž๋™์œผ๋กœ ๋ณ€๊ฒฝ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ๊ฒฐ์ • ํŠธ๋ฆฌ์˜ ์ตœ๋Œ€ ๊นŠ์ด, kNN์˜ ์ด์›ƒ ์ˆ˜, ์‹ ๊ฒฝ๋ง์˜ ํ•™์Šต๋ฅ ๊ณผ ์—ํฌํฌ ์ˆ˜ ๋“ฑ์ด ํ•˜์ดํผํŒŒ๋ผ๋ฏธํ„ฐ์— ํ•ด๋‹นํ•ฉ๋‹ˆ๋‹ค.

https://mozenworld.tistory.com/entry/๋จธ์‹ ๋Ÿฌ๋‹-๋ชจ๋ธ์˜-ํŒŒ๋ผ๋ฏธํ„ฐ์™€-ํ•˜์ดํผํŒŒ๋ผ๋ฏธํ„ฐ

728x90
๋ฐ˜์‘ํ˜•
Comments