#!/usr/bin/env bash # ERNIE 5.5 Flash Preview lokal ausprobieren – macOS # Automatisch erzeugt von Tokenstrom (tokenstrom.de). # Aufruf: bash try_mac.sh set -e cd "$(dirname "$0")" echo "== ERNIE 5.5 Flash Preview ==" echo "WARNUNG: Groß (299,6 Mrd. Parameter, MoE): komplett auf der Grafikkarte braucht es viel VRAM, mit MoE-Offloading reicht eine normale Grafikkarte plus viel Arbeitsspeicher (siehe Tabelle). Colab Free reicht nicht." echo "== Python / Hugging Face ==" python3 -m venv .venv-ernie-5-5-flash-preview source .venv-ernie-5-5-flash-preview/bin/activate pip install -q -U pip pip install -q -U torch transformers accelerate python3 demo.py