ai_learning/SETUP.md

42 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Настройка на Windows
Требуется Python 3.11 или 3.12, Git и PowerShell.
```powershell
cd D:\ai_learning
py -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install -r requirements\core.txt
```
Если PowerShell запрещает активацию, измените policy только для текущего процесса:
```powershell
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
.\.venv\Scripts\Activate.ps1
```
Deep Learning, аудио и MLOps зависимости устанавливайте перед соответствующими
модулями:
```powershell
pip install -r requirements\deep-learning.txt
pip install -r requirements\audio.txt
pip install -r requirements\mlops.txt
```
Для PyTorch/torchaudio с GPU используйте совместимые сборки из официального
configurator на pytorch.org, соответствующие вашей версии CUDA. Не смешивайте
случайные версии `torch`, `torchvision` и `torchaudio`.
Проверка:
```powershell
python -c "import numpy, pandas, sklearn; print('core ok')"
pytest
```
Большие датасеты и веса моделей не коммитьте. Храните их в `data/` и `artifacts/`;
эти каталоги исключены через `.gitignore`.