Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deps #158

Merged
merged 4 commits into from
Apr 22, 2024
Merged

Deps #158

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/eval_jat.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ def main():

# Extract mean and std, and save scores dict
eval_path = f"{model_args.model_name_or_path}/evaluations.json"

if not os.path.exists(f"{model_args.model_name_or_path}"):
os.makedirs(f"{model_args.model_name_or_path}")

if evaluations:
with open(eval_path, "w") as file:
json.dump(evaluations, file)
Expand Down
26 changes: 15 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,35 +61,39 @@
__version__ = "0.0.1.dev0" # expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots)

REQUIRED_PKGS = [
"accelerate==0.25.0",
"datasets==2.15.0",
"accelerate>=0.25.0",
"datasets>=2.15.0",
"gymnasium==0.29.1", # For RL action spaces and API
"huggingface_hub>=0.10", # For sharing objects, environments & trained RL policies
"numpy",
"opencv-python",
"torch==2.1.1",
"torch>=2.1.1",
"torchvision",
"transformers==4.36.1",
"transformers>=4.36.1",
"wandb",
]


DEV_REQUIRE = []

TESTS_REQUIRE = [
EVAL_REQUIRE = [
"free-mujoco-py",
"gymnasium[accept-rom-license,atari,mujoco]",
"metaworld @ git+https://github.com/qgallouedec/[email protected]_register",
"minigrid",
"rliable",
]
TRAIN_REQUIRE = []


TESTS_REQUIRE = [
"pytest-xdist",
"pytest",
]

QUALITY_REQUIRE = ["black[jupyter]~=22.0", "ruff", "pyyaml>=5.3.1"]

EXTRAS_REQUIRE = {
"dev": DEV_REQUIRE + TESTS_REQUIRE + QUALITY_REQUIRE,
"test": TESTS_REQUIRE,
"train": TRAIN_REQUIRE,
"dev": TRAIN_REQUIRE + EVAL_REQUIRE + TESTS_REQUIRE + QUALITY_REQUIRE,
"test": TESTS_REQUIRE + EVAL_REQUIRE,
"eval": EVAL_REQUIRE,
}


Expand Down
Loading