Skip to content

Remove smolagents installation from remote executors #1274

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

Conversation

albertvillanova
Copy link
Member

@albertvillanova albertvillanova commented Apr 30, 2025

Remove smolagents installation from remote executors.

This PR stops forcing the core smolagents package to be installed in remote environments, resulting in fasting code executions.

Note this is useful for the Wasm executor:

@aymeric-roucher
Copy link
Collaborator

Thank you, well spotted! Note for myself this relies deletion relies on re-defining the Tool class on the remote in RemotePythonExecutor's send_tools method.

@albertvillanova albertvillanova merged commit b2f1232 into huggingface:main Apr 30, 2025
3 checks passed
@albertvillanova albertvillanova deleted the rm-remote-smolagents-dep branch April 30, 2025 14:43
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