From 478ee176f4c1b763968c27808c02273b0b371541 Mon Sep 17 00:00:00 2001 From: Muhammad Kharisma Azhari Date: Tue, 3 Sep 2024 10:17:52 +0700 Subject: [PATCH] Update versions. --- .idea/autocode.iml | 2 +- .idea/misc.xml | 2 +- .idea/vcs.xml | 5 +++++ README.md | 2 +- benchmark/Dockerfile | 31 ++++++++++++++++++------------- benchmark/requirements.txt | 12 +++++++----- setup.py | 13 +++++++------ 7 files changed, 40 insertions(+), 27 deletions(-) diff --git a/.idea/autocode.iml b/.idea/autocode.iml index 0f3f8f3..e6e696b 100644 --- a/.idea/autocode.iml +++ b/.idea/autocode.iml @@ -3,7 +3,7 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 4b769a4..347f8fd 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 35eb1dd..8d3e42f 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,5 +1,10 @@ + + + diff --git a/README.md b/README.md index a10284b..68d0a2b 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Auto Code Improvement by Metrics Optimization. Autocode selects the best values for optimized metrics. The variable value types could be bool, int, float, and choice (including but not limited to code). This project utilizes a Large Language Model and Mixed-Variable Many-Objective Optimization. Based on our research/literature review, this project hypothetically can contribute to the economic performance of -companies. +companies. ## Features diff --git a/benchmark/Dockerfile b/benchmark/Dockerfile index 8fa10a8..84fe245 100644 --- a/benchmark/Dockerfile +++ b/benchmark/Dockerfile @@ -3,25 +3,30 @@ FROM muazhari/cuda-torch-tensorflow:latest # Setup workdir. ENV WORKDIR=/workdir - WORKDIR $WORKDIR -# SSH server setup. -RUN apt update -y - -RUN yes | DEBIAN_FRONTEND=noninteractive apt install -y \ +# Install apt dependencies. +RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ + --mount=type=cache,target=/var/lib/apt,sharing=locked \ + apt-fast update -y \ + && \ + yes | apt-fast install -y \ openssh-server \ git +# Setup sshd. RUN mkdir /var/run/sshd - RUN echo 'root:root' | chpasswd - RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config -# Setup dependencies. -COPY requirements.txt . - -RUN pip3 install -r requirements.txt --use-feature=fast-deps --break-system-packages - -RUN pip3 install ray[default,tune] --use-feature=fast-deps --break-system-packages +# Copy the requirements.txt file to the working directory. +COPY ./requirements.txt ./requirements.txt + +# Install python dependencies from requirements.txt. +RUN --mount=type=cache,target=/root/.cache/pip \ + --mount=type=cache,target=/root/.cache/uv \ + uv pip install --system \ + ray[default,tune] \ + -r requirements.txt \ + --break-system-packages \ + --no-build-isolation diff --git a/benchmark/requirements.txt b/benchmark/requirements.txt index 72ad0ea..8943b73 100644 --- a/benchmark/requirements.txt +++ b/benchmark/requirements.txt @@ -6,25 +6,27 @@ pytest-asyncio pytest-xdist pytest-cov +gpy>=1.13.2 +pandas numba rexmex optuna -pymoo +pymoo @git+https://github.com/anyoptimization/pymoo@main pysamoo hebo ax-platform pydantic_settings fastapi -dependency-injector>=4.42.0b1 +dependency-injector ray fastapi -matplotlib<3.9.0 +matplotlib sqlmodel dill streamlit -numpy>=1.26.4,<2 +numpy python-on-whales uvicorn langchain -langchain-openai>=0.1.21rc1 +langchain-openai langgraph \ No newline at end of file diff --git a/setup.py b/setup.py index 527deeb..6d581aa 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name='autocode-py', - version='0.0.1.post9', + version='0.0.1.post10', author='muazhari', url='https://github.com/muazhari/autocode', description='autocode: Auto Code Improvement by Metrics Optimization.', @@ -25,21 +25,22 @@ 'Topic :: Scientific/Engineering', ], install_requires=[ - 'pymoo@git+https://github.com/anyoptimization/pymoo.git', + 'pymoo @ git+ssh://git@github.com/anyoptimization/pymoo.git', 'pydantic_settings', 'fastapi', - 'dependency-injector>=4.42.0b1', + 'pandas', + 'dependency-injector', 'ray', 'fastapi', - 'matplotlib<3.9.0', + 'matplotlib', 'sqlmodel', 'dill', 'streamlit', - 'numpy>=1.26.4,<2', + 'numpy', 'python-on-whales', 'uvicorn', 'langchain', - 'langchain-openai>=0.1.21rc1', + 'langchain-openai', 'langgraph', ], )