# ๊ฐ์ํ๊ฒฝ ์์ฑ
# ๋ค๋ฅธ ๊ฒ๊ณผ ํธํ๋๋ python ๋ฒ์ ์ผ๋ก.. ํนํ pytorch;;;
conda create -n 'name' python=3.10
# ๋ค์ด ํ๋ผ๋ ๊ฑฐ ํ๊ธฐ
pip install -U datasets
pip install git+https://github.com/huggingface/transformers.git@main
# pytorch ์ค์น ( gpu (cuda)๋ ํธํ๋๋ ๋ฒ์ ์ฐพ์์! )
pip install torch==2.1.0 torchvision==0.16.0 --index-url https://download.pytorch.org/whl/cu118
import pytorch
'''
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
'''
# ์ด๋ฐ ์ค๋ฅ๊ฐ ๋ฌ๋ค. numpy downgrade ใฑใฑ
# Numpy ๋ค์ด๊ทธ๋ ์ด๋
pip install 'numpy<2'
#๋๋์ด ์ฑ๊ณต ใ
ใ
- pytorch ๋ฒ์ ใ ใ ๊ธ
https://velog.io/@yun5/yolov8-%EC%84%A4%EC%B9%98%EA%B8%B0
: torch==2.1.0๊ณผ torchvision==0.16.0์ CUDA 11.8 ๋ฒ์ ๊ณผ ํธํ๋๋ Python ๋ฒ์ ์ Python 3.8, 3.9, 3.10์ ๋๋ค.
*** ์๋ฒ GPU ์ฐ๋ ค๋ฉด, cuda ๋ฒ์ ์ด๋ ๋ง๋ torch๋ฅผ ๊น์์ผ ํ๋ค๊ณ ํจ !!!
# ์ด๊ฑฐ ํ๋ค๊ฐ ๋ค์ ์ค๋ฅ ๋ฐ์ ..ํ..
pip install torchaudio
"""
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchvision 0.16.0+cu118 requires torch==2.1.0, but you have torch 2.4.1 which is incompatible.
"""
์ฆ ๋ ๋ ๋ ๋ฒ์ ์ด ์ ๋ง๋ค๊ณ ํ๋ค.
๊ทธ๋ฅ torchaudio ์ค์นํ๋ค๊ฐ torch ๋ฒ์ ๊น์ง ๋ฐ๊ปด๋ฒ๋ฆฐ ๊ฒ.... ๊ทธ๋์ ์๊น ๋งจ ์์ ์ค๋ฅ๋ก ํ๊ทํ์ ํ..
๋ค์ ์์ ์ฝ๋๋ก torch install ํด์ฃผ๊ณ
๋ง๋ torchaudio ๋ฒ์ ์ install ํด์ผ ํ๋ค
'''
torchaudio 2.4.1 requires torch==2.4.1, but you have torch 2.1.0+cu118 which is incompatible.
'''
# ์ผ๋จ 2.0.2 ๋ฒ์ ์ผ๋ก ์ฑ๊ณตํ๊ธด ํจ
pip install torchaudio==2.0.2
torch 2.1.0 ๊ณผ cuda 11.8์ ๋ง๋ torchaudio๋ฅผ install ํ๋ฉด ๋๋ค!
์ผ์นํ๋ ๋ฒ์ ์ด ์ ๋ฆฌ๋์ด ์๋ ์ ๋ณด๋ ์ฐพ์ง ๋ชปํ์ง๋ง
์ด๊ฒ ์ ๊ฒ ์์นํด๋ณด๋ฉด์
" my TorchAudio version is 2.0.2 ๏ผDoes the latest version of TorchAudio not support CUDA 11.8๏ผ" ๋ผ๋ ์ง๋ฌธ ๊ธ์ ๋ณด๊ณ ..
https://pypi.org/project/torchaudio/2.0.2/#history
์ฌ๊ธฐ์ ๋๋ต ๊ฐ์ผ๋ก ํ๋์ฉ ํด๋ด ;;ใ ใ
์ค๊ฐ์ ๋ค๋ฅธ ์ผ ํ๋ค๊ฐ ์๋๋ฐ ๊ฐ์๊ธฐ ์ฝ๋ ๋์๊ฐ๋ค.. ์์ง
'๐ etc' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Mac ํฐ๋ฏธ๋ python ๋น ์ ธ๋์ค๊ธฐ (0) | 2025.01.27 |
---|---|
git init / add / commit / init ์ทจ์ / commit ๋ด์ญ ์ทจ์ (0) | 2024.11.24 |
ํฐ๋ฏธ๋ ์๋ฒ-๋ก์ปฌ ํ์ผ/ํด๋ ์ฎ๊ธฐ๊ธฐ (2) | 2024.10.14 |
์๋์ฐ์ Linux (UBUNTU) + anaconda ์ค์น (0) | 2024.10.04 |
๋งฅ ํฐ๋ฏธ๋ python 3.6.10 ์๋ฌ (๊ตฌ๋ฒ์ install) / ํ๊ฒฝ ๋ฐ๊พธ๊ธฐ (1) | 2024.10.02 |