|
70 | 70 | "configure_environment(additional_env_vars=additional_keys)"
|
71 | 71 | ]
|
72 | 72 | },
|
73 |
| - { |
74 |
| - "cell_type": "code", |
75 |
| - "execution_count": null, |
76 |
| - "id": "744c5c15", |
77 |
| - "metadata": {}, |
78 |
| - "outputs": [], |
79 |
| - "source": [ |
80 |
| - "print(os.environ[\"AWS_SECRET_ACCESS_KEY\"])" |
81 |
| - ] |
82 |
| - }, |
83 | 73 | {
|
84 | 74 | "cell_type": "code",
|
85 | 75 | "execution_count": null,
|
|
145 | 135 | "print(response.choices[0].message.content)"
|
146 | 136 | ]
|
147 | 137 | },
|
148 |
| - { |
149 |
| - "cell_type": "code", |
150 |
| - "execution_count": null, |
151 |
| - "id": "5388efc4-3fd2-4dc6-ab58-7b179ce07943", |
152 |
| - "metadata": {}, |
153 |
| - "outputs": [], |
154 |
| - "source": [ |
155 |
| - "octo_llama3_8b = \"octo:meta-llama-3-8b-instruct\"\n", |
156 |
| - "#octo_llama3_70b = \"octo:meta-llama-3-70b-instruct\"\n", |
157 |
| - "\n", |
158 |
| - "response = client.chat.completions.create(model=octo_llama3_8b, messages=messages)\n", |
159 |
| - "\n", |
160 |
| - "print(response.choices[0].message.content)" |
161 |
| - ] |
162 |
| - }, |
163 | 138 | {
|
164 | 139 | "cell_type": "code",
|
165 | 140 | "execution_count": null,
|
|
175 | 150 | "print(response.choices[0].message.content)"
|
176 | 151 | ]
|
177 | 152 | },
|
178 |
| - { |
179 |
| - "cell_type": "code", |
180 |
| - "execution_count": null, |
181 |
| - "id": "668a6cfa-9011-480a-ae1b-6dbd6a51e716", |
182 |
| - "metadata": {}, |
183 |
| - "outputs": [], |
184 |
| - "source": [ |
185 |
| - "#!pip install fireworks-ai" |
186 |
| - ] |
187 |
| - }, |
188 |
| - { |
189 |
| - "cell_type": "code", |
190 |
| - "execution_count": null, |
191 |
| - "id": "9900fdf3-a113-40fd-b42f-0e6d866838be", |
192 |
| - "metadata": {}, |
193 |
| - "outputs": [], |
194 |
| - "source": [ |
195 |
| - "fireworks_llama3_8b = \"fireworks:accounts/fireworks/models/llama-v3-8b-instruct\"\n", |
196 |
| - "#fireworks_llama3_70b = \"fireworks:accounts/fireworks/models/llama-v3-70b-instruct\"\n", |
197 |
| - "\n", |
198 |
| - "response = client.chat.completions.create(model=fireworks_llama3_8b, messages=messages)\n", |
199 |
| - "\n", |
200 |
| - "print(response.choices[0].message.content)" |
201 |
| - ] |
202 |
| - }, |
203 | 153 | {
|
204 | 154 | "cell_type": "code",
|
205 | 155 | "execution_count": null,
|
|
218 | 168 | {
|
219 | 169 | "cell_type": "code",
|
220 | 170 | "execution_count": null,
|
221 |
| - "id": "6baf88b8-2ecb-4bdf-9263-4af949668d16", |
| 171 | + "id": "19cdb1ab", |
222 | 172 | "metadata": {},
|
223 | 173 | "outputs": [],
|
224 | 174 | "source": [
|
225 |
| - "replicate_llama3_8b = \"replicate:meta/meta-llama-3-8b-instruct\"\n", |
226 |
| - "#replicate_llama3_70b = \"replicate:meta/meta-llama-3-70b-instruct\"\n", |
227 |
| - "\n", |
228 |
| - "response = client.chat.completions.create(model=replicate_llama3_8b, messages=messages)\n", |
229 |
| - "\n", |
230 |
| - "print(response.choices[0].message.content)" |
231 |
| - ] |
232 |
| - }, |
233 |
| - { |
234 |
| - "cell_type": "code", |
235 |
| - "execution_count": null, |
236 |
| - "id": "6819ac17", |
237 |
| - "metadata": {}, |
238 |
| - "outputs": [], |
239 |
| - "source": [ |
240 |
| - "ollama_llama3 = \"ollama:llama3\"\n", |
241 |
| - "\n", |
242 |
| - "response = client.chat.completions.create(model=ollama_llama3, messages=messages, temperature=0.75)\n", |
243 |
| - "\n", |
| 175 | + "ollama_tinyllama = \"ollama:tinyllama\"\n", |
| 176 | + "ollama_phi3mini = \"ollama:phi3:mini\"\n", |
| 177 | + "response = client.chat.completions.create(model=ollama_phi3mini, messages=messages, temperature=0.75)\n", |
244 | 178 | "print(response.choices[0].message.content)"
|
245 | 179 | ]
|
246 | 180 | },
|
|
0 commit comments