You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sure a number of you want to start this at boot - and one caveat with LM-Studio is that it requires UI interaction to load a model at boot without some command line work.
Here is an example BAT file for Windows which after a little modification on your part depending on the model name achieves the following:
-Unloads your model first (in case you are re-running after your machine already has the model loaded)
-Reloads the model in LM-Studio
-Starts MESH-AI
INSTRUCTIONS
First - make sure you have LM-Studio set up as a system service (can be done in LM-Studio Preferences) and also LMS set up correctly by running the following -
Take note of your model you wish to use for the Mesh Network - and make sure it is the only one you have loaded in LM-Studio - unsure how multiple models loaded affects this script at this time.
Then - edit the BAT file changing lines 5 and 9 with your model name exactly as shown with 'lms ps'
Finally - place this BAT file in your startup folder - access the folder using:
"win+R" then enter "shell:startup"
You can also use this BAT file as a shortcut anywhere on your machine to start MESH-AI - and ensure your model is always loaded and ready to go.
That's it - executing this BAT file should handle all the startup of MESH-AI while using LM-Studio!
BAT FILE: (open your favorite text editor, copy & paste - and save as "WHATEVER YOU WANT.BAT")
@echo off
cd /d "%USERPROFILE%\Desktop\mesh-ai"
echo Unloading any previously loaded model before reloading...
lms unload <ENTER MODEL ID HERE>
timeout /t 2 /nobreak >nul
echo Loading defined model...
lms load <ENTER MODEL ID HERE>
timeout /t 5 /nobreak >nul
echo Running MESH-AI...
python mesh-ai.py
pause
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
STARTING MESH-AI AT WINDOWS BOOT WITH LM-STUDIO
I'm sure a number of you want to start this at boot - and one caveat with LM-Studio is that it requires UI interaction to load a model at boot without some command line work.
Here is an example BAT file for Windows which after a little modification on your part depending on the model name achieves the following:
INSTRUCTIONS
First - make sure you have LM-Studio set up as a system service (can be done in LM-Studio Preferences) and also LMS set up correctly by running the following -
cmd /c %USERPROFILE%/.lmstudio/bin/lms.exe bootstrap
(more info here - LM-Studio LMS)
Then, run
lms ps
Take note of your model you wish to use for the Mesh Network - and make sure it is the only one you have loaded in LM-Studio - unsure how multiple models loaded affects this script at this time.
Then - edit the BAT file changing lines 5 and 9 with your model name exactly as shown with 'lms ps'
Finally - place this BAT file in your startup folder - access the folder using:
"win+R" then enter "shell:startup"
You can also use this BAT file as a shortcut anywhere on your machine to start MESH-AI - and ensure your model is always loaded and ready to go.
That's it - executing this BAT file should handle all the startup of MESH-AI while using LM-Studio!
BAT FILE: (open your favorite text editor, copy & paste - and save as "WHATEVER YOU WANT.BAT")
Beta Was this translation helpful? Give feedback.
All reactions