You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/lab-1/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ If not you can use these steps in VSCode:
49
49
Next you'll need to configure `continue` which will require you to take the following `json` and open the `config.json`
50
50
file via the command palette.
51
51
52
-
1. Open the command palette (Press Ctrl/Cmd+Shift+P)
52
+
1. Open the command palette (Press Cmd+Shift+P)
53
53
2. Select Continue: Open `config.json`.
54
54
55
55
In `config.json`, add a section for each model you want to use. Here, we're registering the Granite Code 20b model we downloaded earlier. Replace the line that says `"models": []` with the following:
Copy file name to clipboardExpand all lines: docs/lab-2/README.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@
2
2
3
3
Lets play with our new found local AI Open Source AI!
4
4
5
+
!!! note
6
+
There is an expectation of some programming experience/knowledge here, if you don't have any
7
+
or are uncomfortable here, don't fret! Our TA's are here to help and want to help, raise your
8
+
hand and ask. You can always skip to Lab 3, or Lab 5 if you want.
9
+
5
10
## Sanity checks
6
11
7
12
When you open up `continue` inside of VSCode it should look something like:
@@ -11,7 +16,7 @@ Before we go any farther, write in "Who is batman?" to verify that `ollama`,
11
16
VSCode, and `continue` are all working correctly.
12
17
13
18
!!! troubleshooting
14
-
If Continue is taking a long time to respond, restart Visual Studio Code. If that doesn't resolve your issue, restart Ollama.
19
+
If Continue is taking a long time to respond, restart Visual Studio Code. If that doesn't resolve your issue, restart `ollama`.
15
20
16
21
If you would like to go deeper with `continue`, take a look at the [official Continue.dev how-to guide](https://docs.continue.dev/how-to-use-continue).
17
22
Its worth taken the moment if you want, otherwise, when you get home and try this on your own
@@ -64,16 +69,16 @@ Don't believe me? Bring up the terminal and attempt to run this code after you a
64
69
65
70

66
71
67
-
Well that isn't good is it? Yours may be different code, or maybe it does work, but at least in this
68
-
example we need to to get the code fixed.
72
+
Well that isn't good is it? Yours **will probably**be different code, or maybe it does work (if it does you're lucky
73
+
and raise your hand the TAs will want to see it), but at least in this example we need to to get the code fixed.
69
74
70
75
## First pass at debugging
71
76
72
77
I'll run the following commands to build up an virtual environment, and install some modules, lets
73
78
see how far we get.
74
79
75
80
!!! tip
76
-
If these next commands are foreign to you, it's ok. These are `python` commands, and you can just
81
+
If these next commands are foreign to you, it's OK. These are `python` commands, and you can just
77
82
copy paste it in. If you'd like to know more or _why_ it is, raise your hand a TA should be able
78
83
to explain it to you.
79
84
@@ -91,7 +96,7 @@ so it's more readable.
91
96
92
97
!!! note
93
98
You can try using the built-in autocomplete and code assistant functions to generate any missing code.
94
-
In our example, we're missing a "main" entry point to the script. Try hitting `cmd/ctrl + I` again,
99
+
In our example, we're missing a "main" entry point to the script. Try hitting `cmd + I` again,
95
100
and typing in something like: "write a main function for my game that plays twenty rounds of Conway's
96
101
game of life using the `board()` function." What happens?
97
102
@@ -126,7 +131,7 @@ I can at least run my application now:
126
131
127
132
But that doesn't work right?! OK, lets start debugging more. This next step is to leverage Granite-Code to
128
133
tell me whats going on with the different functions. Go ahead and highlight any _one_ of them and run:
129
-
`ctrl-L` or `command-L` to add it to the context window and ask granite-coder something like
134
+
`cmd-L` to add it to the context window and ask granite-coder something like
0 commit comments