Skip to content

Commit

Permalink
Merge pull request #608 from bmerkle/fix#chapter21#jupyternotebook
Browse files Browse the repository at this point in the history
fix chapter 21 improvements jupyternotebook
  • Loading branch information
koreyspace authored Oct 7, 2024
2 parents fc8887d + ad71b7c commit b5d6e40
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions 21-meta/python/githubmodels-assignment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"These models come in different variants and are available on the Github Model marketplace. Here are more details on using Github Models to [prototype with AI models](https://docs.github.com/en/github-models/prototyping-with-ai-models?WT.mc_id=academic-105485-koreyst).\n",
"\n",
"Model Variants: \n",
"Llama 3.1 - 70B Instruct \n",
"Llama 3.1 - 405B Instruct \n",
"Llama 3.2 - 11B Vision Instruct \n",
"Llama 3.2 - 90B Vision Instruct \n",
"- Llama 3.1 - 70B Instruct \n",
"- Llama 3.1 - 405B Instruct \n",
"- Llama 3.2 - 11B Vision Instruct \n",
"- Llama 3.2 - 90B Vision Instruct \n",
"\n",
"*Note: Llama 3 is also available on Github Models but won't be covered in this lesson*\n",
"\n"
Expand Down Expand Up @@ -76,17 +76,19 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<|python_tag|>brave_search.call(query=\"Stockholm weather\")\n"
]
}
],
"outputs": [],
"source": [
"%pip install azure-core\n",
"%pip install azure-ai-inference"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"from azure.ai.inference import ChatCompletionsClient\n",
Expand Down Expand Up @@ -147,19 +149,19 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%pip install azure-core\n",
"%pip install azure-ai-inference"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The image shows a woman on the left side of the frame, with a screenshot of a webpage on the right side. The woman has blonde hair and is wearing a dark-colored hoodie. She appears to be speaking or presenting something.\n",
"\n",
"On the right side of the image, there is a screenshot of a webpage titled \"MODEL CATALOG\" in large black text at the top. Below the title, there is a subtitle that reads, \"Find the right model to build your custom AI solution.\" The webpage has a white background with a blue border around it. There are several buttons and links on the page, including a search bar and a list of model names. The overall design of the webpage suggests that it is a platform for users to find and select AI models for their specific needs.\n"
]
}
],
"outputs": [],
"source": [
"import os\n",
"from azure.ai.inference import ChatCompletionsClient\n",
Expand Down Expand Up @@ -218,7 +220,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "venv",
"language": "python",
"name": "python3"
},
Expand All @@ -232,7 +234,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down

0 comments on commit b5d6e40

Please sign in to comment.