OpenInterpreter / open-interpreter

A natural language interface for computers
http://openinterpreter.com/
GNU Affero General Public License v3.0
52.64k stars 4.65k forks source link

Question: Where is the path to the model download? #127

Closed tisfeng closed 1 year ago

tisfeng commented 1 year ago

I tried to run it on macOS in local mode but failed, I want to delete the already downloaded model but I don't know the file path.

andraz commented 1 year ago

I managed to figure out one location to be inside homedir (~) /llama.cpp/models

You can put in there a manually downloaded file of the model and name it as one of these files: https://github.com/KillianLucas/open-interpreter/blob/main/interpreter/llama_2.py#L18

I've got 13b-instruct.Q5, but I just renamed it to Q4 so it finds it.

    Directory: C:\Users\andra\llama.cpp\models

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----        24/08/2023     22:33     9402834720 codellama-13b-instruct.Q4_K_M.gguf
Binary-Bytes commented 1 year ago

If you're on Mac, should be at /Users/UserName/Library/Application Support/Open Interpreter/models/ folder. Not sure about windows.

KillianLucas commented 1 year ago

@jordanbtucker wrote this code snippet, which will locate Code Llama install folder on any operating system:

python -c 'import appdirs; print(appdirs.user_data_dir("Open Interpreter"))'

Let me know if that works!

We're also going to print the download location when you select it in the next version, so you don't have to try to find it.

c469591 commented 1 year ago

Hello, I would like to know where it stores the model on Windows. I can't seem to find its location. Thank you.

c469591 commented 1 year ago

I found it. C:\Users\Administrator\AppData\Local\Open Interpreter\Open Interpreter

tisfeng commented 1 year ago

@KillianLucas Thanks, but it's a bit strange, I don't see "Open Interpreter" under this path, does it automatically delete the model file when it fails to run?

When I downloaded the model before, I watched the progress bar step by step and it took almost an hour, this should have downloaded successfully.

image
webia1 commented 1 year ago

@tisfeng

Should the installation process be interrupted for any reason (perhaps due to an Apple M1/M2 chipset, etc.), please be aware that the model will not be automatically removed from your system. It will remain in the following directories below and you would need to manually delete it.

For MacOS: /Users/<user-name>/Library/Application Support/
For Windows: ..AppData\Local\Open Interpreter\Open Interpreter

If you install Python on a Mac using the command brew install python, it will install version 3, which is executable with python3. To ascertain the location where the model has been copied, you would need to execute the following command:

python3 -c 'import appdirs; print(appdirs.user_data_dir("Open Interpreter"))'

If you are utilizing an Apple M1/M2 chipset, you may attempt the installation following the guidelines provided in this link: How to Install Llama in MacOS.

JJery-web commented 1 year ago

How can I change the path to the model download please. My C disk has no more space :(

drhouse commented 1 year ago

How can I change the path to the model download please. My C disk has no more space :(

I had the same problem, so I made a symlink folder and it's downloading fine. A symlink connects two folders that have the same name and can be on different hard drives, it treats one like the other. So, for example, a C:\folder (low disk space) can be symlinked to N:\folder (lots of disk space).

You can use this context-menu tool or the 'mklink' command on console window (it's very easy). Check folder Properties to see if the symlink worked the way you wanted.

sascharo commented 1 month ago

How can I change the path to the model download please. My C disk has no more space :(

Doesn't the environment variable OLLAMA_MODELS work for you?