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
28c7813a
Unverified
Commit
28c7813a
authored
Jun 05, 2024
by
royjhan
Committed by
GitHub
Jun 05, 2024
Browse files
API PS Documentation (#4822)
* API PS Documentation
parent
1d8616d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
docs/api.md
docs/api.md
+46
-0
No files found.
docs/api.md
View file @
28c7813a
...
...
@@ -12,6 +12,7 @@
-
[
Pull a Model
](
#pull-a-model
)
-
[
Push a Model
](
#push-a-model
)
-
[
Generate Embeddings
](
#generate-embeddings
)
-
[
List Running Models
](
#list-running-models
)
## Conventions
...
...
@@ -1035,3 +1036,48 @@ curl http://localhost:11434/api/embeddings -d '{
]
}
```
## List Running Models
```
shell
GET /api/ps
```
List models that are currently loaded into memory.
\*
If a model is loaded completely into system memory,
`size_vram`
is omitted from the response.
#### Examples
### Request
```
shell
curl http://localhost:11434/api/ps
```
#### Response
A single JSON object will be returned.
```
json
{
"models"
:
[
{
"name"
:
"mistral:latest"
,
"model"
:
"mistral:latest"
,
"size"
:
5137025024
,
"digest"
:
"2ae6f6dd7a3dd734790bbbf58b8909a606e0e7e97e94b7604e0aa7ae4490e6d8"
,
"details"
:
{
"parent_model"
:
""
,
"format"
:
"gguf"
,
"family"
:
"llama"
,
"families"
:
[
"llama"
],
"parameter_size"
:
"7.2B"
,
"quantization_level"
:
"Q4_0"
},
"expires_at"
:
"2024-06-04T14:38:31.83753-07:00"
,
"size_vram"
:
5137025024
}
]
}
```
\ No newline at end of file
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