#!/usr/bin/env bash # Ling-3.0-flash-Sante lokal ausprobieren – macOS # Automatisch erzeugt von Tokenstrom (tokenstrom.de). # Aufruf: bash try_mac.sh # Ollama (Standard) # MODE=hf bash try_mac.sh # Python/transformers set -e cd "$(dirname "$0")" echo "== Ling-3.0-flash-Sante ==" echo "WARNUNG: Groß (127.5 Mrd. Parameter): braucht auch quantisiert ~78.0 GB VRAM/RAM. Colab Free (T4, 15 GB) reicht nicht." if [ "${MODE:-ollama}" = "ollama" ]; then echo "== Ollama ==" if ! command -v ollama >/dev/null 2>&1; then if command -v brew >/dev/null 2>&1; then brew install ollama; else echo "Bitte Ollama installieren: https://ollama.com/download/mac"; exit 1; fi fi curl -s http://localhost:11434/api/tags >/dev/null 2>&1 || (ollama serve >/dev/null 2>&1 &) sleep 3 ollama pull "hf.co/AtomicChat/Ling-3.0-flash-Sante-GGUF" echo "Starte Chat – beenden mit /bye" exec ollama run "hf.co/AtomicChat/Ling-3.0-flash-Sante-GGUF" fi echo "== Python / Hugging Face ==" python3 -m venv .venv-ling-3-0-flash-sante source .venv-ling-3-0-flash-sante/bin/activate pip install -q -U pip pip install -q -U torch transformers accelerate python3 demo.py