pytorch-lightning

(★ 31,297)

코드 변경 없이 1개에서 10,000개 이상의 GPU에서 모든 크기의 AI 모델을 Pretrain 및 Finetune 하세요.

파일 탐색기

  • .codecov.yml
  • .git-blame-ignore-revs
  • .gitignore
  • .gitmodules
  • .pre-commit-config.yaml
  • .readthedocs.yml
  • _notebooks
  • CITATION.cff
  • LICENSE
  • Makefile
  • pyproject.toml
  • README.md
  • requirements.txt
  • SECURITY.md
  • setup.py

# 설치 가이드

python
사전 준비물

설치 및 실행 절차

pip install lightning

기본 라이브러리를 설치합니다.

pip install lightning['extra']

선택적 의존성과 함께 패키지를 설치합니다.

pip install torchvision

예제 실행에 필요한 torchvision을 설치합니다.

python main.py

트레이닝 스크립트를 실행합니다.

핵심 명령어

pip install lightning

PyTorch Lightning 기본 패키지를 설치합니다.

pip install lightning['extra']

추가 기능 및 확장 모듈을 포함하여 설치합니다.

python main.py

학습 스크립트를 실행하여 모델을 학습시킵니다.

GPU 활용을 위해 적절한 버전의 PyTorch와 CUDA가 선행 설치되어야 합니다.

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

릴리즈 타임라인

활발히 관리 중

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

conda install

설명 보기 ▼

Install packages into an existing conda environment.

conda install {{package1 package2 ...}}

Install one or more package into the currently active conda environment:

conda install {{[-c|--channel]}} conda-forge {{package}}

Install a single package into the currently active conda environment using channel conda-forge:

conda install {{[-c|--channel]}} conda-forge --override-channels {{package}}

Install a single package into the currently active conda environment using channel conda-forge and ignoring other channels:

🔍

pip install

설명 보기 ▼

Install Python packages.

pip install {{package1 package2 ...}}

Install one or more packages:

pip install {{package1 package2 ...}} {{[-U|--upgrade]}}

Upgrade all specified packages to the latest version, installing any that are not already present:

pip install {{package}}=={{version}}

Install a specific version of a package:

🔍

python

설명 보기 ▼

Python 언어 인터프리터.
더 많은 정보: <https://docs.python.org/using/cmdline.html>.

python

REPL(대화형 셸) 시작:

python {{path/to/file.py}}

특정 Python 파일 실행:

python -i {{path/to/file.py}}

특정 Python 파일 실행 후 REPL 시작:

// repository documentation