#!/usr/bin/env bash # MiniMax-M3.1-Flash lokal ausprobieren – Linux # Automatisch erzeugt von Tokenstrom (tokenstrom.de). # Aufruf: bash try_linux.sh set -e cd "$(dirname "$0")" echo "== MiniMax-M3.1-Flash ==" if command -v nvidia-smi >/dev/null 2>&1; then nvidia-smi --query-gpu=name,memory.total --format=csv,noheader; else echo "Keine NVIDIA-GPU gefunden – läuft auf CPU (langsam)"; fi echo "WARNUNG: Riesig (220.5 Mrd. Parameter): lokal praktisch nur auf Servern mit mehreren GPUs. Colab Free reicht nicht." echo "== Python / Hugging Face ==" python3 -m venv .venv-minimax-m3-1-flash source .venv-minimax-m3-1-flash/bin/activate pip install -q -U pip if command -v nvidia-smi >/dev/null 2>&1; then pip install -q -U torch --index-url https://download.pytorch.org/whl/cu124 pip install -q -U transformers accelerate pillow scipy else pip install -q -U torch --index-url https://download.pytorch.org/whl/cpu pip install -q -U transformers accelerate pillow scipy fi python3 demo.py