Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help - where is server/models.json? #48

Open
mapleroyal opened this issue Apr 16, 2023 · 3 comments
Open

Help - where is server/models.json? #48

mapleroyal opened this issue Apr 16, 2023 · 3 comments

Comments

@mapleroyal
Copy link

mapleroyal commented Apr 16, 2023

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.

@zainhuda
Copy link
Collaborator

zainhuda commented Apr 16, 2023

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

@mapleroyal
Copy link
Author

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?

@binh-nguyen2-ts
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants