GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — SigmaStudioAI/sigma_studio.bat at main · Sigmanih/SigmaStudioAI

Expand file tree

/

sigma_studio.bat

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
75 lines (69 loc) · 2.94 KB
/

sigma_studio.bat

Copy path

File metadata and controls

75 lines (69 loc) · 2.94 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
@echo off
:: ============================================================================
:: Sigma Studio - Avvio su Windows
::
:: Questo file non installa niente e non decide niente: trova un Python
:: utilizzabile e passa la mano a sigma_launcher.py, che e' l'unico posto dove
:: sta la procedura di installazione.
::
:: Prima faceva altro, ed e' il motivo per cui una copia appena clonata non
:: partiva: creava il virtualenv, lo attivava e lanciava subito il server. Il
:: virtualenv era vuoto. Il server rispondeva con quattro avvisi di moduli
:: mancanti e poi moriva su "No module named 'uvicorn'", mentre il frontend
:: falliva con "vite non e' riconosciuto". Nessuno dei due era il vero errore:
:: mancava il passaggio di installazione, che su Linux e macOS c'era da sempre
:: perche' sigma_studio.sh delegava al launcher e questo file no.
::
:: Anche le variabili d'ambiente sono sparite da qui. Erano scritte a mano
:: (CUDA_VISIBLE_DEVICES=0,1 su una macchina con una scheda sola, dodici thread
:: su qualunque processore): il launcher le ricava dall'hardware vero e da
:: config.json.
:: ============================================================================
title Sigma Studio
cd /d "%~dp0"
:: 1. Un Python utilizzabile. `py -3` e' l'avviatore ufficiale di Windows e
:: trova l'installazione giusta anche quando `python` punta all'alias del
:: Microsoft Store, che non e' un interprete e apre il negozio.
set "SIGMA_PY="
if exist ".venv\Scripts\python.exe" (
set "SIGMA_PY=.venv\Scripts\python.exe"
) else (
py -3 --version >nul 2>&1 && set "SIGMA_PY=py -3"
if not defined SIGMA_PY (
python --version >nul 2>&1 && set "SIGMA_PY=python"
)
)
if not defined SIGMA_PY (
echo.
echo Python 3 non trovato.
echo.
echo Installalo da https://www.python.org/downloads/ ^(serve la 3.10 o
echo successiva^) e ricordati di spuntare "Add Python to PATH" durante
echo l'installazione. Poi rilancia questo file.
echo.
pause
exit /b 1
)
:: 2. La versione minima si verifica qui: piu' avanti fallirebbe dentro una
:: dipendenza, con un messaggio che non nomina Python.
%SIGMA_PY% -c "import sys; raise SystemExit(0 if sys.version_info >= (3,10) else 1)" >nul 2>&1
if errorlevel 1 (
echo.
echo Sigma Studio richiede Python 3.10 o successivo.
%SIGMA_PY% -c "import sys; print(' Versione trovata: ' + sys.version.split()[0])"
echo Aggiorna da https://www.python.org/downloads/ e rilancia.
echo.
pause
exit /b 1
)
:: 3. Da qui in poi decide il launcher: virtualenv, dipendenze Python, Node,
:: runtime GGUF, build del frontend e avvio. Gli argomenti passano attraverso,
:: cosi' `sigma_studio.bat --install` e `--check` funzionano come su POSIX.
%SIGMA_PY% sigma_launcher.py %*
if errorlevel 1 (
echo.
echo [SIGMA] Avvio interrotto. Il messaggio qui sopra dice perche'.
echo Se il problema riguarda le dipendenze, prova: sigma_studio.bat --install
echo.
pause
)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.