diff --git a/README.md b/README.md index 5b133d8..88a5fbb 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,12 @@ You can use this as a direct replacement: Below is a full example: ``` +# You need to do this one time on your computer +!ollama pull llama3.2 + from openai import OpenAI MODEL = "llama3.2" -openai = OpenAI(base_url='http://localhost:11434/v1';, api_key='ollama') +openai = OpenAI(base_url="http://localhost:11434/v1", api_key="ollama") response = openai.chat.completions.create( model=MODEL, diff --git a/SETUP-PC.md b/SETUP-PC.md index 31ec6f2..055ddef 100644 --- a/SETUP-PC.md +++ b/SETUP-PC.md @@ -91,8 +91,10 @@ Then, create a new virtual environment with this command: `llms\Scripts\activate` You should see (llms) in your command prompt, which is your sign that things are going well. -4. Run `pip install -r requirements.txt` +4. Run `python -m pip install --upgrade pip` followed by `pip install -r requirements.txt` This may take a few minutes to install. +In the very unlikely event that this doesn't go well, you should try the bullet-proof (but slower) version: +`pip install --retries 5 --timeout 15 --no-cache-dir --force-reinstall --verbose -r requirements.txt` 5. **Start Jupyter Lab:** diff --git a/SETUP-PC.pdf b/SETUP-PC.pdf index 97cb81e..4a23be1 100644 Binary files a/SETUP-PC.pdf and b/SETUP-PC.pdf differ diff --git a/SETUP-mac.md b/SETUP-mac.md index f7ea8c6..1778ae2 100644 --- a/SETUP-mac.md +++ b/SETUP-mac.md @@ -84,8 +84,10 @@ Then, create a new virtual environment with this command: `source llms/bin/activate` You should see (llms) in your command prompt, which is your sign that things are going well. -4. Run `pip install -r requirements.txt` +4. Run `python -m pip install --upgrade pip` followed by `pip install -r requirements.txt` This may take a few minutes to install. +In the very unlikely event that this doesn't go well, you should try the bullet-proof (but slower) version: +`pip install --retries 5 --timeout 15 --no-cache-dir --force-reinstall --verbose -r requirements.txt` 5. **Start Jupyter Lab:** diff --git a/SETUP-mac.pdf b/SETUP-mac.pdf index 3c52cc3..82d7a08 100644 Binary files a/SETUP-mac.pdf and b/SETUP-mac.pdf differ