mini-nanoGPT
One-click training of your own GPT. Training a GPT has never been easier for beginners. / 一键预训练+SFT一个属于自己的LLM,0基础训练GPT原来可以这么简单?
파일 탐색기
최종 버전 다운로드 (.zip)- en_comparison.png
- en_data_process.png
- en_inference.png
- en_inference_sft.png
- en_sft.png
- en_train.png
- zh_comparison.png
- zh_data_process.png
- zh_inference.png
- zh_inference_sft.png
- zh_sft.png
- zh_train.png
- tokenizer.json
- detect_cuda.py
- README.md
- README.zh.md
- start.sh
- __init__.py
- comparison.py
- data_processing.py
- inference.py
- language.py
- model_management.py
- sft.py
- training.py
- __init__.py
- chat.py
- comparison.py
- data_processing.py
- inference.py
- language.py
- model_management.py
- sft.py
- training.py
- __init__.py
- app.py
- charts.py
- constants.py
- helpers.py
- html_render.py
- state.py
- config.py
- data_process.py
- db_manager.py
- device_manager.py
- gpt_model.py
- gpt_self_attn.py
- infer.py
- infer_cache.py
- sft.py
- train.py
- utils.py
- .dockerignore
- .gitattributes
- .gitignore
- app.py
- docker-compose.yml
- Dockerfile
- LICENSE
- README.md
- README.zh.md
- requirements.txt
- run.bat
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/ystemsrx/mini-nanoGPT
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd mini-nanoGPT
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Docker
쉬움 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
docker-compose up --build
compose 설정 파일에 정의된 서비스들을 대상으로 명령을 실행합니다.
docker build -t mini-nanogpt .
Dockerfile을 기반으로 실행 가능한 이미지를 빌드합니다.
docker run --gpus all -p 7860:7860 -v $(pwd)/data:/app/data mini-nanogpt
빌드된 이미지를 실제 컨테이너로 실행합니다.
└── 📂 docker/ # Docker configuration files
이 명령어를 터미널에 그대로 입력해 실행하세요.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
