Skip to content

Commit

Permalink
License and readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
artemisp committed Mar 2, 2024
1 parent 8090604 commit 9f4c4e7
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 4 deletions.
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) [2024] [Artemis Panagopoulou]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
41 changes: 37 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,13 @@ Define preprocessing functions here. It is used by `data.pl_dataloaders.CustomDa


<a name="config"></a>
## Configuration

## Configuration ⚙️
Okay.. all good till now, but of course you want to take some control. Don't you worry! A lot of the things you would want to do can simply be achieved by changing a single variable in the config!

Two example configs are provided in
* `/nlp/data/artemisp/multigpu-lm-templates/src/configs/train/llama_mrqa.py`
* `/nlp/data/artemisp/multigpu-lm-templates/src/configs/base.py`

Here is a summary of what each parameter does and some possible alternatives.

## General Configuration
* `output_dir`: Specifies the current working directory of the project. This is used as a base to construct paths for data, outputs, and logs.
* `seed`: Sets a global seed for random number generators in PyTorch, NumPy, and Python's random module to ensure reproducible results. We use [`pl.seed_everything(cfg.seed, workers=True)`](https://pytorch-lightning.readthedocs.io/en/1.6.3/api/pytorch_lightning.utilities.seed.html#pytorch_lightning.utilities.seed.seed_everything) to make sure that the experiments can be reproduced. It sets the random seeds for `numpy`, `pytorch`, and `random` globally.
Expand Down Expand Up @@ -476,3 +473,39 @@ For interractive debugging do the following:
Create a config which defines `resume_From_checkpoint` which is passed in the `module_kwargs` and also on the top level of the config. Then specify your `metrics` and `output_dir`. Finally, either pass a raw dataset with a `predict` split, or specify your prediction split in `datamodule_kwargs`.

Run `sbatch src/slurm_scripts/run_predict_1gpu.sh --cfg path/to/your/config` to run on one gpu or select the 4gpu script for faster inference. You can modify the scripts accordingly.


## How to Cite

If you use this project or software in your research or work, please consider citing it.

```
@misc{apanagopoulou2024_parallelm,
author = {Artemis Panagopoulou},
title = {ParalleLM: Distributed Training Templates for NLP Tasks},
year = {2024},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/artemisp/paralleLM}},
commit = {abc123def},
version = {1.0},
doi = {},
}
```

## Requesting Features or Reporting Issues

We welcome contributions from the community! If you have suggestions for new features or have encountered any issues, please report them using our Issues page:

1. Navigate to the **Issues** tab in our project repository.
2. Click on **New Issue** to create a new issue.
3. Provide a detailed description of the feature request or the bug you encountered. Include any relevant details, screenshots, or steps to reproduce the issue.
4. Submit the issue.


## License

## License 📄

This project is licensed under the MIT License - see the [LICENSE](LICENSE.txt) file for details.

0 comments on commit 9f4c4e7

Please sign in to comment.