Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.1.1^2
zouap 3 years ago
parent
commit
5f134343c8
4 changed files with 118 additions and 34 deletions
  1. +30
    -0
      options/locale/locale_en-US.ini
  2. +30
    -0
      options/locale/locale_zh-CN.ini
  3. +32
    -8
      routers/home.go
  4. +26
    -26
      templates/home.tmpl

+ 30
- 0
options/locale/locale_en-US.ini View File

@@ -220,6 +220,36 @@ show_only_public = Showing only public
issues.in_your_repos = In your repositories
contributors = Contributors

page_title=Explore Better AI
page_small_title=OpenI AI development cooperation platform
page_description=The one-stop collaborative development environment for AI field provides AI development pipeline integrating code development, data management, model debugging, reasoning and evaluation
page_use=Use Now
page_only_dynamic=Show only open source project dynamics
page_recommend_org=Recommended organization
page_recommend_org_desc=These excellent organizations are using Qizhi AI to develop collaboration platforms; Your organization also wants to show here,
page_recommend_org_commit=Click here to submit
page_recommend_org_more=More organizations
page_recommend_repo=Recommended projects
page_recommend_repo_desc=Excellent AI project recommendation; Your project also wants to show here,
page_recommend_repo_commit=Click here to submit
page_recommend_repo_go=. Click here
page_recommend_repo_more=Project Square
page_dev_env=Collaborative development environment
page_dev_env_desc=The biggest difference between Qizhi AI collaborative development platform and traditional git platform is that it provides a collaborative development environment for AI development
page_dev_env_desc_title=Unified management of development elements
page_dev_env_desc_desc=The platform provides four elements of AI development: unified management of model code, data set, model and execution environment
page_dev_env_desc1_title=Data collaboration and sharing
page_dev_env_desc1_desc=By uploading data sets in the project, many project members cooperate to complete data preprocessing; You can also establish a better model with community developers by setting the data as a public dataset
page_dev_env_desc2_title=Model management and sharing
page_dev_env_desc2_desc=Associate the model with the code version, adjust the model in different ways based on the code history version, and save the results; The trained model can be open and shared, so that more people can use the model to test and give feedback
page_dev_env_desc3_title=One configuration, multiple use
page_dev_env_desc3_desc=Provide execution environment sharing, one-time configuration and multiple use, reduce the threshold of model development, and avoid spending repeated time configuring complex environments
page_dev_yunlao=PengCheng Cloudbrain open source collaboration
page_dev_yunlao_desc1=The platform has been connected with Pengcheng Cloudbrain and can use the rich computing resources of Pengcheng Cloudbrain to complete AI development tasks
page_dev_yunlao_desc2=Pengcheng Cloudbrain's existing AI computing power is 100p FLOPS@FP16 (billions of half precision floating-point calculations per second), the main hardware infrastructure is composed of GPU server equipped with NVIDIA Tesla V100 and Atlas 900 AI cluster equipped with Kunpeng and shengteng processors
page_dev_yunlao_desc3=Developers can freely choose the corresponding computing resources according to the use requirements, and can test the adaptability, performance and stability of the model in different hardware environments
page_dev_yunlao_desc4=If your model needs more computing resources, you can also apply separately

[explore]
repos = Repositories
select_repos = Select the project


+ 30
- 0
options/locale/locale_zh-CN.ini View File

@@ -222,6 +222,36 @@ issues.in_your_repos=属于该用户项目的

contributors=贡献者

