-
Notifications
You must be signed in to change notification settings - Fork 33.8k
update doc #34478
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
update doc #34478
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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
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 |
|---|---|---|
|
|
@@ -30,26 +30,21 @@ Check more detailed information for [oneccl_bind_pt](https://github.com/intel/to | |
|
|
||
| Wheel files are available for the following Python versions: | ||
|
|
||
| | Extension Version | Python 3.6 | Python 3.7 | Python 3.8 | Python 3.9 | Python 3.10 | | ||
| | :---------------: | :--------: | :--------: | :--------: | :--------: | :---------: | | ||
| | 2.1.0 | | √ | √ | √ | √ | | ||
| | 2.0.0 | | √ | √ | √ | √ | | ||
| | 1.13.0 | | √ | √ | √ | √ | | ||
| | 1.12.100 | | √ | √ | √ | √ | | ||
| | 1.12.0 | | √ | √ | √ | √ | | ||
| | Extension Version | Python 3.7 | Python 3.8 | Python 3.9 | Python 3.10 | Python 3.11 | | ||
| | :---------------: | :--------: | :--------: | :--------: | :---------: | :---------: | | ||
| | 2.5.0 | | √ | √ | √ | √ | | ||
| | 2.4.0 | | √ | √ | √ | √ | | ||
| | 2.3.0 | | √ | √ | √ | √ | | ||
| | 2.2.0 | | √ | √ | √ | √ | | ||
|
|
||
| Please run `pip list | grep torch` to get your `pytorch_version`. | ||
| ```bash | ||
| pip install oneccl_bind_pt=={pytorch_version} -f https://developer.intel.com/ipex-whl-stable-cpu | ||
| ``` | ||
| where `{pytorch_version}` should be your PyTorch version, for instance 2.1.0. | ||
| where `{pytorch_version}` should be your PyTorch version, for instance 2.4.0. | ||
| Check more approaches for [oneccl_bind_pt installation](https://github.com/intel/torch-ccl). | ||
| Versions of oneCCL and PyTorch must match. | ||
|
|
||
| <Tip warning={true}> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need to also delete the closing |
||
|
|
||
| oneccl_bindings_for_pytorch 1.12.0 prebuilt wheel does not work with PyTorch 1.12.1 (it is for PyTorch 1.12.0) | ||
| PyTorch 1.12.1 should work with oneccl_bindings_for_pytorch 1.12.100 | ||
|
|
||
| </Tip> | ||
|
|
||
|
|
@@ -58,18 +53,11 @@ Use this standards-based MPI implementation to deliver flexible, efficient, scal | |
|
|
||
| oneccl_bindings_for_pytorch is installed along with the MPI tool set. Need to source the environment before using it. | ||
|
|
||
| for Intel® oneCCL >= 1.12.0 | ||
| ```bash | ||
| oneccl_bindings_for_pytorch_path=$(python -c "from oneccl_bindings_for_pytorch import cwd; print(cwd)") | ||
| source $oneccl_bindings_for_pytorch_path/env/setvars.sh | ||
| ``` | ||
|
|
||
| for Intel® oneCCL whose version < 1.12.0 | ||
| ```bash | ||
| torch_ccl_path=$(python -c "import torch; import torch_ccl; import os; print(os.path.abspath(os.path.dirname(torch_ccl.__file__)))") | ||
| source $torch_ccl_path/env/setvars.sh | ||
| ``` | ||
|
|
||
| #### Intel® Extension for PyTorch installation | ||
|
|
||
| Intel Extension for PyTorch (IPEX) provides performance optimizations for CPU training with both Float32 and BFloat16 (refer to the [single CPU section](./perf_train_cpu) to learn more). | ||
|
|
@@ -155,7 +143,7 @@ This example assumes that you have: | |
| The snippet below is an example of a Dockerfile that uses a base image that supports distributed CPU training and then | ||
| extracts a Transformers release to the `/workspace` directory, so that the example scripts are included in the image: | ||
| ```dockerfile | ||
| FROM intel/intel-optimized-pytorch:2.3.0-pip-multinode | ||
| FROM intel/intel-optimized-pytorch:2.4.0-pip-multinode | ||
|
|
||
| RUN apt-get update -y && \ | ||
| apt-get install -y --no-install-recommends --fix-missing \ | ||
|
|
@@ -165,7 +153,7 @@ RUN apt-get update -y && \ | |
| WORKDIR /workspace | ||
|
|
||
| # Download and extract the transformers code | ||
| ARG HF_TRANSFORMERS_VER="4.44.0" | ||
| ARG HF_TRANSFORMERS_VER="4.46.0" | ||
| RUN pip install --no-cache-dir \ | ||
| transformers==${HF_TRANSFORMERS_VER} && \ | ||
| mkdir transformers && \ | ||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.