Minor improvements to README and Setup guides
This commit is contained in:
@@ -52,9 +52,12 @@ You can use this as a direct replacement:
|
|||||||
Below is a full example:
|
Below is a full example:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
# You need to do this one time on your computer
|
||||||
|
!ollama pull llama3.2
|
||||||
|
|
||||||
from openai import OpenAI
|
from openai import OpenAI
|
||||||
MODEL = "llama3.2"
|
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(
|
response = openai.chat.completions.create(
|
||||||
model=MODEL,
|
model=MODEL,
|
||||||
|
|||||||
@@ -91,8 +91,10 @@ Then, create a new virtual environment with this command:
|
|||||||
`llms\Scripts\activate`
|
`llms\Scripts\activate`
|
||||||
You should see (llms) in your command prompt, which is your sign that things are going well.
|
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.
|
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:**
|
5. **Start Jupyter Lab:**
|
||||||
|
|
||||||
|
|||||||
BIN
SETUP-PC.pdf
BIN
SETUP-PC.pdf
Binary file not shown.
@@ -84,8 +84,10 @@ Then, create a new virtual environment with this command:
|
|||||||
`source llms/bin/activate`
|
`source llms/bin/activate`
|
||||||
You should see (llms) in your command prompt, which is your sign that things are going well.
|
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.
|
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:**
|
5. **Start Jupyter Lab:**
|
||||||
|
|
||||||
|
|||||||
BIN
SETUP-mac.pdf
BIN
SETUP-mac.pdf
Binary file not shown.
Reference in New Issue
Block a user