Skip to content

๐Ÿค– ์—์ด์ „ํŠธ ๊ฐœ๋ฐœ์— ๋ชฐ๋‘ํ•˜๊ธฐ

Notifications You must be signed in to change notification settings

k-buildup/versatile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

63 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

banner

๐Ÿค– ๋ฒ„์‚ฌํƒ€์ผ (Versatile)

Korean Bllossom ๋ชจ๋ธ์„ ํ™œ์šฉํ•œ AI ์—์ด์ „ํŠธ ํ”„๋กœ์ ํŠธ


๐Ÿ”ฅ Stack

Python LlamaCPP LangChain FastAPI Uvicorn


โœจ Setup

Clone Repository

$ git clone https://github.com/k-buildup/versatile.git
$ cd versatile

Install Dependencies

Warning

llama-cpp-python ์„ค์น˜ ์‹œ Cuda Toolkit ๋ฒ„์ „์— ๋งž๋Š” wheel ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œ ๋ฐ›์•„์„œ ์„ค์น˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

$ pip install -r requirements.txt

Install Model

  1. Reference ์„น์…˜์„ ์ฐธ๊ณ ํ•ด์„œ ๋ชจ๋ธ์„ ๋‹ค์šด๋กœ๋“œํ•ด ์ฃผ์„ธ์š”.
  2. models ํด๋”์— ๋‹ค์šด๋กœ๋“œ ๋ฐ›์€ ๋ชจ๋ธ์„ ๋„ฃ์–ด์ฃผ์„ธ์š”.

Configure

  1. agent.py ์—์„œ ModelConfig ํด๋ž˜์Šค๋ฅผ ๋ณธ์ธ์˜ ์ปดํ“จํ„ฐ ์‚ฌ์–‘์— ๋งž๊ฒŒ ์ˆ˜์ •ํ•ด ์ฃผ์„ธ์š”.

  2. .env ํŒŒ์ผ์„ ์ƒ์„ฑํ•˜๊ณ  ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ž‘์„ฑํ•ด ์ฃผ์„ธ์š”:

    DB_HOST=localhost
    DB_PORT=3306
    DB_USER=root
    DB_PASSWORD=
    DB_NAME=agent_db
    
    API_HOST=0.0.0.0
    API_PORT=8000
    
    # ๋ชจ๋ธ ๊ฒฝ๋กœ
    MODEL_PATH=./models/llama-3-Korean-Bllossom-8B/Q8_0.gguf
    
    JWT_SECRET_KEY=<your-secret-key>
    
    # ์›น ๊ฒ€์ƒ‰
    TAVILY_API_KEY=<your-tavily-api-key>

๐Ÿš€ Run

# cli ํ™˜๊ฒฝ (no-auth)
$ python cli.py

# server ํ™˜๊ฒฝ
$ python server.py
# client.html ํŒŒ์ผ์„ ์—ด์–ด์ฃผ์„ธ์š”.
# ๋ฐ๋ชจ ๊ณ„์ •: demo, demo123

๐Ÿ“œ Commands

  • quit: ์ข…๋ฃŒ
  • clear: ๋Œ€ํ™” ๊ธฐ๋ก ์ดˆ๊ธฐํ™”
  • <prompt>: Q&A
  • @think <prompt>: ์‚ฌ๊ณ  ๋ชจ๋“œ
  • @tool <prompt>: ๋„๊ตฌ ๋ชจ๋“œ

๐Ÿ“š Reference


โœ… Todo

  • Text-to-Image
  • Text-to-Video

About

๐Ÿค– ์—์ด์ „ํŠธ ๊ฐœ๋ฐœ์— ๋ชฐ๋‘ํ•˜๊ธฐ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published