page_title=探索更好的AI
page_small_title=启智AI开发协作平台
page_description=面向AI领域的一站式协同开发环境,提供集代码开发、数据管理、模型调试、推理和评测为一体的AI开发流水线
page_use=立即使用
page_only_dynamic=仅展示开源项目动态
page_recommend_org=推荐组织
page_recommend_org_desc=这些优秀的组织正在使用启智AI开发协作平台;你的组织也想展示到这里,
page_recommend_org_commit=点此提交
page_recommend_org_more=更多组织
page_recommend_repo=推荐项目
page_recommend_repo_desc=优秀的AI项目推荐;你的项目也想展示到这里,
page_recommend_repo_commit=点此提交
page_recommend_repo_go=。进入
page_recommend_repo_more=项目广场
page_dev_env=协同开发环境
page_dev_env_desc=启智AI协作开发平台与传统git平台最大的不同就在于提供了面向AI开发的协同开发环境
page_dev_env_desc_title=开发要素统一管理
page_dev_env_desc_desc=平台提供了AI开发四大要素:模型代码、数据集、模型和执行环境的统一管理
page_dev_env_desc1_title=数据协同与共享
page_dev_env_desc1_desc=通过在项目中上传数据集,项目成员多人协作完成数据预处理;也可以通过将数据设置为公有数据集,与社区开发者共同建立更好的模型
page_dev_env_desc2_title=模型管理与共享
page_dev_env_desc2_desc=将模型与代码版本建立关联,可以基于代码历史版本,使用不同的方式调整模型,并将结果保存下来;训练好的模型可以开放共享,让更多人的使用模型测试并提出反馈
page_dev_env_desc3_title=一次配置,多次使用
page_dev_env_desc3_desc=提供执行环境共享,一次配置,多次使用,降低模型开发门槛,避免花费重复的时间配置复杂的环境
page_dev_yunlao=鹏城云脑开源协同
page_dev_yunlao_desc1=平台已经与鹏城云脑打通,可以利用鹏城云脑的丰富算力资源,完成AI开发任务
page_dev_yunlao_desc2=鹏城云脑现有AI算力100P FLOPS@FP16(每秒十亿亿次半精度浮点计算),主要硬件基础设施由搭载英伟达Tesla V100 的GPU服务器和搭载鲲鹏、昇腾处理器的Atlas 900 AI集群构成
page_dev_yunlao_desc3=开发者可以根据使用需求,自由选择相应计算资源,可以测试模型在不同硬件环境下的适配能力、性能、稳定性等
page_dev_yunlao_desc4=如果您的模型需要更多的计算资源,也可以单独申请

[explore]
repos=项目
select_repos=精选项目


+ 32
- 8
routers/home.go View File

@@ -57,6 +57,36 @@ func setRecommendURL(ctx *context.Context) {
} else {
ctx.Data["RecommendURL"] = setting.RecommentRepoAddr
}

ctx.Data["page_title"] = ctx.Tr("home.page_title")
ctx.Data["page_small_title"] = ctx.Tr("home.page_small_title")
ctx.Data["page_description"] = ctx.Tr("home.page_description")
ctx.Data["page_use"] = ctx.Tr("home.page_use")
ctx.Data["page_only_dynamic"] = ctx.Tr("home.page_only_dynamic")
ctx.Data["page_recommend_org"] = ctx.Tr("home.page_recommend_org")
ctx.Data["page_recommend_org_desc"] = ctx.Tr("home.page_recommend_org_desc")
ctx.Data["page_recommend_org_commit"] = ctx.Tr("home.page_recommend_org_commit")
ctx.Data["page_recommend_org_more"] = ctx.Tr("home.page_recommend_org_more")
ctx.Data["page_recommend_repo"] = ctx.Tr("home.page_recommend_repo")
ctx.Data["page_recommend_repo_desc"] = ctx.Tr("home.page_recommend_repo_desc")
ctx.Data["page_recommend_repo_commit"] = ctx.Tr("home.page_recommend_repo_commit")
ctx.Data["page_recommend_repo_go"] = ctx.Tr("home.page_recommend_repo_go")
ctx.Data["page_recommend_repo_more"] = ctx.Tr("home.page_recommend_repo_more")
ctx.Data["page_dev_env"] = ctx.Tr("home.page_dev_env")
ctx.Data["page_dev_env_desc"] = ctx.Tr("home.page_dev_env_desc")
ctx.Data["page_dev_env_desc_title"] = ctx.Tr("home.page_dev_env_desc_title")
ctx.Data["page_dev_env_desc_desc"] = ctx.Tr("home.page_dev_env_desc_desc")
ctx.Data["page_dev_env_desc1_title"] = ctx.Tr("home.page_dev_env_desc1_title")
ctx.Data["page_dev_env_desc1_desc"] = ctx.Tr("home.page_dev_env_desc1_desc")
ctx.Data["page_dev_env_desc2_title"] = ctx.Tr("home.page_dev_env_desc2_title")
ctx.Data["page_dev_env_desc2_desc"] = ctx.Tr("home.page_dev_env_desc2_desc")
ctx.Data["page_dev_env_desc3_title"] = ctx.Tr("home.page_dev_env_desc3_title")
ctx.Data["page_dev_env_desc3_desc"] = ctx.Tr("home.page_dev_env_desc3_desc")
ctx.Data["page_dev_yunlao"] = ctx.Tr("home.page_dev_yunlao")
ctx.Data["page_dev_yunlao_desc1"] = ctx.Tr("home.page_dev_yunlao_desc1")
ctx.Data["page_dev_yunlao_desc2"] = ctx.Tr("home.page_dev_yunlao_desc2")
ctx.Data["page_dev_yunlao_desc3"] = ctx.Tr("home.page_dev_yunlao_desc3")
ctx.Data["page_dev_yunlao_desc4"] = ctx.Tr("home.page_dev_yunlao_desc4")
}

