Skip to content

Commit

Permalink
Update versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
muazhari committed Sep 29, 2024
1 parent 1859b73 commit 478ee17
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .idea/autocode.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
31 changes: 18 additions & 13 deletions benchmark/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 7 additions & 5 deletions benchmark/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 7 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand All @@ -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',
],
)

0 comments on commit 478ee17

Please sign in to comment.