Skip to content

Commit

Permalink
LLM:Add qwen moe example libs md (intel-analytics#10828)
Browse files Browse the repository at this point in the history
  • Loading branch information
hzjane authored Apr 22, 2024
1 parent 1edb19c commit 5f95054
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ conda activate llm

pip install --pre --upgrade ipex-llm[all] # install ipex-llm with 'all' option
pip install transformers==4.37.0 # install the transformers which support Qwen2

# only for Qwen1.5-MoE-A2.7B
pip install transformers==4.40.0
pip install trl==0.8.1
```

### 2. Run
Expand Down
4 changes: 4 additions & 0 deletions python/llm/example/CPU/PyTorch-Models/Model/qwen1.5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ conda activate llm

pip install --pre --upgrade ipex-llm[all] # install the latest ipex-llm nightly build with 'all' option
pip install transformers==4.37.0 # install transformers which supports Qwen2

# only for Qwen1.5-MoE-A2.7B
pip install transformers==4.40.0
pip install trl==0.8.1
```

### 2. Run
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ conda activate llm
pip install --pre --upgrade ipex-llm[xpu] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/

pip install transformers==4.37.0 # install transformers which supports Qwen2

# only for Qwen1.5-MoE-A2.7B
pip install transformers==4.40.0
pip install trl==0.8.1
```

#### 1.2 Installation on Windows
Expand Down
4 changes: 4 additions & 0 deletions python/llm/example/GPU/PyTorch-Models/Model/qwen1.5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ pip install dpcpp-cpp-rt==2024.0.2 mkl-dpcpp==2024.0.0 onednn==2024.0.0
pip install --pre --upgrade ipex-llm[xpu] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/

pip install transformers==4.37.0 # install transformers which supports Qwen2

# only for Qwen1.5-MoE-A2.7B
pip install transformers==4.40.0
pip install trl==0.8.1
```

### 2. Configures OneAPI environment variables for Linux
Expand Down

0 comments on commit 5f95054

Please sign in to comment.