Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Laptop #CPUID
- Callaway #Mavrik #Epic Flash
- Arduino #PlatformIO #macOS
- x99 itx/ac
- Octave #homebrew #macOS
- Dell #Latitude #BIOS
- TensorFlow #Python #pip
- 매크로렌즈 #리버스링
- ITOP40
- razer #deathadder #viper #g102
- 피코프레소 #ITOP40
- 다이슨 #배터리
- Oh My Zsh #macOS
- CM-EF-NEX
- Java #MacBook #macOS
- ESP32 #Arduino
- Arduino #Wall Plotter
- Xeon #E5-2680
- VNC #Firewall #CenOS7 #VMware
- VirtualBox #VMware
- macro lens #EF #FD
- egpu #aorus gaming box #gtx1070 #tb3
- Tarantula #3D 프린터
- k6 #피코프레소
- Linux #VirtualBox
- cycloidal #rv reducer
- fat32 #rufus
- centos7 #yum update #/boot
- VMware #Shared Folder
- XTU #Virtual Machine System
Archives
- Today
- Total
얕고 넓게
[AI] 환경설정 @Ubuntu 본문
2025.04.09
curl -fsSL https://ollama.com/install.sh | sh
sudo apt install vim
sudo apt install python3-pip
sudo apt install python3.12-venv
python3 -m venv venv_openwebui
source venv_openwebui/bin/activate
pip install open-webui
open-webui serve
source venv_openwebui/bin/activate
pip install huggingface_hub
huggingface-cli login
huggingface-cli whoami
huggingface-cli download meta-llama/Meta-Llama-3-8B --local-dir ./llama3.1-8B --local-dir-use-symlinks False
sudo apt install nvtop
sudo apt install nvidia-cuda-toolkit
sudo apt install vim-gtk3
########################################################
# 1. Miniconda 설치 스크립트 다운로드
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
# 2. 실행 권한 부여
chmod +x Miniconda3-latest-Linux-x86_64.sh
# 3. 설치 실행
./Miniconda3-latest-Linux-x86_64.sh
echo "source ~/miniconda3/etc/profile.d/conda.sh" >> ~/.bashrc
source ~/.bashrc
conda --version
conda create -n llama python=3.10 -y
conda activate llama
# PyTorch 설치 (CUDA 12.1 기준, CUDA 버전에 맞게 조정)
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
# Hugging Face 관련 패키지
pip install transformers datasets accelerate peft bitsandbytes sentencepiece scipy
python -c "import torch; print(torch.cuda.is_available())"
python -c "import transformers; print(transformers.__version__)"
'IT > AI.ML' 카테고리의 다른 글
[AI] text-generation-webui @Ubuntu (0) | 2025.04.11 |
---|---|
[AI] Llama 파인튜닝 @Ubuntu (0) | 2025.04.10 |
[AI] Llama 파인튜닝 with Copilot (0) | 2025.04.08 |
[AI] Open-WebUI: Docker 설치, 지우기, 다시... @Ubuntu (0) | 2025.04.03 |
[AI] Open-WebUI: Docker 설치 @Windows11 (0) | 2025.04.01 |