To run the Numina solution, you need to install several Python packages. The installation method depends on whether you are using a standard environment or a Kaggle environment.
Standard pip installation
pip install vllm==0.4.2
pip install grpcio==1.62.2
pip install antlr4-python3-runtime==4.11.0
pip install networkx shapely sage matplotlib gmpy2 scipy numpy sympy mpmath
Kaggle installation
On Kaggle, you must uninstall torch first and use specific local wheels for vllm, grpcio, and ray to ensure compatibility with the T4 environment.
pip uninstall -y torch
pip install -U --no-index --find-links=/kaggle/input/vllm-whl -U vllm
pip install -U --upgrade /kaggle/input/vllm-t4-fix/grpcio-1.62.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pip install -U --upgrade /kaggle/input/vllm-t4-fix/ray-2.11.0-cp310-cp310-manylinux2014_x86_64.whl
pip install -U --upgrade /kaggle/input/antlr4-python3-runtime-package-4-11/antlr4_python3_runtime-4.11.0-py3-none-any.whl
# If using pip
# !pip install vllm==0.4.2
# !pip install grpcio==1.62.2
# !pip install antlr4-python3-runtime==4.11.0
# !pip install networkx shapely sage matplotlib gmpy2 scipy numpy sympy mpmath
# If on Kaggle
# !pip uninstall -y torch
# !pip install -U --no-index --find-links=/kaggle/input/vllm-whl -U vllm
# !pip install -U --upgrade /kaggle/input/vllm-t4-fix/grpcio-1.62.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
# !pip install -U --upgrade /kaggle/input/vllm-t4-fix/ray-2.11.0-cp310-cp310-manylinux2014_x86_64.whl
# !pip install -U --upgrade /kaggle/input/antlr4-python3-runtime-package-4-11/antlr4_python3_runtime-4.11.0-py3-none-any.whl