-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97eb0c0
commit 64f6668
Showing
13 changed files
with
83 additions
and
50 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
Binary file not shown.
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Known Issues | ||
================================================================== | ||
|
||
**EDIT "docs/source/known_issues.rst" IN ORDER TO MAKE CHANGES HERE** | ||
`GitHub Issues <https://github.com/Modalities/modalities/issues>`_ | ||
|
||
1. hardcoded dataset path :file:`/raid/s3/opengptx/mehdi/temp/temp_data/train_text_document.bin` in :file:`config/config.yaml` | ||
2. Dependency on weights&biases |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
Model Cards | ||
==================================================== | ||
**EDIT "docs/source/model_cards.rst" IN ORDER TO MAKE CHANGES HERE** | ||
<TODO> |
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 |
---|---|---|
@@ -1,33 +1,71 @@ | ||
VSCode Setup | ||
==================================================== | ||
|
||
**EDIT "docs/source/vs_code_setup.rst" IN ORDER TO MAKE CHANGES HERE** | ||
|
||
|
||
We recommend a docker environment based on the most recent pytorch e.g.: | ||
|
||
.. code-block:: bash | ||
FROM pytorch/pytorch:2.1.2-cuda12.1-cudnn8-devel | ||
RUN apt-get update && apt-get install -y wget openssh-client git-core bash-completion | ||
RUN wget -O /tmp/git-lfs.deb https://packagecloud.io/github/git-lfs/packages/ubuntu/focal/git-lfs_2.13.3_amd64.deb/download.deb && \ | ||
dpkg -i /tmp/git-lfs.deb && \ | ||
rm /tmp/git-lfs.deb | ||
RUN echo 'source /usr/share/bash-completion/completions/git' >> ~/.bashrc | ||
CMD ["/bin/bash"] | ||
This works seamlessly in combination with the VSCode DevContainer extention: | ||
|
||
.. code-block:: json | ||
{ | ||
"name": "Dev Container", | ||
"dockerFile": "Dockerfile", | ||
"runArgs": [ | ||
"--network", | ||
"host", | ||
"--gpus", | ||
"all" | ||
], | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
}, | ||
"extensions": [ | ||
"ms-python.python" | ||
] | ||
} | ||
} | ||
} | ||
In VSCode, add this to your :file:`launch.json`: | ||
|
||
.. code-block:: json | ||
{ | ||
"name": "Torchrun Main", | ||
"type": "python", | ||
"request": "launch", | ||
"module": "torch.distributed.run", | ||
"env": { | ||
"CUDA_VISIBLE_DEVICES": "0" | ||
}, | ||
"args": [ | ||
"--nnodes", | ||
"1", | ||
"--nproc_per_node", | ||
"2", | ||
"--rdzv-endpoint=0.0.0.0:29503", | ||
"src/modalities/__main__.py", | ||
"run", | ||
"--config_file_path", | ||
"config_files/config.yaml", | ||
], | ||
"console": "integratedTerminal", | ||
"justMyCode": true, | ||
"envFile": "${workspaceFolder}/.env" | ||
} | ||
{ | ||
"name": "Torchrun Train and Eval", | ||
"type": "python", | ||
"request": "launch", | ||
"module": "torch.distributed.run", | ||
"env": { | ||
"CUDA_VISIBLE_DEVICES": "4,5" | ||
}, | ||
"args": [ | ||
"--nnodes", | ||
"1", | ||
"--nproc_per_node", | ||
"2", | ||
"--rdzv-endpoint=0.0.0.0:29503", | ||
"src/modalities/__main__.py", | ||
"run", | ||
"--config_file_path", | ||
"config_files/config_lorem_ipsum.yaml", | ||
], | ||
"console": "integratedTerminal", | ||
"justMyCode": true, | ||
"envFile": "${workspaceFolder}/.env", | ||
"cwd": "${workspaceFolder}/modalities" | ||
} | ||