Skip to content

Add E2B execution backend #106

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

Merged
merged 10 commits into from
Jan 28, 2025
Merged

Add E2B execution backend #106

merged 10 commits into from
Jan 28, 2025

Conversation

justinchiu-cohere
Copy link
Collaborator

@justinchiu-cohere justinchiu-cohere commented Jan 28, 2025

E2B is another remote code sandbox that has a nicer frontend than Modal.

However, E2B mostly offers higher-level APIs than Modal. No image caching, meaning we need to run setup for every call.

To get E2B running, this PR changes absolute paths such as /eval.sh, /patch.diff, /testbed to relative paths. We default to a paths relative to E2B's homedir:

  • ~/eval.sh
  • ~/patch.diff
  • ~/testbed
    At evaluation we have to cd into testbed and find the patch with ../patch.diff.

This was accomplished by giving make_spec and Spec an absolute: bool flag, set to absolute = backend == e2b.

@wenting-zhao
Copy link
Collaborator

Awesome work!

@wenting-zhao wenting-zhao merged commit 4043a34 into main Jan 28, 2025
2 checks passed
@wenting-zhao wenting-zhao deleted the justin/e2b branch January 28, 2025 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants