dialogue-generation
Generating responses with pretrained XLNet and GPT-2 in PyTorch.
파일 탐색기
최종 버전 다운로드 (.zip)- gpt2-dailydialog.json
- xlnet-dailydialog.json
- __init__.py
- collate.pyx
- data.py
- evaluate.py
- interact.py
- model.py
- train.py
- .gitignore
- .gitmodules
- dialog-eval
- LICENSE
- README.md
- requirements.txt
- setup.py
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/bme-chatbots/dialogue-generation
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd dialogue-generation
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Python
쉬움 추천사전 준비물
pip install -r requirements.txt
requirements.txt 등에 명시된 파이썬 라이브러리를 설치합니다.
python -m src.train --model gpt2-medium --data personachat --name my_test_run
파이썬 스크립트(또는 모듈)를 실행합니다.
python -m torch.distributed.launch --nproc_per_node=NUM_GPUS src/train.py --model gpt2
파이썬 스크립트(또는 모듈)를 실행합니다.
python -m src.train --config src/configs/xlnet-dailydialog.json
파이썬 스크립트(또는 모듈)를 실행합니다.
!python -m pip install --upgrade pip
requirements.txt 등에 명시된 파이썬 라이브러리를 설치합니다.
에러 메시지 없이 실행되고 터미널에 안내 문구가 출력되면 정상입니다.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
