Kit Dev: Run an LLM Locally
If you're using Kit with LLMs you can quickly run the model locally to speed integration, testing, or experimentation.
To run the ModelKit locally, first create a new directory for your LLM:
mkdir kitdev
cd kitdevNow unpack an LLM ModelKit - there are several on Jozu Hub, but here we're using Phi3 Mini because of its size:
kit unpack jozu.ml/jozu/phi3:3.8b-mini-instruct-4k-q4_K_MNow start your LLM dev server locally using the kit dev start command:
kit dev start .In the command output you'll see a URL you can use to interact with the LLM (there's a command flag to always use the same port). You can control parameters of the model, change the prompt, or chat with the LLM.
If you need to get logs use the dev logs command:
kit dev logsWhen you're done don't forget to stop the Kit dev server:
kit dev stopQuestions or suggestions? Drop an issue in our GitHub repository or join our Discord server to get support or share your feedback.
