Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
99ad4d0c
Unverified
Commit
99ad4d0c
authored
Jun 28, 2023
by
Michael Yang
Committed by
GitHub
Jun 28, 2023
Browse files
Merge pull request #13 from jmorganca/update-development-md
update development.md
parents
b5c54f5a
98119569
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
29 deletions
+23
-29
README.md
README.md
+9
-0
docs/development.md
docs/development.md
+13
-28
pyproject.toml
pyproject.toml
+1
-1
No files found.
README.md
View file @
99ad4d0c
...
@@ -20,6 +20,15 @@ Run ai models locally.
...
@@ -20,6 +20,15 @@ Run ai models locally.
pip install ollama
pip install ollama
```
```
## Install From Source
```
git clone git@github.com:jmorganca/ollama ollama
cd ollama
pip install -r requirements.txt
pip install -e .
```
## Quickstart
## Quickstart
```
```
...
...
docs/development.md
View file @
99ad4d0c
# Development
# Development
ollama is built and run using
[
Poetry
](
https://python-poetry.org/
)
.
ollama is built using Python 3 and uses
[
Poetry
](
https://python-poetry.org/
)
to manage dependencies and build packages.
## Running
**Start backend service:**
Install dependencies:
```
```
p
oetry
install
--extras server
p
ip
install
poetry
```
```
Run a server
:
Install ollama and its dependencies
:
```
```
poetry
run ollama serve
poetry
install --extras server --with dev
```
```
## Building
Run ollama server:
If using Apple silicon, you need a Python version that supports arm64:
```
bash
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh
bash Miniforge3-MacOSX-arm64.sh
```
```
poetry run ollama server
Get the dependencies:
```
bash
poetry
install
--extras
server
```
```
Then build a binary for your current platform
:
Update dependencies
:
```
bash
```
poetry build
poetry update --extras server --with dev
poetry lock
poetry export >requirements.txt
```
```
## Update requirements.txt
Build binary package:
In the root directory, run:
```
```
p
ipreqs . --force
p
oetry build
```
```
pyproject.toml
View file @
99ad4d0c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
name
=
"ollama"
name
=
"ollama"
version
=
"0.0.2"
version
=
"0.0.2"
description
=
"Run ai models locally"
description
=
"Run ai models locally"
authors
=
[
"
O
llama team"
]
authors
=
[
"
o
llama team"
]
readme
=
"README.md"
readme
=
"README.md"
packages
=
[
{include
=
"ollama"
}
]
packages
=
[
{include
=
"ollama"
}
]
scripts
=
{
ollama
=
"ollama.cmd.cli:main"
}
scripts
=
{
ollama
=
"ollama.cmd.cli:main"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment