-
-
Notifications
You must be signed in to change notification settings - Fork 3k
[Extra backend] Add a separate conda environment for autogptq #1137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # Common commands about conda environment | ||
|
|
||
| ## Create a new empty conda environment | ||
|
|
||
| ``` | ||
| conda create --name <env-name> python=<your version> -y | ||
|
|
||
| conda create --name autogptq python=3.11 -y | ||
| ``` | ||
|
|
||
| ## To activate the environment | ||
|
|
||
| As of conda 4.4 | ||
| ``` | ||
| conda activate autogptq | ||
| ``` | ||
|
|
||
| The conda version older than 4.4 | ||
|
|
||
| ``` | ||
| source activate autogptq | ||
| ``` | ||
|
|
||
| ## Install the packages to your environment | ||
|
|
||
| Sometimes you need to install the packages from the conda-forge channel | ||
|
|
||
| By using `conda` | ||
| ``` | ||
| conda install <your-package-name> | ||
|
|
||
| conda install -c conda-forge <your package-name> | ||
| ``` | ||
|
|
||
| Or by using `pip` | ||
| ``` | ||
| pip install <your-package-name> | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| .PONY: autogptq | ||
| autogptq: | ||
| @echo "Creating virtual environment..." | ||
| @conda env create --name autogptq --file autogptq.yml | ||
| @echo "Virtual environment created." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Creating a separate environment for the autogptq project | ||
|
|
||
| ``` | ||
| make autogptq | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| name: autogptq | ||
| channels: | ||
| - defaults | ||
| dependencies: | ||
| - _libgcc_mutex=0.1=main | ||
| - _openmp_mutex=5.1=1_gnu | ||
| - bzip2=1.0.8=h7b6447c_0 | ||
| - ca-certificates=2023.08.22=h06a4308_0 | ||
| - ld_impl_linux-64=2.38=h1181459_1 | ||
| - libffi=3.4.4=h6a678d5_0 | ||
| - libgcc-ng=11.2.0=h1234567_1 | ||
| - libgomp=11.2.0=h1234567_1 | ||
| - libstdcxx-ng=11.2.0=h1234567_1 | ||
| - libuuid=1.41.5=h5eee18b_0 | ||
| - ncurses=6.4=h6a678d5_0 | ||
| - openssl=3.0.11=h7f8727e_2 | ||
| - pip=23.2.1=py311h06a4308_0 | ||
| - python=3.11.5=h955ad1f_0 | ||
| - readline=8.2=h5eee18b_0 | ||
| - setuptools=68.0.0=py311h06a4308_0 | ||
| - sqlite=3.41.2=h5eee18b_0 | ||
| - tk=8.6.12=h1ccaba5_0 | ||
| - wheel=0.41.2=py311h06a4308_0 | ||
| - xz=5.4.2=h5eee18b_0 | ||
| - zlib=1.2.13=h5eee18b_0 | ||
| - pip: | ||
| - accelerate==0.23.0 | ||
| - aiohttp==3.8.5 | ||
| - aiosignal==1.3.1 | ||
| - async-timeout==4.0.3 | ||
| - attrs==23.1.0 | ||
| - auto-gptq==0.4.2 | ||
| - certifi==2023.7.22 | ||
| - charset-normalizer==3.3.0 | ||
| - datasets==2.14.5 | ||
| - dill==0.3.7 | ||
| - filelock==3.12.4 | ||
| - frozenlist==1.4.0 | ||
| - fsspec==2023.6.0 | ||
| - grpcio==1.59.0 | ||
| - huggingface-hub==0.16.4 | ||
| - idna==3.4 | ||
| - jinja2==3.1.2 | ||
| - markupsafe==2.1.3 | ||
| - mpmath==1.3.0 | ||
| - multidict==6.0.4 | ||
| - multiprocess==0.70.15 | ||
| - networkx==3.1 | ||
| - numpy==1.26.0 | ||
| - nvidia-cublas-cu12==12.1.3.1 | ||
| - nvidia-cuda-cupti-cu12==12.1.105 | ||
| - nvidia-cuda-nvrtc-cu12==12.1.105 | ||
| - nvidia-cuda-runtime-cu12==12.1.105 | ||
| - nvidia-cudnn-cu12==8.9.2.26 | ||
| - nvidia-cufft-cu12==11.0.2.54 | ||
| - nvidia-curand-cu12==10.3.2.106 | ||
| - nvidia-cusolver-cu12==11.4.5.107 | ||
| - nvidia-cusparse-cu12==12.1.0.106 | ||
| - nvidia-nccl-cu12==2.18.1 | ||
| - nvidia-nvjitlink-cu12==12.2.140 | ||
| - nvidia-nvtx-cu12==12.1.105 | ||
| - packaging==23.2 | ||
| - pandas==2.1.1 | ||
| - peft==0.5.0 | ||
| - protobuf==4.24.4 | ||
| - psutil==5.9.5 | ||
| - pyarrow==13.0.0 | ||
| - python-dateutil==2.8.2 | ||
| - pytz==2023.3.post1 | ||
| - pyyaml==6.0.1 | ||
| - regex==2023.10.3 | ||
| - requests==2.31.0 | ||
| - rouge==1.0.1 | ||
| - safetensors==0.3.3 | ||
| - six==1.16.0 | ||
| - sympy==1.12 | ||
| - tokenizers==0.14.0 | ||
| - torch==2.1.0 | ||
| - tqdm==4.66.1 | ||
| - transformers==4.34.0 | ||
| - triton==2.1.0 | ||
| - typing-extensions==4.8.0 | ||
| - tzdata==2023.3 | ||
| - urllib3==2.0.6 | ||
| - xxhash==3.4.1 | ||
| - yarl==1.9.2 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we ver locking these packages? (Just asking to learn mostly)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, there. We want to make sure the environment stable. You may know code will not working well after the dependencies were updated. If we do not give the specific version of the dependencies. It will download the latest version of the packages. So, it may cause conflicts. For example, you can see commit id of packages in
go.mod. It does same thing.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Also a added sorry, the way I added that comment seems to make github thing I need to review it, deeply sorry that was not a review question, just a question to learn)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind.