# DeepSeek-V4.1-Flash-1017 lokal ausprobieren – Windows (PowerShell) # Automatisch erzeugt von Tokenstrom (tokenstrom.de). # Aufruf: powershell -ExecutionPolicy Bypass -File try_windows.ps1 # $env:MODE='hf'; powershell -ExecutionPolicy Bypass -File try_windows.ps1 (Python statt Ollama) $ErrorActionPreference = "Stop" Set-Location $PSScriptRoot Write-Host "== DeepSeek-V4.1-Flash-1017 ==" if (Get-Command nvidia-smi -ErrorAction SilentlyContinue) { nvidia-smi --query-gpu=name,memory.total --format=csv,noheader } Write-Host "WARNUNG: Riesig (763.2 Mrd. Parameter): lokal praktisch nur auf Servern mit mehreren GPUs. Colab Free reicht nicht." -ForegroundColor Yellow if ($env:MODE -ne "hf") { Write-Host "== Ollama ==" if (-not (Get-Command ollama -ErrorAction SilentlyContinue)) { winget install -e --id Ollama.Ollama --accept-source-agreements --accept-package-agreements $env:Path = [Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [Environment]::GetEnvironmentVariable("Path","User") } try { Invoke-WebRequest -UseBasicParsing http://localhost:11434/api/tags | Out-Null } catch { Start-Process -WindowStyle Hidden ollama -ArgumentList "serve"; Start-Sleep 3 } ollama pull "hf.co/nazeshinjite/DeepSeek-V4.1-Flash-1017-ds4-GGUF" ollama run "hf.co/nazeshinjite/DeepSeek-V4.1-Flash-1017-ds4-GGUF" exit } Write-Host "== Python / Hugging Face ==" python -m venv .venv-deepseek-v4-1-flash-1017 & .\.venv-deepseek-v4-1-flash-1017\Scripts\Activate.ps1 python -m pip install -q -U pip if (Get-Command nvidia-smi -ErrorAction SilentlyContinue) { 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 transformers accelerate pillow scipy } python demo.py