Skip to content

LLM server for Godot - Take advantage of Generative AI in your Godot game now!

License

Notifications You must be signed in to change notification settings

frangin2003/godot-llm-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

godot-llm-server

Starting the server

conda activate llm-server
python run.py 7500 llama3.1 tts capture

Installation Instructions for llm-server-cuda

Prerequisites

Install CUDA

https://developer.nvidia.com/cuda-downloads (< 3GB) Installation Instructions: Double click cuda_12.4.1_551.78_windows.exe Follow on-screen prompts Additional installation options are detailed here: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/#meta-packages

Create a python env with Anaconda

conda create --name llm-server-cuda
conda activate llm-server-cuda

Install llama-cpp-python with CUDA enabled

set CMAKE_ARGS=-DLLAMA_CUBLAS=on
set FORCE_CMAKE=1
pip install llama-cpp-python --force-reinstall --upgrade --no-cache-dir

TTS

https://huggingface.co/models?pipeline_tag=text-to-speech&sort=downloads

Suno AI

Install PyTorch with CUDA

https://pytorch.org/get-started/locally/

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121

conda create -n coquitts python=3.10 conda activate coquitts conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia conda install --file requirements.txt cd (directory of tts) pip install -r requirements.txt python setup.py develop #use python script to produce tts results

Coqui model speakers

tts --model_name tts_models/multilingual/multi-dataset/xtts_v2 --list_speaker_idxs

Conda

Sure, here's a cheat sheet for some common Conda commands:

  1. Create a new environment:

    conda create --name myenv
  2. Create a new environment with specific Python version:

    conda create --name myenv python=3.6
  3. Activate an environment:

    • On Windows:
      activate myenv
    • On macOS and Linux:
      source activate myenv
  4. Deactivate an environment:

    • On Windows:
      deactivate
    • On macOS and Linux:
      source deactivate
  5. List all environments:

    conda env list
  6. Install a package in the active environment:

    conda install numpy
  7. Install a specific version of a package:

    conda install numpy=1.10
  8. Update a package:

    conda update numpy
  9. Update Conda itself:

    conda update conda
  10. Remove a package:

    conda remove numpy
  11. Remove an environment:

    conda env remove --name myenv
  12. Export an environment to a file:

    conda env export > environment.yml
  13. Create an environment from a file:

    conda env create -f environment.yml

Remember to replace myenv with the name of your environment and numpy with the name of the package you want to install or remove.

About

LLM server for Godot - Take advantage of Generative AI in your Godot game now!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published