-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[docs]: Update README with Python 3.12 and dependency changes #1634
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
+4
−4
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 |
|---|---|---|
|
|
@@ -111,7 +111,7 @@ According to the following example, install both the **KTransformers** and **LLa | |
|
|
||
| ```shell | ||
| # 1. Create a conda environment | ||
| conda create -n Kllama python=3.10 # choose from : [3.10, 3.11, 3.12, 3.13] | ||
| conda create -n Kllama python=3.12 # choose from : [3.10, 3.11, 3.12, 3.13] | ||
| conda install -y -c conda-forge libstdcxx-ng gcc_impl_linux-64 | ||
| # ATTENTION: DO NOT skip this step, even if your cuda version is not 11.8! Otherwise, you will get this error: ImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory. | ||
| conda install -y -c nvidia/label/cuda-11.8.0 cuda-runtime | ||
|
|
@@ -121,11 +121,11 @@ git clone --depth 1 https://github.com/hiyouga/LLaMA-Factory.git | |
| cd LLaMA-Factory | ||
| pip install -e ".[torch,metrics]" --no-build-isolation | ||
|
|
||
| # 3. Install the KTransformers wheel that matches your Torch and Python versions (Note: The CUDA version can differ from that in the wheel filename.) | ||
| pip install ktransformers-0.4.1+cu128torch28fancy-cp310-cp310-linux_x86_64.whl | ||
| # 3. Install the KTransformers wheel that matches your Torch and Python versions, from https://github.com/kvcache-ai/ktransformers/releases/tag/v0.4.1 (Note: The CUDA version can differ from that in the wheel filename.) | ||
| pip install ktransformers-0.4.1+cu128torch27fancy-cp312-cp312-linux_x86_64.whl | ||
|
|
||
| # 4. Install flash-attention, download the corresponding file based on your Python and Torch versions from: https://github.com/Dao-AILab/flash-attention/releases | ||
| pip install https://github.com/Dao-AILab/flash-attention/releases/download/v2.8.3/flash_attn-2.8.3+cu12torch2.8cxx11abiTRUE-cp310-cp310-linux_x86_64.whl | ||
| pip install flash_attn-2.8.3+cu12torch2.7cxx11abiTRUE-cp312-cp312-linux_x86_64.whl | ||
|
Contributor
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. The installation command for
Please verify the correct wheel and provide a complete, working installation command for users. |
||
| # abi=True/False can find from below | ||
| # import torch | ||
| # print(torch._C._GLIBCXX_USE_CXX11_ABI) | ||
|
|
||
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.
There appears to be a typo in the PyTorch version within the
ktransformerswheel filename. The official release page for v0.4.1 provides a wheel withtorch28for Python 3.12, but the documentation here specifiestorch27. To prevent installation errors, this should be corrected to match the actual released file.