add jupyter readme
This commit is contained in:
parent
f7f6d6c693
commit
4936b5bb37
2 changed files with 7 additions and 13 deletions
5
examples/jupyter-notebook/README.md
Normal file
5
examples/jupyter-notebook/README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Ollama Jupyter Notebook
|
||||||
|
|
||||||
|
This example downloads and installs Ollama in a Jupyter instance such as Google Colab. It will start the Ollama service and expose an endpoint using `ngrok` which can be used to communicate with the Ollama instance remotely.
|
||||||
|
|
||||||
|
For best results, use an instance with GPU accelerator.
|
|
@ -1,17 +1,5 @@
|
||||||
{
|
{
|
||||||
"cells": [
|
"cells": [
|
||||||
{
|
|
||||||
"cell_type": "markdown",
|
|
||||||
"id": "38d57674-b3d5-40f3-ab83-9109df3a7821",
|
|
||||||
"metadata": {},
|
|
||||||
"source": [
|
|
||||||
"# Ollama Jupyter Notebook\n",
|
|
||||||
"\n",
|
|
||||||
"Ollama is the easiest way to run large language models (LLMs) locally. You can deploy it to macOS by installing the the macOS application, Linux by running the install script (below), and Docker or Kubernetes by pulling the official Ollama Docker image.\n",
|
|
||||||
"\n",
|
|
||||||
"For best results, this notebook should be run on a Linux node with a GPU or an environment like Google Colab."
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
|
@ -20,7 +8,8 @@
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"# Download and run the Ollama Linux install script\n",
|
"# Download and run the Ollama Linux install script\n",
|
||||||
"!curl https://ollama.ai/install.sh | sh"
|
"!curl https://ollama.ai/install.sh | sh\n",
|
||||||
|
"!command -v systemctl >/dev/null && sudo systemctl stop ollama"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue