Skip to content

Commit 5c7d99f

Browse files
authored
Update index.md
1 parent 22832c8 commit 5c7d99f

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

ai/index.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,30 +52,38 @@ The related sub-pages linked above -- *gcp*, *aws* and *azure* -- are AI notes o
5252
- OLMO at AI2
5353
- Maizey at UMich
5454

55+
## context
56+
57+
Suggestion: Build a prompt using the "PACE" guideline acronym: State Problem, Action, Context, Example.
5558

56-
## ai recipe
5759

60+
## ai recipe
5861

5962
Let's run through a HuggingFace example subject to these constraints:
6063

6164
- Easy to implement on Ubuntu Linux running on WSL2 in turn on a Windows laptop
6265
- Very lightweight processing task
6366

67+
68+
Update the Advanced Package Tool `apt` library registry; and permit it to make upgrades of
69+
installed libraries:
70+
71+
6472
```
6573
sudo apt update
6674
sudo apt upgrade
6775
```
6876

69-
```
70-
sudo apt install python3 python3-pip
71-
```
77+
Ensure that `python`, `pip` and `conda` are installed. Let's assume `pip` will do the job:
78+
First install `pytorch`, then `transformers`.
79+
7280

7381
```
74-
pip3 install transformers
75-
pip3 install torch # PyTorch
82+
pip install torch
83+
pip install transformers
7684
```
7785

78-
Optional: Clone a repo for a web interface:
86+
To set up a browser-based interface: Clone the following repository:
7987

8088

8189
```

0 commit comments

Comments
 (0)