-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] Major revisions to adjust with urartu v2
- Loading branch information
1 parent
b2c7c16
commit 628f917
Showing
35 changed files
with
54 additions
and
360 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
Empty file.
This file was deleted.
Oops, something went wrong.
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,12 +1,4 @@ | ||
aim>=3.18.1 | ||
datasets>=2.13.1 | ||
transformers>=4.36.0 | ||
accelerate>=0.21.0 | ||
scikit-learn>=1.3.0 | ||
sentencepiece==0.2.0 | ||
hydra-core==1.3.2 | ||
hydra-submitit-launcher==1.2.0 | ||
iopath==0.1.10 | ||
torch==2.1.2 | ||
jsonlines==4.0.0 | ||
protobuf==3.20.3 | ||
jsonlines | ||
tiktoken | ||
langchain | ||
langchain-openai |
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 +1 @@ | ||
0.1.0 | ||
2.0.0 |
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,35 +0,0 @@ | ||
import hydra | ||
from aim import Run | ||
from omegaconf import OmegaConf | ||
|
||
from roleplay.utils.launcher import launch, launch_on_slurm | ||
from roleplay.utils.slurm import is_submitit_available | ||
|
||
|
||
@hydra.main(version_base=None, config_path="config", config_name="main") | ||
def main(args): | ||
cfg = OmegaConf.create(OmegaConf.to_container(args, resolve=True, enum_to_str=True)) | ||
|
||
aim_run = Run( | ||
repo=cfg.aim.repo, | ||
experiment=cfg.action_config.experiment_name, | ||
) | ||
aim_run.set("cfg", cfg, strict=False) | ||
|
||
if cfg.slurm.use_slurm: | ||
assert is_submitit_available(), "Please 'pip install submitit' to schedule jobs on SLURM" | ||
|
||
launch_on_slurm( | ||
action_name=cfg.action_name, | ||
cfg=cfg, | ||
aim_run=aim_run, | ||
) | ||
else: | ||
launch(action_name=cfg.action_name, cfg=cfg, aim_run=aim_run) | ||
|
||
if aim_run.active: | ||
aim_run.close() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() | ||
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.