Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add E2B execution backend#106

Merged
wenting-zhao merged 10 commits intomaincommit-0/commit0:mainfrom
justin/e2bcommit-0/commit0:justin/e2bCopy head branch name to clipboard
Jan 28, 2025
Merged

Add E2B execution backend#106
wenting-zhao merged 10 commits intomaincommit-0/commit0:mainfrom
justin/e2bcommit-0/commit0:justin/e2bCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.