[Gemini] gemini calculate Tokenize in Locally
ยท
๐Ÿ› ๏ธ Tools
Google VertaxAI Python SDK  gemini tokenizer๋Š” ์›๋ž˜ ๊ณต๊ฐœ๋˜์ง€ ์•Š์•„ token์„ ๊ณ„์‚ฐํ•˜๋ ค๋ฉด API๋ฅผ ์‚ฌ์šฉํ•ด์•ผ ํ•˜๋Š” ๋ฒˆ๊ฑฐ๋กœ์›€์ด ์žˆ์—ˆ๋‹ค. ๊ทธ๋ž˜์„œ Google Cloud Community์— ์งˆ๋ฌธ์„ ๋“ฑ๋กํ–ˆ๋‹ค. ์š”๋Š” tiktoken๊ณผ ๊ฐ™์ด token ๊ณ„์‚ฐ์„ local๋กœ ํ•  ์ˆ˜์žˆ๊ฒŒ ๊ณต๊ฐœํ•ด ๋‹ฌ๋ผ๋Š” ๊ฒƒ์ด์—ˆ๋‹ค. token ์ˆ˜๋ฅผ ์•Œ ์ˆ˜ ์—†์œผ๋ฉด gemini-api๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ max_token์— ๋งž๊ฒŒ ๊ณ„์† ์กฐ์ •ํ•ด์•ผ ํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์ˆ˜ ์ฐจ๋ก€ API๋ฅผ ์‚ฌ์šฉํ•ด์•ผ ํ•œ๋‹ค. ์ด๋Ÿฐ ๋ฌธ์ œ๋ฅผ ์˜์‹ํ–ˆ๋Š”์ง€ token ์ˆ˜๋ฅผ API๋กœ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ๊ณต๊ฐœํ–ˆ์ง€๋งŒ ๋ฌธ์ œ๋Š” ๋‘ ๋ฒˆ์˜ API ์‚ฌ์šฉ๋„ ๋งˆ์Œ์— ๋“ค์ง€ ์•Š์•˜๋‹ค.   tiktoken์œผ๋กœ OpenAI์—์„œ๋Š” tokenizer์™€ vocab์„ ๊ณต๊ฐœํ•ด ํˆฌ๋ช…ํ•˜๊ฒŒ API ๋น„์šฉ์„ ์ฒญ..
[OpenAI] ๋ชจ๋ธ๋ณ„ ์ง€์› ์ค‘๋‹จ ์˜ˆ์ • ๋‚ ์งœ, Model deprecations
ยท
๐Ÿ› ๏ธ Tools
Model deprecations OpenAI์™€ ๊ฐ™์ด vectordb๋ฅผ ๊ตฌ์ถ•ํ•  ์ˆ˜ ์žˆ๊ฒŒ embedding API๋ฅผ ์ง€์›ํ•˜๋Š” ์„œ๋น„์Šค๊ฐ€ ๋งŽ์•„์กŒ๋‹ค. ์ด๋Ÿฌํ•œ platform์€ ์ผ๋ฐ˜์ธ๋“ค์ด ๋ณด์œ ํ•˜๊ธฐ ์–ด๋ ค์šด GPU ์ž์›์„ ํ•ด์†Œํ•ด ์ฃผ๋ฉด์„œ ์ €๋ ดํ•˜๊ฒŒ ์ด์šฉํ•  ์ˆ˜ ์žˆ์œผ๋‚˜ ํฌ๋‚˜ ํฐ ๋‹จ์ ์ด ์žˆ๋‹ค. legacy model์˜ ์ง€์›์ด ์˜์›ํ•˜์ง€ ์•Š๋‹ค๋Š” ๊ฒƒ์ด๋‹ค. ์˜ˆ๋ฅผ ๋“ค๋ฉด ๋‚ด๊ฐ€ ๋ชจ์€ ์ž๋ฃŒ๋ฅผ ๋ชจ๋‘ vectorํ™” ์‹œ์ผœ vectordb๋ฅผ ๊ตฌ์ถ•ํ•˜๊ณ  RAG๋‚˜ RetrievalQA๋ฅผ ํ†ตํ•ด ์งˆ์˜๋ฅผ ํ–ˆ๋Š”๋ฐ ์ž˜ ๋‚˜์˜ค๋˜ ๋‹ต๋ณ€์ด ์กฐ๊ธˆ์”ฉ ํ‹€์–ด์งˆ ์ˆ˜ ์žˆ๋‹ค. ๊ทธ ์›์ธ์œผ๋กœ text-embedding-ada-002๋กœ ๊ตฌ์ถ•ํ•ด ๋†“์€ embedding vector ๊ฐ’๋“ค์ด text-embedding-ada-003์—์„œ๋Š” ์œ ํšจํ•˜์ง€ ์•Š์•„ ๊ทธ๋ ‡๋‹ค. ๋”ฐ๋ผ์„œ ์ด๋Ÿฌํ•œ ์ผ์ด ์—†์œผ๋ ค๋ฉด t..
[GPT4V]OpenAI DevDay, Opening Keynote
ยท
๐Ÿ› ๏ธ Tools/๐Ÿค– ChatGPT
https://www.youtube.com/live/U9mJuUkhUzk?si=kexb8r5aavuJGq6A OpenAI์˜ ๋ฐœํ‘œ๊ฐ€ Apple ์ œํ’ˆ ์ถœ์‹œ๋งŒํผ ๊ธฐ๋‹ค๋ ค์ง€๋Š” ๊ฒŒ ๋ฏธ๋ž˜๋ฅผ ๋ฐ”๊ฟ€ ๊ธฐ์—… ์ค‘ ํ•˜๋‚˜์ด์ง€ ์•Š์„๊นŒ๋ผ๋Š” ์‚ฌ๋žŒ๋“ค์˜ ๊ธฐ๋Œ€๊ฐ์ด ์žˆ๋Š” ๊ฑฐ๊ฐ™๋‹ค. ๊ทธ์— ๋งž์ถฐ Langchain์œผ๋กœ llm์„ ์—ฎ์–ด Agent๋ฅผ ๋งŒ๋“œ๋Š” ์‹œ๋„์˜ ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์—…ํ™”ํ•˜๋ ค๋Š” ๊ธฐ์—…๋“ค์ด ๋งŽ์ด ๋“ฑ์žฅํ•˜๊ณ  ์žˆ๋Š” ์ด์‹œ์ ์— ๊ทธ๋“ค์—๊ฒŒ ๋ฒผ๋ฝ์„ ๋‚ด๋ฆฌ์ณค๋‹ค. ๊ทธ๊ฒƒ์€ ๋ฐ”๋กœ ,, ๊ฐ€๊ฒฉ์ธํ•˜์™€ ๋”์šฑ ๊ฐ•๋ ฅํ•ด์ง„ API... ์ฒซ ๋ฒˆ์งธ ์ปจํผ๋Ÿฐ์Šค์ธ OpenAI ๊ฐœ๋ฐœ์ž ์ปจํผ๋Ÿฐ์Šค์—์„œ ๋ฐœํ‘œ๋œ ์ฃผ์š” ์ƒˆ ๊ธฐ๋Šฅ๊ณผ ์—…๋ฐ์ดํŠธ๋ฅผ ๊ณต์œ ํ•˜๊ฒŒ ๋˜์–ด ๊ธฐ์˜๊ฒŒ ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค. ์ž์„ธํ•œ ๋‚ด์šฉ์€ ๋ธ”๋กœ๊ทธ์—์„œ ํ™•์ธํ•˜์‹œ๊ฑฐ๋‚˜, ๊ธฐ์กฐ์—ฐ์„ค ๋…นํ™”๋ณธ์„ ๋ณด์‹œ๊ฑฐ๋‚˜, ์ƒˆ๋กœ์šด @OpenAIDevs ํŠธ์œ„ํ„ฐ์—์„œ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์ง€๋งŒ, ์—ฌ๊ธฐ..
[OpenAI API] OpenAI Token
ยท
๐Ÿ—ฃ๏ธ Natural Language Processing
https://github.com/seohyunjun/openAI_API_token GitHub - seohyunjun/openAI_API_token: openAI API token information openAI API token information. Contribute to seohyunjun/openAI_API_token development by creating an account on GitHub. github.com
[OpenAI-GPT] LangChain ํšจ์œจ์ ์ธ Token ๊ด€๋ฆฌ
ยท
๐Ÿ› ๏ธ Tools/๐Ÿค– ChatGPT
LLM + Chain Tool Welcome to LangChain — ๐Ÿฆœ๐Ÿ”— LangChain 0.0.175 python.langchain.com ์ตœ๊ทผ LangChain์„ ํ†ตํ•œ GPT ์„œ๋“œํŒŒํ‹ฐ ํˆด์ด ์Ÿ์•„์ง€๊ณ  ์žˆ๋‹ค. LLM ๋ชจ๋ธ์„ ํ™œ์šฉํ•ด ์ž๋™์œผ๋กœ Tool์„ ์‚ฌ์šฉํ•˜๊ฒŒ ๋งŒ๋“ค์–ด ์ฃผ๊ณ  ์žˆ๋‹ค. ๊ทธ ๊ฒฐ๊ณผ ์‹ค์ œ๋กœ ์›ํ•˜๋Š” ์‚ฌ์ดํŠธ ๋งŒ๋“ค๊ธฐ - Auto-GPT https://youtu.be/gWy-pJ2ofEM?si=f3pADRKEIZMsdhB2 Q&A ์ง€์‹ ๊ธฐ๋ฐ˜ ๊ฒ€์ƒ‰ Bot ๋งŒ๋“ค๊ธฐ https://youtu.be/cFCGUjc33aU?si=s7m0nw4MjKzaoQII ๋‹ค์–‘ํ•œ ์„œ๋น„์Šค๊ฐ€ LLM ๋ชจ๋ธ์„ ํ†ตํ•ด ๊ฐœ๋ฐœ๋˜๊ณ  ์žˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์šฐ๋ฆฌ๊ฐ€ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๋ฆฌ์†Œ์Šค๋กœ๋Š” Meta์—์„œ ๋ฐœํ‘œํ•œ LLAMA ๋ชจ๋ธ์ด๋‚˜ Open์†Œ์Šค๋กœ ๊ณต๊ฐœํ•œ data..
[LLM] ChatGPT Prompt Engineering for Developers - Chatbot
ยท
๐Ÿ› ๏ธ Tools/๐Ÿค– ChatGPT
ChatGPT Prompt Engineering for Developers What you’ll learn in this course In ChatGPT Prompt Engineering for Developers, you will learn how to use a large language model (LLM) to quickly build new and powerful applications. Using the OpenAI API, you’ll... www.deeplearning.ai ChatGPT Prompt Engineering for Developers 7 - Chatbot ์ •๋ฆฌ Setup import openai def get_completion(prompt, model="gpt-3.5-tur..
[Whisper] (1) - Abstract & Introduction
ยท
๐Ÿ‘พ Deep Learning
https://github.com/openai/whisper GitHub - openai/whisper: Robust Speech Recognition via Large-Scale Weak Supervision Robust Speech Recognition via Large-Scale Weak Supervision - GitHub - openai/whisper: Robust Speech Recognition via Large-Scale Weak Supervision github.com Paper Review Abstract & Introduction 680,000 ์‹œ๊ฐ„์˜ ๋‹ค๊ตญ์–ด ํ•™์Šต์„ ์ง„ํ–‰ ์‹œ fine-tuning ์—†์ด zero-shot transfer benchmark ์ˆ˜์ค€์˜ ๊ฒฐ๊ณผ๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ๋‹ค. ..
[ChatGPT] ChatGPT + Iphone User Mode ๊ณต์œ 
ยท
๐Ÿ› ๏ธ Tools/๐Ÿค– ChatGPT
https://github.com/seohyunjun/ChatGPT-IOS-ShortCut/blob/main/README.md GitHub - seohyunjun/ChatGPT-IOS-ShortCut: This is Ios Shortcutfile. using ChatGPT API (require your own OpenAI API-KEY) This is Ios Shortcutfile. using ChatGPT API (require your own OpenAI API-KEY) - GitHub - seohyunjun/ChatGPT-IOS-ShortCut: This is Ios Shortcutfile. using ChatGPT API (require your own OpenAI API-KEY) github...
๋‹คํ–ˆ๋‹ค
'openAI' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก