piston icon indicating copy to clipboard operation
piston copied to clipboard

Support for Installing Additional Libraries for ML Code Evaluation

Open girishgl opened this issue 1 year ago • 4 comments

Hi,

We would like to use Piston for evaluating ML code, which necessitates the installation of additional libraries such as XGBoost and TensorFlow. Is there a way to install these libraries within Piston?

Currently, we are using:

{"language": "python", "version": "3.9.4"}

Thank you for your assistance.

Regards,
Girish

girishgl avatar May 17 '24 04:05 girishgl

Would love to know this as well!

lcfyhr avatar May 18 '24 21:05 lcfyhr

I am also looking to use piston for AI/ML work. Please update if any solution is available to install custom libraries in Python.

ashwini-singh-repo avatar May 21 '24 07:05 ashwini-singh-repo

I also want to know how to install pytorch!

jackrankin avatar May 23 '24 01:05 jackrankin

Not clean, but functional, assuming you are using the python 3.12.0 package in a local docker install:

docker exec -it piston_api /piston/packages/python/3.12.0/bin/pip3 install WHATEVER

Otherwise make a new package with the correct pip packages installed.

By design, it seems appropriate to avoid pip installs from user code.

diversity-co-uk avatar Jun 16 '24 06:06 diversity-co-uk