Skip to content

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