|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526 |
- {{template "base/head" .}}
- <style>
- .according-panel-heading{
- box-sizing: border-box;
- padding: 8px 16px;
- color: #252b3a;
- background-color: #f2f5fc;
- line-height: 1.5;
- cursor: pointer;
- -moz-user-select: none;
- -webkit-user-select: none;
- -ms-user-select: none;
- -khtml-user-select: none;
- user-select: none;
- }
- .accordion-panel-title {
- margin-top: 0;
- margin-bottom: 0;
- color: #252b3a;
- }
- .accordion-panel-title-content{
- vertical-align: middle;
- display: inline-block;
- width: calc(100% - 32px);
- cursor: default;
- }
- .acc-margin-bottom {
- margin-bottom: 5px;
- }
- .title_text {
- font-size: 12px;
- }
- .ac-display-inblock {
- display: inline-block;
- }
- .cti-mgRight-sm {
- margin-right: 8px;
- }
- .ac-text-normal {
- font-size: 14px;
- color: #575d6c;
- }
- .uc-accordionTitle-black {
- color: #333;
- }
- .accordion-border{
- border:1px solid #cce2ff;
- }
- .padding0{
- padding: 0 !important;
- }
- .content-pad{
- padding: 15px 35px;
- }
- .content-margin{
- margin:10px 5px ;
- }
- .tab_2_content {
- min-height: 360px;
- margin-left: 10px;
- }
- .ac-grid {
- display: block;
- *zoom: 1;
- }
- .ac-grid-col {
- float: left;
- width: 100%;
- }
- .ac-grid-col2 .ac-grid-col {
- width: 50%;
- }
- .ti-form {
- text-align: left;
- max-width: 100%;
- vertical-align: middle;
- }
- .ti-form>tbody {
- font-size: 12px;
- }
- .ti-form>tbody, .ti-form>tbody>tr {
- vertical-align: inherit;
- }
- .ti-text-form-label {
-
- padding-bottom: 20px;
- padding-right: 20px;
- color: #8a8e99;
- font-size: 12px;
- white-space: nowrap !important;
- width: 80px;
- line-height: 30px;
- }
- .ti-text-form-content{
- line-height: 30px;
- padding-bottom: 20px;
- }
- .ti-form>tbody>tr>td {
- vertical-align: top;
- white-space: normal;
- }
- td, th {
- padding: 0;
- }
- .ac-grid-col .text-span {
- width: 450px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .redo-color{
- color: #3291F8;
- }
- .ti-action-menu-item:not(:last-child){
- margin-right: 10px;
- padding-right: 11px;
- text-decoration: none!important;
- color: #526ecc;
- cursor: pointer;
- display: inline-block;
- -moz-user-select: none;
- -webkit-user-select: none;
- -ms-user-select: none;
- -khtml-user-select: none;
- user-select: none;
- position: relative;
- }
- .ti-action-menu-item:not(:last-child):after {
- content: "";
- display: inline-block;
- position: absolute;
- height: 12px;
- right: 0;
- top: 50%;
- -webkit-transform: translateY(-6px);
- -ms-transform: translateY(-6px);
- -o-transform: translateY(-6px);
- transform: translateY(-6px);
- border-right: 1px solid #dfe1e6;
- }
- .text-width80{
- width: 100px;
- line-height: 30px;
- }
- .border-according{
- border: 1px solid #dfe1e6;
- }
- .disabled {
- cursor: default;
- pointer-events: none;
- color: rgba(0,0,0,.6) !important;
- opacity: .45 !important;
- }
- .pad20{
-
- border:0px !important;
- }
- .model_file_bread{
- margin-bottom: -0.5rem !important;
- padding-left: 1rem;
- padding-top: 0.5rem ;
- }
- </style>
- <div class="repository">
- {{template "repo/header" .}}
- <div class="ui container">
- <h4 class="ui header" id="vertical-segment">
- <div class="ui breadcrumb">
- <a class="section" href="{{.RepoLink}}/debugjob?debugListType=all">
- {{.i18n.Tr "repo.cloudbrain"}}
- </a>
- <div class="divider"> / </div>
- <a class="section" href="{{$.RepoLink}}/modelarts/inference-job">
- {{$.i18n.Tr "repo.modelarts.infer_job"}}
- </a>
- <div class="divider"> / </div>
- <div class="active section">{{.displayJobName}}</div>
- </div>
- </h4>
- {{with .task}}
- <div class="ui accordion border-according" id="accordion{{.VersionName}}"
- data-repopath="{{$.RepoRelPath}}/modelarts/inference-job" data-jobid="{{.JobID}}" data-version="{{.VersionName}}">
- <input type="hidden" id="jobId_input" name="jobId_input" value="{{.JobID}}">
- <div class="active title padding0">
- <div class="according-panel-heading">
- <div class="accordion-panel-title">
- <i class="dropdown icon"></i>
- <span class="accordion-panel-title-content">
- <span>
- <div class="ac-display-inblock title_text acc-margin-bottom">
- <span class="cti-mgRight-sm">{{TimeSinceUnix1 .CreatedUnix}}</span>
-
- <span class="cti-mgRight-sm">{{$.i18n.Tr "repo.modelarts.status"}}:
- <span id="{{.VersionName}}-status-span"><i id="icon"
- style="vertical-align: middle;" class="{{.Status}}"></i><span id="text"
- style="margin-left: 0.4em;font-size: 12px;">{{.Status}}</span></span>
- </span>
- <span
- class="cti-mgRight-sm">{{$.i18n.Tr "repo.modelarts.train_job.dura_time"}}:</span>
- <span class="cti-mgRight-sm uc-accordionTitle-black"
- id="{{.VersionName}}-duration-span">{{.TrainJobDuration}}</span>
- <span id="refresh-status" data-tooltip="刷新" style="cursor: pointer;" data-inverted="" data-version="{{.VersionName}}"><i
- class="redo icon redo-color"></i></span>
-
- </div>
- </span>
- </span>
- </div>
- </div>
- </div>
- <div class="active content">
- <div class="content-pad">
- <div class="ui pointing secondary menu" style="border-bottom: 1px solid rgba(34,36,38,.15);">
-
- <a class="active item" data-tab="first">{{$.i18n.Tr "repo.modelarts.train_job.config"}}</a>
- <a class="item log_bottom" data-tab="second" data-version="{{.VersionName}}">{{$.i18n.Tr "repo.modelarts.log"}}</a>
- <a class="item load-model-file" data-tab="third" data-download-flag="{{$.canDownload}}" data-path="{{$.RepoLink}}/modelarts/inference-job/{{.JobID}}/result_list" data-version="{{.VersionName}}" data-parents="" data-filename="" data-init="init" >{{$.i18n.Tr "repo.model_download"}}</a>
- </div>
-
- <div class="ui tab active" data-tab="first" style="height:400px">
- <div style="padding-top: 10px;">
- <div class="tab_2_content">
- <div class="ac-grid ac-grid-col2">
- <div class="ac-grid-col">
- <table class="ti-form">
- <tbody class="ti-text-form">
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.cloudbrain_task"}}
- </td>
- <td class="ti-text-form-content">
- <div class="text-span text-span-w">
- {{.DisplayJobName}}
- </div>
- </td>
- </tr>
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.modelarts.status"}}
- </td>
-
- <td class="ti-text-form-content">
- <div class="text-span text-span-w" id="{{.VersionName}}-status">
- {{.Status}}
- </div>
- </td>
- </tr>
- <!-- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.modelarts.run_version"}}
- </td>
-
- <td class="ti-text-form-content">
- <div class="text-span text-span-w">
- {{.VersionName}}
- </div>
- </td>
- </tr> -->
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.modelarts.train_job.start_time"}}
- </td>
-
- <td class="ti-text-form-content">
- <div class="text-span text-span-w">
- <span style="font-size: 12px;" class="">
- {{if not (eq .StartTime 0)}}
- {{TimeSinceUnix1 .StartTime}}
- {{else}}
- {{TimeSinceUnix1 .CreatedUnix}}
- {{end}}
- </span>
- </div>
- </td>
- </tr>
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.modelarts.train_job.dura_time"}}
- </td>
-
- <td class="ti-text-form-content">
- <div class="text-span text-span-w" id="{{.VersionName}}-duration">
- {{.TrainJobDuration}}
- </div>
- </td>
- </tr>
- <tr class="ti-no-ng-animate">
-
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.modelarts.train_job.AI_driver"}}
- </td>
- <td class="ti-text-form-content">
- <div class="text-span text-span-w">
- {{.EngineName}}
- </div>
- </td>
-
- </tr>
-
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.model.manage.description"}}
- </td>
-
- <td class="ti-text-form-content">
- <div class="text-span text-span-w" id="{{.VersionName}}-desc" style="width: 380px;">
- {{if .Description}}
- <span title="{{.Description}}">{{.Description}}</span>
- {{else}}
- <span>--</span>
- {{end}}
- </div>
- </td>
- </tr>
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- 创建人
- </td>
-
- <td class="ti-text-form-content">
- <div class="text-span text-span-w" id="{{.VersionName}}-creator">
- {{$.userName}}
- </div>
- </td>
- </tr>
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.modelarts.train_job.compute_node"}}
- </td>
- <td class="ti-text-form-content">
- <div class="text-span text-span-w">
- {{.WorkServerNumber}}
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="ac-grid-col">
- <table class="ti-form">
- <tbody class="ti-text-form">
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.modelarts.infer_job_model"}}
- </td>
- <td class="ti-text-form-content">
- <div class="text-span text-span-w">
- <span>{{.ModelName}}</span>
- <span style="color: #8a8e99">{{$.i18n.Tr "repo.modelarts.version"}}:</span><span>{{.ModelVersion}}</span>
-
- </div>
- </td>
- </tr>
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.modelarts.infer_job_model_file"}}
- </td>
- <td class="ti-text-form-content">
- <div class="text-span text-span-w">
- {{.CkptName}}
- </div>
- </td>
- </tr>
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.modelarts.model_label"}}
- </td>
-
- <td class="ti-text-form-content">
- <div class="text-span text-span-w" id="{{.VersionName}}-labels">
-
- {{if .LabelName}}
- {{range $.labelName}}
- <a class="ui label" title="{{.}}">{{.}}</a>
- {{end}}
- {{else}}
- <span>--</span>
- {{end}}
- </div>
- </td>
- </tr>
-
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.modelarts.code_version"}}
- </td>
-
- <td class="ti-text-form-content">
- <div class="text-span text-span-w">
- {{.BranchName}}
- </div>
- </td>
- </tr>
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.modelarts.train_job.start_file"}}
- </td>
-
- <td class="ti-text-form-content">
- <div class="text-span text-span-w">
- {{.BootFile}}
- </div>
- </td>
- </tr>
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.modelarts.infer_dataset"}}
- </td>
-
- <td class="ti-text-form-content">
- <div class="text-span text-span-w">
- {{.DatasetName}}
- </div>
- </td>
- </tr>
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80" >
- {{$.i18n.Tr "repo.modelarts.train_job.run_parameter"}}
- </td>
-
- <td class="ti-text-form-content">
- <div class="text-span text-span-w" title="{{.Parameters}}">
- {{if .Parameters}}
- <span>{{.Parameters}}</span>
- {{else}}
- <span>--</span>
- {{end}}
- </div>
- </td>
- </tr>
- <tr class="ti-no-ng-animate">
- <td class="ti-no-ng-animate ti-text-form-label text-width80">
- {{$.i18n.Tr "repo.modelarts.train_job.standard"}}
- </td>
-
- <td class="ti-text-form-content">
- <div class="text-span text-span-w">
- {{.FlavorName}}
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
-
- </div>
- </div>
-
- <div class="ui tab" data-tab="second">
- <div>
- <a id="{{.VersionName}}-log-down"
- class='{{if and ($.canDownload) (eq .Status "KILLED" "FAILED" "START_FAILED" "STOPPED" "COMPLETED") }}ti-download-file{{else}}disabled{{end}}'
- href="{{$.RepoLink}}/modelarts/train-job/{{.JobID}}/download_log_file?version_name={{.VersionName}}">
- <i class="ri-download-cloud-2-line"></i>
- <span style="margin-left: 0.3rem;">{{$.i18n.Tr "repo.modelarts.download_log"}}</span>
- </a>
-
- </div>
- <div style="position: relative;border: 1px solid rgba(0,0,0,.2);padding: 0 10px;margin-top: 10px;">
- <span>
- <a title="滚动到顶部" style="position: absolute; right: -32px;cursor: pointer;"
- class="log_top" data-version="{{.VersionName}}"><i class="icon-to-top"></i></a>
- </span>
- <span>
- <a title="滚动到底部" style="position: absolute; bottom: 10px;right: -32px;cursor: pointer;"
- class="log_bottom" data-version="{{.VersionName}}"><i
- class="icon-to-bottom"></i></a>
- </span>
- <div class="ui message message{{.VersionName}}" style="display: none;">
- <div id="header"></div>
- </div>
- <div class="ui attached log log-scroll" data-version="{{.VersionName}}" id="log{{.VersionName}}" style="height: 300px !important; overflow: auto;">
- <input type="hidden" name="end_line" value>
- <input type="hidden" name="start_line" value>
- <pre id="log_file{{.VersionName}}"></pre>
- </div>
-
- </div>
-
- </div>
- <div class="ui tab" data-tab="third">
- <input type="hidden" name="model{{.VersionName}}" value="-1">
- <input type="hidden" name="modelback{{.VersionName}}" value="-1">
- <div class='ui breadcrumb model_file_bread' id='file_breadcrumb{{.VersionName}}'>
- <div class="active section">result</div>
- <div class="divider"> / </div>
-
- </div>
- <div id="dir_list{{.VersionName}}">
-
- </div>
- </div>
-
- </div>
- </div>
- </div>
- {{end}}
-
-
-
-
-
- </div>
- <!-- 确认模态框 -->
- </div>
- {{template "base/footer" .}}
- <script>
- console.log('{{$.canDownload}}')
- $(document).ready(function(){
- $('.secondary.menu .item').tab();
- });
- let userName
- let repoPath
- let jobID
- let downlaodFlag = {{$.canDownload }}
- $(document).ready(function(){
- let url = window.location.href;
- let urlArr = url.split('/')
- userName = urlArr.slice(-5)[0]
- repoPath = urlArr.slice(-4)[0]
- jobID = urlArr.slice(-1)[0]
- })
-
- </script>
|