Skip to content

Migrate code_fim off Ray #6428

Open
Open

Description

@linear-code

resources_servers/code_fim declares ray_enabled = True.

How it uses Ray: each fill-in-the-middle correctness check runs as a Ray task (check_correctness_remote in human_eval_infilling_integration/runner.py, scheduling_strategy="SPREAD"). The server waits for the result with loop.run_in_executor(None, ray.get, future), which holds a thread for every pending check.

Proposed replacement: run the checks in sandboxes, as code_gen did in #4958.

Done when: the server no longer declares ray_enabled = True on main. Alternatively, its README documents which distributed-systems requirement Ray satisfies and why a sandbox, bounded local concurrency or a persistent endpoint is not enough. Tracked in the checklist on #3669.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions