Files
open-gsio/scripts/start_inference_server.sh
geoffsee 9e8b427826 Add scripts and documentation for local inference configuration with Ollama and mlx-omni-server
- Introduced `configure_local_inference.sh` to automatically set `.dev.vars` based on active local inference services.
- Updated `start_inference_server.sh` to handle both Ollama and mlx-omni-server server types.
- Enhanced `package.json` to include new commands for starting and configuring inference servers.
- Refined README to include updated instructions for running and adding models for local inference.
- Minor cleanup in `MessageBubble.tsx`.
2025-06-02 12:50:22 -04:00

13 lines
372 B
Bash
Executable File

#!/usr/bin/env bash
if [ "$1" = "mlx-omni-server" ]; then
printf "Starting Inference Server: %s\n" "$1"
mlx-omni-server --log-level debug
elif [ "$1" = "ollama" ]; then
echo "starting ollama"
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
else
printf "Error: First argument must be 'mlx-omni-server'\n"
exit 1
fi