Talk with local large language model in Roblox game

- clone or download repo
- in cmd change directory to repository
python -m venv ./venv.\venv\Scripts\activate.batpip install -r requirements.txtpython ./src/serve.py- First time this will download mistralai/Mistral-7B-Instruct-v0.2 model. In src/config.py in "pretrained_model_name_or_path" you can specify either the name of the Hugging Face model or the folder where the model was manually downloaded.
- Once it's loaded/downloaded you will see "Model loaded" "Starting server". The server will be on
127.0.0.1:8080. You can change address and port in src/config. THE SERVER IS STILL IN DEVELOPMENT SO IT'S NOT 100% SAFE - From here you will need tool like ngrok or port forwarding to make this accessible on WAN.
- Open ExampleGame.rbxl in repo. Everything is set up except for server URL.
- In workspace open "Pepe" model and open "APIScript"
- Replace AppUrl with your URL
- DONE! You can also change LogSize(ammount of messages that will be sent to AI) and AnswerEverynMessages(variable used to control how often will AI talk).