This project is a React-based frontend for LM Studio, replicating its functionality including Hugging Face model selection, chat features, and model loading/unloading.
-
Clone the repository:
git clone [repository URL] cd lm-studio-frontend -
Install dependencies:
npm install
-
Ensure LM Studio server is running:
The application requires the LM Studio server to be running. If you have the LM Studio CLI installed, you can start the server with:
lms server start --cors=true
If the
lmscommand is not found, please ensure that the LM Studio CLI is installed and in your PATH. Alternatively, you can manually start the server through the LM Studio application. -
Run the application:
npm start
This will start the development server and open the application in your default browser.
The ModelManagement component handles fetching the list of downloaded models, as well as loading and unloading models.
The ChatInterface component handles displaying the message history and sending user messages to the loaded model.
The ModelConfiguration component allows users to adjust model parameters such as context length, temperature, max tokens, and stop strings.