cage-challenge / cage-challenge-4

The TTCP CAGE Challenges are a series of public challenges instigated to foster the development of autonomous cyber defensive agents. This CAGE Challenge 4 (CC4) returns to a defence industry enterprise environment, and introduces a Multi-Agent Reinforcement Learning (MARL) scenario.
https://cage-challenge.github.io/cage-challenge-4/
Other
41 stars 10 forks source link

Support for torch_geometric in submissions? #37

Closed zazyzaya closed 6 months ago

zazyzaya commented 7 months ago

Our team is taking a Graph-theoretic approach to the problem, and to do this we were using PyTorch Geometric (v. 2.5.0). It doesn't appear that this module is available in the codalabs environment, as we're getting this error in the ingestion error log:

Traceback (most recent call last): File "/tmp/codalab/tmpBE9u0e/run/ingestion_program/ingestion.py", line 38, in <module> submission = load_agent(submission_program) File "/tmp/codalab/tmpBE9u0e/run/ingestion_program/ingestion.py", line 21, in load_agent spec.loader.exec_module(agent_module) File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/tmp/codalab/tmpBE9u0e/run/program/submission.py", line 10, in <module> from cage4 import load_inductive_ppo File "/tmp/codalab/tmpBE9u0e/run/program/cage4.py", line 5, in <module> from torch_geometric.nn import GCNConv ModuleNotFoundError: No module named 'torch_geometric'

Would it be possible to add this module in, or should we find a workaround?

MitchellKiely commented 7 months ago

Hi @zazyzaya,

I've added in torch_geometric v.2.5.0 into the Requirements.txt file in commit 313bf33. Thankfully, all dependencies were already met, so no other libraries were impacted. You should be able to submit your agent to Codalabs within the hour.

zazyzaya commented 7 months ago

Hello @MitchellKiely . Thank you for your response. Unfortunately, we resubmitted just now, and we get the same error message

MitchellKiely commented 7 months ago

Hi @zazyzaya, can you confirm whether you reuploaded everything from scratch or did you click the rerun icon on Codalabs?

zazyzaya commented 6 months ago

Yes, we reuploaded everything from scratch. If you have visibility into our submission files (my username is iking on codalabs), they are submissions 5-7. But we found a workaround. We just uploaded a few of the torch geo source files with our submission and it runs, so feel free to close the issue unless others need the module

cage-challenge commented 6 months ago

Awesome! Glad that the submission was able to go through. I'll leave torch_geometric in the requirements just because it'll be more hassle to remove. Looks like your approach is very promising.

I'll close the issue.

On Thu, May 2, 2024 at 1:00 AM Zaya @.***> wrote:

Yes, we reuploaded everything from scratch. If you have visibility into our submission files (my username is iking on codalabs), they are submissions 5-7. We found a workaround though by just uploading a few of the torch geo source files with our submission, so feel free to close the issue unless others need the module

— Reply to this email directly, view it on GitHub https://github.com/cage-challenge/cage-challenge-4/issues/37#issuecomment-2088636767, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVAYHJ3U62FP4N23NZEW4LDZAEDARAVCNFSM6AAAAABGZAOSTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYGYZTMNZWG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>