Skip to content

Commit

Permalink
deploy: d4dc26f
Browse files Browse the repository at this point in the history
  • Loading branch information
levi131 committed Mar 21, 2024
1 parent f8662bb commit 6228e2b
Show file tree
Hide file tree
Showing 12 changed files with 56 additions and 28 deletions.
37 changes: 25 additions & 12 deletions en/master/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/master/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,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
Binary file modified en/master/sitemap.xml.gz
Binary file not shown.
Binary file modified en/v0.4.0/sitemap.xml.gz
Binary file not shown.
Binary file modified en/v0.7.0/sitemap.xml.gz
Binary file not shown.
Binary file modified en/v0.8.0/sitemap.xml.gz
Binary file not shown.
37 changes: 25 additions & 12 deletions master/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 master/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,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
Binary file modified master/sitemap.xml.gz
Binary file not shown.
Binary file modified v0.4.0/sitemap.xml.gz
Binary file not shown.
Binary file modified v0.7.0/sitemap.xml.gz
Binary file not shown.
Binary file modified v0.8.0/sitemap.xml.gz
Binary file not shown.

0 comments on commit 6228e2b

Please sign in to comment.