-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker compose and change containerized setup instructions to use…
… it (#1113) * Add pythia 14M config * Create 31M.yml * Add docker compose, update readme docker instructions to utilize it * Add logging limits to docker-compose files * Change data mount from /gpt-neox/data to /data/ This prevents possible errors if the user already has a /data/ directory in their /gpt-neox/ folder * Update README.md Makes the code blocks into blocks in the changed parts * Make the docker-compose spinup tidier * Avoid config bloat by only providing the updated paths * Apply precommit --------- Co-authored-by: Quentin Anthony <[email protected]>
- Loading branch information
1 parent
f14782a
commit e6e944a
Showing
7 changed files
with
134 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,12 @@ | ||
{ | ||
"train-data-paths": ["/home/mchorse/data/pile_deduped/pile_0.87_deduped_text_document"], | ||
"valid-data-paths": ["/home/mchorse/data/pile_deduped/pile_0.87_deduped_text_document"], | ||
"test-data-paths": ["/home/mchorse/data/pile_deduped/pile_0.87_deduped_text_document"], | ||
|
||
"tokenizer-type": "HFTokenizer", | ||
"vocab-file": "/home/mchorse/data/tokenizers/20B_tokenizer.json", | ||
|
||
"save": "/home/mchorse/chk/", | ||
"load": "/home/mchorse/chk/", | ||
"checkpoint_validation_with_forward_pass": False | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,25 @@ | ||
version: '3' | ||
services: | ||
gpt-neox: | ||
command: nvidia-smi -q --loop=10 | ||
image: leogao2/gpt-neox:main | ||
shm_size: 1g | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
runtime: nvidia | ||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia | ||
capabilities: [gpu] | ||
logging: | ||
options: | ||
max-size: "100m" | ||
max-file: "3" | ||
volumes: | ||
- ${NEOX_DATA_PATH}:/home/mchorse/data | ||
- ${NEOX_CHECKPOINT_PATH}:/home/mchorse/chk | ||
- .:/home/mchorse/gpt-neox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,28 @@ | ||
version: '3' | ||
services: | ||
gpt-neox: | ||
command: nvidia-smi -q --loop=10 | ||
image: gpt-neox | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
shm_size: 1g | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
runtime: nvidia | ||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia | ||
capabilities: [gpu] | ||
logging: | ||
options: | ||
max-size: "100m" | ||
max-file: "3" | ||
volumes: | ||
- ${NEOX_DATA_PATH}:/home/mchorse/data | ||
- ${NEOX_CHECKPOINT_PATH}:/home/mchorse/chk | ||
- .:/home/mchorse/gpt-neox |