ollama source for Momentry Core verification

This commit is contained in:
Accusys
2026-05-22 17:19:10 +08:00
commit 0b31ff9135
2020 changed files with 1413145 additions and 0 deletions

21
runner/README.md Normal file
View File

@@ -0,0 +1,21 @@
# `runner`
> Note: this is a work in progress
A minimial runner for loading a model and running inference via a http web server.
```shell
./runner -model <model binary>
```
### Completion
```shell
curl -X POST -H "Content-Type: application/json" -d '{"prompt": "hi"}' http://localhost:8080/completion
```
### Embeddings
```shell
curl -X POST -H "Content-Type: application/json" -d '{"prompt": "turn me into an embedding"}' http://localhost:8080/embedding
```