Skip to content

A discord bot which can call LLMs using either Hugging Face or vLLM on Windows platform. Combined with function calling.

Notifications You must be signed in to change notification settings

aisu-programming/LLM-Coder-with-Discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLM-Coder-with-Discord

A discord bot that can call LLMs using either Hugging Face or vLLM on the Windows platform.
Combined with function calling and RAG.

Current Using Model

  • Qwen1.5-14B-Chat-GPTQ-Int8 (w/ context windows length only 4096 due to 24G VRAM)
  • Qwen1.5-14B-Chat-GPTQ-Int4
  • Qwen1.5-7B-Chat-GPTQ-Int8

Environment

  1. Dependency

    After creating and activating a virtual environment.
    Use either ./setup.sh or pip install -r requirements.txt with some manual install (see more in the file).
    To do customized adjustments, you can edit the above files.

  2. Environment Variables

    Edit the content in the file ".env_sample" and rename it into ".env".

vLLM Server

If you are not using Hugging Face pipelines/models but the vLLM server:

  • For Windows:

    Since vLLM does not currently support Windows, we have to install vLLM using Docker.

    1. Install Docker Desktop

    2. Build the docker service (image) and create the docker container by:

      docker-compose create
      
    3. (Optional) Start the container either using the GUI, discord bot command, or the following command:

      docker-compose start
      
  • For other platforms:

    See "docker-compose.yml" for your reference.

Execution

python ./main.py

Now-implemented Tools

  • My Web Extractor
  • File Operator (My Storage)
  • My Code Executor

Some Demo Cases

image

image

image

About

A discord bot which can call LLMs using either Hugging Face or vLLM on Windows platform. Combined with function calling.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published