Browse Source

资源说明

tags/v1.22.11.1^2
zhoupzh 3 years ago
parent
commit
a529e61294
4 changed files with 243 additions and 1 deletions
  1. +5
    -0
      routers/home.go
  2. +1
    -0
      routers/routes/routes.go
  3. +2
    -1
      templates/base/footer_content.tmpl
  4. +235
    -0
      templates/resource_desc.tmpl

+ 5
- 0
routers/home.go View File

@@ -41,6 +41,7 @@ const (
tplExploreExploreDataAnalysis base.TplName = "explore/data_analysis"
tplHomeTerm base.TplName = "terms"
tplHomePrivacy base.TplName = "privacy"
tplResoruceDesc base.TplName = "resource_desc"
)

// Home render home page
@@ -820,3 +821,7 @@ func HomeTerm(ctx *context.Context) {
func HomePrivacy(ctx *context.Context) {
ctx.HTML(200, tplHomePrivacy)
}

func HomeResoruceDesc(ctx *context.Context) {
ctx.HTML(200, tplResoruceDesc)
}

+ 1
- 0
routers/routes/routes.go View File

@@ -338,6 +338,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Get("/action/notification", routers.ActionNotification)
m.Get("/recommend/home", routers.RecommendHomeInfo)
m.Get("/dashboard/invitation", routers.GetMapInfo)
m.Get("/resource_desc", routers.HomeResoruceDesc)
//m.Get("/recommend/org", routers.RecommendOrgFromPromote)
//m.Get("/recommend/repo", routers.RecommendRepoFromPromote)
m.Get("/recommend/userrank/:index", routers.GetUserRankFromPromote)


+ 2
- 1
templates/base/footer_content.tmpl View File

@@ -36,7 +36,8 @@
{{else}}
<a href="{{AppSubUrl}}/user/login" class="item"><i class="envelope icon"></i> {{.i18n.Tr "custom.foot.advice_feedback"}}</a>
{{end}}

<a href="https://git.openi.org.cn/zeizei/OpenI_Learning" class="item" target="_blank"><i class="server icon"></i> {{.i18n.Tr "custom.Platform_Tutorial"}}</a>
{{template "custom/extra_links_footer" .}}
</div>
</div>


+ 235
- 0
templates/resource_desc.tmpl View File

@@ -0,0 +1,235 @@
{{template "base/head_home" .}}
<style>
.resource-desc td ul {
margin: 0em;
padding-inline-start: 20px;
padding-right: 10px;
}
</style>
<div class="ui resource-desc" style="width: 90%; margin: 0 auto">
<h1 class="ui center am-pt-30 am-pb-20">平台资源说明</h1>
<div class="ui divider am-pb-10"></div>
<table class="ui celled structured table">
<thead>
<tr>
<th>集群</th>
<th>计算资源</th>
<th>任务类型</th>
<th>卡类型</th>
<th>可用镜像</th>
<th>网络类型</th>
<th>数据集处理方式</th>
<th>容器目录说明</th>
<th>示例代码仓</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr class="wrap">
<td rowspan="8" class="single line">启智集群</td>
<td rowspan="5">GPU</td>
<td class="single line">调试任务</td>
<td>T4</td>
<td>
<ul>
<li style="word-break: initial">
外部公开镜像,如:dockerhub镜像;
</li>
<li>平台镜像;</li>
</ul>
</td>
<td>能连外网</td>
<td rowspan="8" class="single line">平台可解压数据集</td>
<td>
数据集存放路径/dataset,模型存放路径/model,代码存放路径/code
</td>
<td></td>
<td></td>
</tr>
<tr class="wrap">
<td rowspan="2">训练任务</td>
<td>V100</td>
<td>
<ul>
<li>平台镜像;</li>
</ul>
</td>
<td class="single line">不能连外网</td>
<td rowspan="2">
训练脚本存储在/code中,数据集存储在/dataset中,预训练模型存放在环境变量ckpt_url中,训练输出请存储在/model中
以供后续下载。
</td>
<td rowspan="2">
<a
href="https://git.openi.org.cn/OpenIOSSG/MNIST_PytorchExample_GPU"
>https://git.openi.org.cn/OpenIO
SSG/MNIST_PytorchExample_GPU</a
>
</td>
<td>
启智集群V100不能连外网,只能使用平台的镜像,不可使用外部公开镜像,,否则任务会一直处于waiting
状态
</td>
</tr>
<tr class="wrap">
<td>A100</td>
<td>
<ul>
<li style="word-break: initial">
外部公开镜像,如:dockerhub镜像;
</li>
<li>平台镜像;</li>
</ul>
</td>
<td>能连外网</td>
<td></td>
</tr>
<tr class="wrap">
<td>推理任务</td>
<td>V100</td>
<td>
<ul>
<li>平台镜像;</li>
</ul>
</td>
<td>不能连外网</td>
<td>
数据集存储在/dataset中,模型文件存储在/model中,推理输出请存储在/result中
以供后续下载。
</td>
<td>
<a
href="https://git.openi.org.cn/OpenIO
SSG/MNIST_PytorchExample_GPU/src/branch/master/inference.py"
>https://git.openi.org.cn/OpenIO
SSG/MNIST_PytorchExample_GPU/src/branch/master/inference.py</a
>
</td>
<td></td>
</tr>
<tr class="wrap">
<td>评测任务</td>
<td>V100</td>
<td>
<ul>
<li>平台镜像;</li>
</ul>
</td>
<td>不能连外网</td>
<td></td>
<td></td>
<td>
模型评测时,先使用数据集功能上传模型,然后从数据集列表选模型。
</td>
</tr>
<tr class="wrap">
<td rowspan="3">NPU</td>
<td>调试任务</td>
<td class="single line">Ascend 910</td>
<td rowspan="3">
<ul>
<li>平台镜像;</li>
</ul>
</td>
<td rowspan="3">能连外网</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr class="wrap">
<td>训练任务</td>
<td>Ascend 910</td>
<td>
数据集位置存储在环境变量data_url中,预训练模型存放在环境变量ckpt_url中,训练输出路径存储在环境变量train_url中。
</td>
<td>
<a href="https://git.openi.org.cn/OpenIOSSG/MNIST_Example"
>https://git.openi.org.cn/OpenIOSSG/MNIST_Example</a
>
</td>
<td></td>
</tr>
<tr class="wrap">
<td>推理任务</td>
<td>Ascend 910</td>
<td>
数据集位置存储在环境变量data_url中,推理输出路径存储在环境变量result_url中。
</td>
<td>
<a href="https://git.openi.org.cn/OpenIOSSG/MNIST_Example"
>https://git.openi.org.cn/OpenIOSSG/MNIST_Example</a
>
</td>
<td></td>
</tr>
<tr class="wrap">
<td rowspan="3">智算网络</td>
<td rowspan="2">GPU</td>
<td rowspan="2">训练任务</td>
<td>V100</td>
<td>
<ul>
<li style="word-break: initial">
外部公开镜像,如:dockerhub镜像;
</li>
<li>平台镜像;</li>
</ul>
</td>
<td>能连外网</td>
<td rowspan="3">用户自行解压数据 集</td>
<td rowspan="2">
训练脚本存储在/tmp/code中,数据集存储在/tmp/dataset中,预训练模型存放在环境变量ckpt_url中,训练输出请存储在/tmp/output中以供后续下载。
</td>
<td rowspan="2">
<a
href="https://git.openi.org.cn/OpenIO
SSG/MNIST_PytorchExample_GPU/src/branch/master/train_for_c
A100 2net.py"
>https://git.openi.org.cn/OpenIO
SSG/MNIST_PytorchExample_GPU/src/branch/master/train_for_c
A100 2net.py</a
>
</td>
<td></td>
</tr>
<tr class="wrap">
<td>A100</td>
<td>
<ul>
<li style="word-break: initial">
外部公开镜像,如:dockerhub镜像;
</li>
<li>平台镜像;</li>
</ul>
</td>
<td>能连外网</td>
<td></td>
</tr>
<tr class="wrap">
<td>NPU</td>
<td>训练任务</td>
<td>Ascend 910</td>
<td>
<ul>
<li>平台镜像;</li>
</ul>
</td>
<td>能连外网</td>
<td>
训练脚本存储在/cache/code中,预训练模型存放在环境变量ckpt_url中,训练输出请存储在/cache/output中以供后续下载。
</td>
<td>
<a
href="https://git.openi.org.cn/OpenIO
SSG/MNIST_Example/src/branch/master/train_for_c2net.py"
>https://git.openi.org.cn/OpenIO
SSG/MNIST_Example/src/branch/master/train_for_c2net.py</a
>
</td>
<td></td>
</tr>
</tbody>
</table>
</div>

{{template "base/footer" .}}

Loading…
Cancel
Save