https://github.com/hellonico/pyjama
Ollama Wrapper for Clojure
https://github.com/hellonico/pyjama
Last synced: about 1 year ago
JSON representation
Ollama Wrapper for Clojure
- Host: GitHub
- URL: https://github.com/hellonico/pyjama
- Owner: hellonico
- License: other
- Created: 2024-12-20T08:22:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-03T10:24:58.000Z (about 1 year ago)
- Last Synced: 2025-04-05T20:47:30.188Z (about 1 year ago)
- Language: Clojure
- Size: 116 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.dev.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# use in a different project
```clojure
{
:deps
{hellonico/pyjama {:git/url "https://github.com/hellonico/pyjama.git"
:sha "ec753eebffd422fd2d02eb1c93957a9f8adb0016"}}}
```
# Compile a generate client binary
```bash
# this needs the GRAAL VM to be installed
clj -A:native-image
```
Then
```bash
./pyjama --images resources/cute_cat.jpg -m "llava" -p "What is in the picture?"
```
or, if the ollama server is on a different machine:
```bash
./pyjama -p "Why is the sky blue?" -u http://localhost:11435
```
# Run the cool tests
```bash
clj -X:test :patterns '["morning.*"]'
```
# Command to upload a new modelfile to ollama form a gguf link
```bash
clj -M -m pyjama.ollama.cli https://huggingface.co/lm-kit/qwen-2.5-math-7.6b-instruct-gguf/resolve/main/Qwen-2.5-Math-7.6B-Instruct-Q6_K.gguf hellonico
```