Added by: re@pex
Jul 24, 2023
Version

~> LocalAI

Description
LocalAI is a drop-in replacement REST API that’s compatible with OpenAI API specifications for local inferencing.
Links
Install (execute in workspace terminal)
wrk install localai==1.21.0
Remarks and hints
# Download model

cd /tmp
wget https://gpt4all.io/models/ggml-gpt4all-j.bin -O models/ggml-gpt4all-j

# List models

curl http://localhost:8080/v1/models

# Use

curl http://localhost:8080/v1/completions -H "Content-Type: application/json" -d '{
"model": "ggml-gpt4all-j",
"prompt": "A long time ago in a galaxy far, far away",
"temperature": 0.9
}'
Scripts
# Istall script # Start script
alnoda-workspace

no compatibility requirements