func Dashboard(ctx *context.Context) {
@@ -572,14 +602,8 @@ func recommendFromPromote(url string) ([]string, error) {
lines := strings.Split(allLineStr, "\n")
result := make([]string, len(lines))
for i, line := range lines {

tmpIndex := strings.Index(line, ".")
log.Info("i=" + fmt.Sprint(i) + " line=" + line + " tmpIndex=" + fmt.Sprint(tmpIndex))
if tmpIndex == -1 {
result[i] = strings.Trim(line, " ")
} else {
result[i] = strings.Trim(line[tmpIndex+1:], " ")
}
log.Info("i=" + fmt.Sprint(i) + " line=" + line)
result[i] = strings.Trim(line, " ")
}
return result, nil
}


+ 26
- 26
templates/home.tmpl View File

@@ -3,18 +3,18 @@
<div class="ui container" style="position: relative;">
<div class="ui center homebanner">
<h1 class="ui huge header">
探索更好的AI
{{.page_title}}
<div class="sub header">
启智AI开发协作平台
{{.page_small_title}}
</div>
</h1>
<p class="ui am-lh-18">面向AI领域的一站式协同开发环境,提供集代码开发、数据管理、模型调试、推理和评测为一体的AI开发流水线</p>
<p class="ui am-lh-18">{{.page_description}}</p>
<a class="circular huge ui secondary button" href="{{AppSubUrl}}/user/sign_up">立即使用 <i class="right arrow icon"></i></a>
<a class="circular huge ui secondary button" href="{{AppSubUrl}}/user/sign_up">{{.page_use}}<i class="right arrow icon"></i></a>
</div>
<div class="bannerpic"><img class="ui fluid image" src="/img/gitopeni-index-01.svg"></div>
<div id="homenews" class="ui container">
<p>* 仅展示开源项目动态</p>
<p>* {{.page_only_dynamic}}</p>
<div class="ui grid">
<div class="twelve wide tablet ten wide computer column homenews">
<div class="newslist">
@@ -33,9 +33,9 @@
<div class="ui container homeorg">
<div class="ui stackable grid">
<div class="sixteen wide tablet four wide computer column homeorg-tit">
<h2>推荐组织</h2>
<p><span class="ui text grey">这些优秀的组织正在使用启智AI开发协作平台;你的组织也想展示到这里,</span><a href="{{.RecommendURL}}">点此提交</a></p>
<a href="{{AppSubUrl}}/explore/organizations" class="circular ui primary basic button">更多组织 <i class="arrow circle right icon"></i></a>
<h2>{{.page_recommend_org}}</h2>
<p><span class="ui text grey">{{.page_recommend_org_desc}}</span><a href="{{.RecommendURL}}">{{.page_recommend_org_commit}}</a></p>
<a href="{{AppSubUrl}}/explore/organizations" class="circular ui primary basic button">{{.page_recommend_org_more}} <i class="arrow circle right icon"></i></a>
</div>
<div class="sixteen wide tablet twelve wide computer column">
<div class="ui stackable three column grid homeorg-list" id="recommendorg">
@@ -52,8 +52,8 @@
<div class="leftline02"></div>
<div class="leftline02-2"></div>
<div class="ui center homepro-tit am-mb-20">
<h2>推荐项目</h2>
<p><span class="ui text grey">优秀的AI项目推荐;你的项目也想展示到这里,</span><a href="{{.RecommendURL}}">点此提交</a>。进入<a href="{{AppSubUrl}}/explore/">项目广场</a></p>
<h2>{{.page_recommend_repo}}</h2>
<p><span class="ui text grey">{{.page_recommend_repo_desc}}</span><a href="{{.RecommendURL}}">{{.page_recommend_repo_commit}}</a>{{.page_recommend_repo_go}}<a href="{{AppSubUrl}}/explore/">{{.page_recommend_repo_more}}</a></p>
</div>

<div class="homepro-list">
@@ -71,8 +71,8 @@
<div class="ui center am-pb-30">
<div class="leftline03"></div>
<h2>协同开发环境</h2>
<p><span class="ui text grey">启智AI协作开发平台与传统git平台最大的不同就在于提供了面向AI开发的协同开发环境</p>
<h2>{{.page_dev_env}}</h2>
<p><span class="ui text grey">{{.page_dev_env_desc}}</p>
</div>
<div class="ui four stackable cards">
<div class="card">
@@ -80,9 +80,9 @@
<img src="/img/i-pic-01.svg">
</div>
<div class="content">
<h3 class="ui centered small header">开发要素统一管理</h3>
<h3 class="ui centered small header">{{.page_dev_env_desc_title}}</h3>
<div class="description">
平台提供了AI开发四大要素:模型代码、数据集、模型和执行环境的统一管理
{{.page_dev_env_desc_desc}}
</div>
</div>
</div>
@@ -91,9 +91,9 @@
<img src="/img/i-pic-02.svg">
</div>
<div class="content">
<h3 class="ui centered small header">数据协同与共享</h3>
<h3 class="ui centered small header">{{.page_dev_env_desc1_title}}</h3>
<div class="description">
通过在项目中上传数据集,项目成员多人协作完成数据预处理;也可以通过将数据设置为公有数据集,与社区开发者共同建立更好的模型
{{.page_dev_env_desc1_desc}}
</div>
</div>
</div>
@@ -102,9 +102,9 @@
<img src="/img/i-pic-03.svg">
</div>
<div class="content">
<h3 class="ui centered small header">模型管理与共享</h3>
<h3 class="ui centered small header">{{.page_dev_env_desc2_title}}</h3>
<div class="description">
将模型与代码版本建立关联,可以基于代码历史版本,使用不同的方式调整模型,并将结果保存下来;训练好的模型可以开放共享,让更多人的使用模型测试并提出反馈
{{.page_dev_env_desc2_desc}}
</div>
</div>
</div>
@@ -113,9 +113,9 @@
<img src="/img/i-pic-04.svg">
</div>
<div class="content">
<h3 class="ui centered small header">一次配置,多次使用</h3>
<h3 class="ui centered small header">{{.page_dev_env_desc3_title}}</h3>
<div class="description">
提供执行环境共享,一次配置,多次使用,降低模型开发门槛,避免花费重复的时间配置复杂的环境
{{.page_dev_env_desc3_desc}}
</div>
</div>
</div>
@@ -130,14 +130,14 @@
<img class="ui centered large image" src="/img/i-yunnao.svg">
</div>
<div class="ten wide column am-pt-30">
<h2 class="ui grey inverted header">鹏城云脑开源协同</h2>
<h2 class="ui grey inverted header">{{.page_dev_yunlao}}</h2>
<p class="am-lh-18 ui text grey">
平台已经与鹏城云脑打通,可以利用鹏城云脑的丰富算力资源,完成AI开发任务<br>
鹏城云脑现有AI算力100P FLOPS@FP16(每秒十亿亿次半精度浮点计算),主要硬件基础设施由搭载英伟达Tesla V100 的GPU服务器和搭载鲲鹏、昇腾处理器的Atlas 900 AI集群构成<br>
开发者可以根据使用需求,自由选择相应计算资源,可以测试模型在不同硬件环境下的适配能力、性能、稳定性等<br>
如果您的模型需要更多的计算资源,也可以单独申请<br>
{{.page_dev_yunlao_desc1}}<br>
{{.page_dev_yunlao_desc2}}<br>
{{.page_dev_yunlao_desc3}}<br>
{{.page_dev_yunlao_desc4}}<br>
</p>
<a class="ui blue basic button am-mt-20" href="{{AppSubUrl}}/user/sign_up">立即使用</a> <a class="ui grey basic button am-mt-20" href="/zeizei/OpenI_Learning/issues">单独申请</a>
<a class="ui blue basic button am-mt-20" href="{{AppSubUrl}}/user/sign_up">{{.page_use}}</a> <a class="ui grey basic button am-mt-20" href="/zeizei/OpenI_Learning/issues">单独申请</a>
</div>
</div>
</div>


Loading…
Cancel
Save