openplayground icon indicating copy to clipboard operation
openplayground copied to clipboard

Help - where is server/models.json?

Open mapleroyal opened this issue 2 years ago • 3 comments

Where is this file?

If I run the server and go to localhost:5432/models.json there's no file to edit there.

Also, are there any templates for the llama models? I mean, I'm grateful for this entire project for free, but it seems kind of strange to have to write the template for each model manually, but I don't know...🤷‍♂️ I don't even know what all the parameters are or their ranges.

mapleroyal avatar Apr 16 '23 17:04 mapleroyal

If you want edit the settings of models you've chosen you can go to localhost:5432/settings. models.json exists in the directory where the package is installed (or if you cloned the repository, wherever you cloned it to)

Take a look at this https://github.com/nat/openplayground/pull/11 for llama

zainhuda avatar Apr 16 '23 23:04 zainhuda

If you want edit the settings of models you've chosen you can go to localhost:5432/settings. models.json exists in the directory where the package is installed (or if you cloned the repository, wherever you cloned it to)

Take a look at this #11 for llama

To install, I made a directory /home/user1/repos/openplayground/, created a python virtual environment, then ran python3 -m pip install openplayground. When it finished, I have models.json in two locations:

/home/user1/repos/openplayground/env/lib/python3.10/site-packages/server/models.json /home/user1/.config/openplayground/models.json

They appear to be identical. Which one do I edit? And why are there two?

mapleroyal avatar Apr 17 '23 16:04 mapleroyal

/home/user1/.config/openplayground/models.json this one would take effect after restarting the app.

binh-nguyen2-ts avatar Sep 21 '23 10:09 binh-nguyen2-ts