Skip to content

support ray job submit to run p2p agent#122

Merged
dongwang218 merged 2 commits intomainfrom
p2p_ray_job_submit
Dec 22, 2025
Merged

support ray job submit to run p2p agent#122
dongwang218 merged 2 commits intomainfrom
p2p_ray_job_submit

Conversation

@dongwang218
Copy link
Contributor

Why ?

currently p2p agent example code lives inside matrix repo, we want to support using ray job submit to run example code from any where.

How ?

  • call ray.init() without any parameters to allow passing the job sumitted code and path
  • remove @ray.remote() to allow Sink override

Test plan

ray job submit \
  --address="http://$hostname:$dashboard_port" \
  --working-dir . \
  -- bash -c 'echo "Working directory: $(pwd) on $(hostname)" && ls $(pwd) && python -m matrix.agents.p2p_agents --config-path=$(pwd) --config-name=generate_tasks max_concurrent_tasks=1 dataset.cut_off=10 resources.llm.matrix_service=gpt120b'

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Dec 20, 2025
@dongwang218 dongwang218 merged commit 42485fb into main Dec 22, 2025
8 checks passed
@dongwang218 dongwang218 deleted the p2p_ray_job_submit branch December 22, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants