Skip to content

Commit

Permalink
"update pip version" (#532)
Browse files Browse the repository at this point in the history
Co-authored-by: zhanghonggeng <qq1484514794@live.com>
Co-authored-by: levi131 <83750468+levi131@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 21, 2024
1 parent 8d3817f commit d4dc26f
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 28 deletions.
37 changes: 25 additions & 12 deletions cn/docs/assets/install-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,28 @@
window.addEventListener('load', () => {

function get_commands(latest_version) {
let stable_command_116 = 'python3 -m pip install -f https://release.oneflow.info oneflow==VERSION+cu116'
let stable_command_117 = 'python3 -m pip install -f https://release.oneflow.info oneflow==VERSION+cu117'
let stable_command_cpu = 'python3 -m pip install -f https://release.oneflow.info oneflow==VERSION+cpu'
let stable_command_118 = 'python3 -m pip install -f https://oneflow-staging.oss-cn-beijing.aliyuncs.com/branch/release/v1.0.0/cu118 oneflow'
let stable_command_121 = 'python3 -m pip install -f https://oneflow-staging.oss-cn-beijing.aliyuncs.com/branch/release/v1.0.0/cu121 oneflow'
let stable_command_122 = 'python3 -m pip install -f https://oneflow-staging.oss-cn-beijing.aliyuncs.com/branch/release/v1.0.0/cu122 oneflow'
let stable_command_cpu = 'python3 -m pip install -f https://oneflow-staging.oss-cn-beijing.aliyuncs.com/branch/release/v1.0.0/cpu oneflow'
let commands = [
{
versions: 'Stable',
framework: 'CUDA',
smlVers: '11.6',
command: stable_command_116.replace("VERSION", latest_version)
smlVers: '11.8',
command: stable_command_118.replace("VERSION", latest_version)
},
{
versions: 'Stable',
framework: 'CUDA',
smlVers: '11.7',
command: stable_command_117.replace("VERSION", latest_version)
smlVers: '12.1',
command: stable_command_121.replace("VERSION", latest_version)
},
{
versions: 'Stable',
framework: 'CUDA',
smlVers: '12.2',
command: stable_command_122.replace("VERSION", latest_version)
},
{
versions: 'Stable',
Expand All @@ -27,14 +34,20 @@
{
versions: 'Nightly',
framework: 'CUDA',
smlVers: '11.6',
command: 'python3 -m pip install -f https://staging.oneflow.info/branch/master/cu116 --pre oneflow'
smlVers: '11.8',
command: 'python3 -m pip install -f https://staging.oneflow.info/branch/master/cu118 --pre oneflow'
},
{
versions: 'Nightly',
framework: 'CUDA',
smlVers: '12.1',
command: 'python3 -m pip install -f https://staging.oneflow.info/branch/master/cu121 --pre oneflow'
},
{
versions: 'Nightly',
framework: 'CUDA',
smlVers: '11.7',
command: 'python3 -m pip install -f https://staging.oneflow.info/branch/master/cu117 --pre oneflow'
smlVers: '12.2',
command: 'python3 -m pip install -f https://staging.oneflow.info/branch/master/cu122 --pre oneflow'
},
{
versions: 'Nightly',
Expand All @@ -50,7 +63,7 @@
let condition = {
versions: 'Stable',
framework: 'CUDA',
smlVers: '11.6',
smlVers: '11.8',
}
selectCommands(condition)
let items = document.querySelectorAll('#instruction li')
Expand Down
5 changes: 3 additions & 2 deletions cn/overrides/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ <h1>OneFlow</h1>
<li attach="framework">CPU</li>
</ul>
<ul class="smlVers">
<li attach="smlVers" class="active">11.6</li>
<li attach="smlVers">11.7</li>
<li attach="smlVers" class="active">11.8</li>
<li attach="smlVers">12.1</li>
<li attach="smlVers">12.2</li>
</ul>
<div class="command">
<p>安装命令</p>
Expand Down
37 changes: 25 additions & 12 deletions en/docs/assets/install-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,28 @@
window.addEventListener('load', () => {

function get_commands(latest_version) {
let stable_command_116 = 'python3 -m pip install -f https://release.oneflow.info oneflow==VERSION+cu116'
let stable_command_117 = 'python3 -m pip install -f https://release.oneflow.info oneflow==VERSION+cu117'
let stable_command_cpu = 'python3 -m pip install -f https://release.oneflow.info oneflow==VERSION+cpu'
let stable_command_118 = 'python3 -m pip install -f https://oneflow-staging.oss-cn-beijing.aliyuncs.com/branch/release/v1.0.0/cu118 oneflow'
let stable_command_121 = 'python3 -m pip install -f https://oneflow-staging.oss-cn-beijing.aliyuncs.com/branch/release/v1.0.0/cu121 oneflow'
let stable_command_122 = 'python3 -m pip install -f https://oneflow-staging.oss-cn-beijing.aliyuncs.com/branch/release/v1.0.0/cu122 oneflow'
let stable_command_cpu = 'python3 -m pip install -f https://oneflow-staging.oss-cn-beijing.aliyuncs.com/branch/release/v1.0.0/cpu oneflow'
let commands = [
{
versions: 'Stable',
framework: 'CUDA',
smlVers: '11.6',
command: stable_command_116.replace("VERSION", latest_version)
smlVers: '11.8',
command: stable_command_118.replace("VERSION", latest_version)
},
{
versions: 'Stable',
framework: 'CUDA',
smlVers: '11.7',
command: stable_command_117.replace("VERSION", latest_version)
smlVers: '12.1',
command: stable_command_121.replace("VERSION", latest_version)
},
{
versions: 'Stable',
framework: 'CUDA',
smlVers: '12.2',
command: stable_command_122.replace("VERSION", latest_version)
},
{
versions: 'Stable',
Expand All @@ -27,14 +34,20 @@
{
versions: 'Nightly',
framework: 'CUDA',
smlVers: '11.6',
command: 'python3 -m pip install -f https://staging.oneflow.info/branch/master/cu116 --pre oneflow'
smlVers: '11.8',
command: 'python3 -m pip install -f https://staging.oneflow.info/branch/master/cu118 --pre oneflow'
},
{
versions: 'Nightly',
framework: 'CUDA',
smlVers: '12.1',
command: 'python3 -m pip install -f https://staging.oneflow.info/branch/master/cu121 --pre oneflow'
},
{
versions: 'Nightly',
framework: 'CUDA',
smlVers: '11.7',
command: 'python3 -m pip install -f https://staging.oneflow.info/branch/master/cu117 --pre oneflow'
smlVers: '12.2',
command: 'python3 -m pip install -f https://staging.oneflow.info/branch/master/cu122 --pre oneflow'
},
{
versions: 'Nightly',
Expand All @@ -50,7 +63,7 @@
let condition = {
versions: 'Stable',
framework: 'CUDA',
smlVers: '11.6',
smlVers: '11.8',
}
selectCommands(condition)
let items = document.querySelectorAll('#instruction li')
Expand Down
5 changes: 3 additions & 2 deletions en/overrides/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ <h1>OneFlow</h1>
<li attach="framework">CPU</li>
</ul>
<ul class="smlVers">
<li attach="smlVers" class="active">11.6</li>
<li attach="smlVers">11.7</li>
<li attach="smlVers" class="active">11.8</li>
<li attach="smlVers">12.1</li>
<li attach="smlVers">12.2</li>
</ul>
<div class="command">
<p>INSTALL COMMAND</p>
Expand Down

0 comments on commit d4dc26f

Please sign in to comment.