Skip to content

Commit

Permalink
chore: 가상환경 구축 테스트 후 requirements.txt 재 작성
Browse files Browse the repository at this point in the history
cuda index로 인해 pip freeze 시 오류 발생하여 직접 작성
  • Loading branch information
jagaldol committed Nov 11, 2024
1 parent 4370f92 commit d2b07a1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 27 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,6 @@ data/*
!data/.gitkeep

*.csv
output*/
output*/

baseline*.ipynb
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,3 @@ $ git config commit.template .gitcommit_template

- `.gitcommit_template` 파일은 프로젝트 루트에 있는 커밋 템플릿 파일입니다.
- 위 명령어를 실행하면 커밋 시 템플릿이 자동으로 불러와집니다.

### 패키지 추가 시 처리 방법

새로운 Python 패키지를 설치하거나 업데이트한 후, 프로젝트의 의존성 파일을 최신 상태로 유지하기 위해 아래 명령어를 실행하세요:

```shell
$ pip list --not-required --format=freeze > requirements.txt
```

- `pip list --not-required --format=freeze` 명령어는 현재 환경에 설치된 패키지 중 의존성 패키지가 아닌 직접 설치한 패키지들을 `requirements.txt` 파일에 기록합니다.
- 이 명령어를 통해 불필요한 패키지 정보가 포함되지 않도록 관리합니다.
- `requirements.txt` 파일은 프로젝트 실행 환경을 복제하거나 배포 시에 사용됩니다.
34 changes: 20 additions & 14 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
black==24.10.0
evaluate==0.4.3
flake8==7.1.1
ipython==8.29.0
isort==5.13.2
matplotlib==3.9.2
peft==0.13.2
pip==24.3.1
scikit-learn==1.5.2
setuptools==65.5.0
tokenize_rt==6.1.0
torchaudio==2.5.1+cu121
torchvision==0.20.1+cu121
trl==0.12.0
# Core Packages
--extra-index-url https://download.pytorch.org/whl/cu121
torch==2.5.1+cu121 # PyTorch with CUDA 12.1 support
transformers
scikit-learn
evaluate
peft
trl
numpy
pandas

# Development Packages
tqdm
ipykernel
matplotlib

# Linting
black
flake8
isort

0 comments on commit d2b07a1

Please sign in to comment.