Skip to content

Commit 08ca83c

Browse files
authored
Remove index_url dependency and extend python version compatibility (#139)
* updated Readme Signed-off-by: Onkar Chougule <[email protected]> * extended python version compatibility Signed-off-by: Onkar Chougule <[email protected]> * extended python version compatibility Signed-off-by: Onkar Chougule <[email protected]> * restricted python version 3.8-3.10 Signed-off-by: Onkar Chougule <[email protected]> --------- Signed-off-by: Onkar Chougule <[email protected]>
1 parent 9db74d9 commit 08ca83c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,19 @@ For other models, there is comprehensive documentation to inspire upon the chang
5353
## Quick Installation
5454
```bash
5555

56-
# Create Python virtual env and activate it. (Required Python 3.8)
56+
# Create Python virtual env and activate it. (Recommended Python 3.8)
5757

5858
python3.8 -m venv qeff_env
5959
source qeff_env/bin/activate
6060
pip install -U pip
6161

6262
# Clone and Install the QEfficient Repo.
63-
pip install git+https://github.com/quic/efficient-transformers --extra-index-url https://download.pytorch.org/whl/cpu
63+
pip install git+https://github.com/quic/efficient-transformers
6464

6565
# Or build wheel package using the below command.
6666
pip install build wheel
6767
python -m build --wheel --outdir dist
68-
pip install dist/QEfficient-0.0.1.dev0-py3-none-any.whl --extra-index-url https://download.pytorch.org/whl/cpu
68+
pip install dist/QEfficient-0.0.1.dev0-py3-none-any.whl
6969

7070
```
7171

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ classifiers = [
1717
"Programming Language :: Python :: 3.8",
1818
"Topic :: Scientific/Engineering :: Artificial Intelligence for Inference Accelerator",
1919
]
20-
requires-python = "==3.8.*"
20+
requires-python = ">=3.8,<3.11"
2121
dependencies = [
2222
"transformers==4.44.2",
23-
"torch==2.0.0+cpu",
2423
"peft==0.12.0",
2524
"datasets==2.7.0",
2625
"fsspec==2023.6.0",
@@ -33,6 +32,11 @@ dependencies = [
3332
"protobuf==3.20.2",
3433
"onnxscript==0.1.0.dev20240327",
3534
"sympy",
35+
"torch==2.0.0; platform_machine=='aarch64'",
36+
# Specifying torch cpu package URL per python version, update the list once pytorch releases whl for python>3.11
37+
"torch@https://download.pytorch.org/whl/cpu/torch-2.0.0%2Bcpu-cp38-cp38-linux_x86_64.whl ; python_version=='3.8' and platform_machine=='x86_64'",
38+
"torch@https://download.pytorch.org/whl/cpu/torch-2.0.0%2Bcpu-cp39-cp39-linux_x86_64.whl ; python_version=='3.9' and platform_machine=='x86_64'",
39+
"torch@https://download.pytorch.org/whl/cpu/torch-2.0.0%2Bcpu-cp310-cp310-linux_x86_64.whl ; python_version=='3.10' and platform_machine=='x86_64'",
3640
]
3741

3842
[project.optional-dependencies]

0 commit comments

Comments
 (0)