diff --git a/Dockerfile b/Dockerfile index ba750776..834474f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ FROM docker-registry.qualcomm.com/library/ubuntu:20.04 RUN apt-get update && apt-get install -y \ git \ tmux \ - python3.8 \ - python3.8-venv \ + python3.10 \ + python3.10-venv \ python3-pip # pip recognizes this variable @@ -24,7 +24,7 @@ RUN mkdir -p /app/qefficient-library COPY . /app/qefficient-library # Create Virtual Env for the docker image -RUN python3.8 -m venv /app/llm_env +RUN python3.10 -m venv /app/llm_env RUN . /app/llm_env/bin/activate WORKDIR /app/qefficient-library @@ -33,7 +33,7 @@ WORKDIR /app/qefficient-library RUN pip install torch==2.0.0+cpu --extra-index-url https://download.pytorch.org/whl/cpu --no-deps RUN pip install datasets==2.17.0 fsspec==2023.10.0 multidict==6.0.5 sentencepiece --no-deps -RUN python3.8 -m pip install . +RUN python3.10 -m pip install . WORKDIR /app/qefficient-library # Set the environment variable for the model card name and token ID @@ -45,7 +45,7 @@ ENV TOKEN_ID = "" # Print a success message CMD ["echo", "qefficient-transformers repository cloned and setup installed inside Docker image."] CMD ["echo", "Starting the Model Download and Export to Onnx Stage for QEff."] -CMD python3.8 -m QEfficient.cloud.export --model-name "$MODEL_NAME" +CMD python3.10 -m QEfficient.cloud.export --model-name "$MODEL_NAME" # Example usage: # docker build -t qefficient-library . diff --git a/README.md b/README.md index d5c76d98..8843cb99 100644 --- a/README.md +++ b/README.md @@ -59,9 +59,9 @@ For other models, there is comprehensive documentation to inspire upon the chang ## Quick Installation ```bash -# Create Python virtual env and activate it. (Recommended Python 3.8) - -python3.8 -m venv qeff_env +# Create Python virtual env and activate it. (Recommended Python 3.10) +sudo apt install python3.10-venv +python3.10 -m venv qeff_env source qeff_env/bin/activate pip install -U pip diff --git a/docs/source/upgrade.md b/docs/source/upgrade.md index 16e04b62..2d44219b 100644 --- a/docs/source/upgrade.md +++ b/docs/source/upgrade.md @@ -4,9 +4,9 @@ ``Warning: Efficient Transformers have been validated to work with the same compatible SDK. Upgrading this may result in certain models becoming incompatible.`` ```bash -# Create Python virtual env and activate it. (Required Python 3.8) +# Create Python virtual env and activate it. (Required Python 3.10) -python3.8 -m venv qeff_env +python3.10 -m venv qeff_env source qeff_env/bin/activate pip install -U pip diff --git a/pyproject.toml b/pyproject.toml index 9f5952f2..af5ef64d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ classifiers = [ "Intended Audience :: Developers", "Intended Audience :: Education", "Operating System :: Linux", - "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.10", "Topic :: Scientific/Engineering :: Artificial Intelligence for Inference Accelerator", ] requires-python = ">=3.8,<3.11" diff --git a/scripts/Jenkinsfile b/scripts/Jenkinsfile index b6e706fe..a615e2d2 100644 --- a/scripts/Jenkinsfile +++ b/scripts/Jenkinsfile @@ -16,7 +16,7 @@ pipeline steps { sh ''' - python3.8 -m venv preflight_qeff + python3.10 -m venv preflight_qeff . preflight_qeff/bin/activate pip install --upgrade pip setuptools pip install .[test] --extra-index-url https://download.pytorch.org/whl/cpu