Open philkohl opened 4 months ago
I am facing the same issue with the ray aws example provided in the repo. @omry, could you please give any suggestions/help Thank you!
raise error
jsonschema.exceptions.ValidationError: Additional properties are not allowed ('autoscaling_mode', 'initial_workers', 'target_utilization_fraction' were unexpected)
hydra-core 1.3.2
hydra-ray-launcher 1.2.1
ray 2.38.0
🐛 Bug
Description
Hi,
thank you for this beautiful library. Enjoying it for years! The last days I wanted to use the multirun command on an AWS cluster. And I noticed that you provide a ray launcher: https://hydra.cc/docs/plugins/ray_launcher/
I started with the "simple app" example from the documentation (https://github.com/facebookresearch/hydra/tree/main/plugins/hydra_ray_launcher/examples/simple). Running it out of the box, resulted in an error
jsonschema.exceptions.ValidationError: Additional properties are not allowed ('autoscaling_mode', 'initial_workers', 'target_utilization_fraction' were unexpected)
. See the full output underStack trace/error message
.So at that point I thought of creating my own custom ray aws config and gave it a try to comment out the additional properties. To follow along and reproduce my steps I created a little repo: https://github.com/philkohl/hydra-ray-aws-example
With this workaround I was able to start a ray head node. But I was not able to submit the tasks due to an import error
ImportError: attempted relative import with no known parent package
. For details see the second stack trace below.Is there something wrong in my config or is there an issue in the plugin?
EDIT: I think I found a problem in my config for creating the python environment. I pushed a change to my repo. But I still face the import problem.
Therefore, I tested a workaround to replace all relative import to absolute imports via package notation in my site-packages for hydra_ray_launcher. E.g.:
instead of
With this change it seems to work.
Checklist
To reproduce
Minimal Code/Config snippet to reproduce
Stack trace/error message
Expected Behavior
System information