-
I would like to change the AI LLM.
But how to switch between them? On huggingface I have the option to download less or more powerful version to adapt to my needs. Also if I want to deploy a more powerful version how to do it. In the previous version it was easy just changing the .env file. But how that works in the present version. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I tried to work it on my own with my limited knowledge. So it is transformed now into Guide to Configuring and Deploying a Local Language Model. What I did test is the following. Changing the default mistral-7b-instruct-v0.1.Q4_K_M.gguf with the slightly more powerfull mistral-7b-instruct-v0.1.Q5_K_S.gguf 1. Back up and Clearing data and models 2. Model Configuration
In my case i made the following changes, not just the model but also the embeddings passing from small to the base model.
The possibilities are in this page: https://huggingface.co/BAAI/bge-small-en-v1.5 3.Running Setup Scripts
Here the script will read the new model and new embeddings (if you choose to change them) and should download them for you into --> privateGPT/models4. Environment Variables Setting Local Profile: Set the environment variable to tell the application to use the local configuration.
5. Launching the Application
|
Beta Was this translation helpful? Give feedback.
-
You only need to edit the settings.yaml Go to hugging face, and select whatever model you want any copy the path here. I update the settings, download the appropriate file, store it in ./models and that is it |
Beta Was this translation helpful? Give feedback.
I tried to work it on my own with my limited knowledge. So it is transformed now into Guide to Configuring and Deploying a Local Language Model. What I did test is the following. Changing the default mistral-7b-instruct-v0.1.Q4_K_M.gguf with the slightly more powerfull mistral-7b-instruct-v0.1.Q5_K_S.gguf
1. Back up and Clearing data and models
In order to do that I made a local copy of my working installation.
-I deleted the local files local_data/private_gpt (we do not delete .gitignore)
-I delete under /models the installed model
-I delete the embedding, by deleting the content of the folder /model/embedding (not necessary if we do not change them)
2. Model Configuration
Update the set…