You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

show.tmpl 23 kB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. {{template "base/head" .}}
  2. <div class="repository">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. <h4 class="ui header" id="vertical-segment">
  6. <div class="ui breadcrumb">
  7. <a class="section" href="{{.RepoLink}}/debugjob?debugListType=all">
  8. {{.i18n.Tr "repo.cloudbrain"}}
  9. </a>
  10. <div class="divider"> / </div>
  11. <a class="section backTodeBug" href="{{.RepoLink}}/debugjob?debugListType=all">
  12. {{$.i18n.Tr "repo.modelarts.notebook"}}
  13. </a>
  14. <div class="divider"> / </div>
  15. {{with .task}}
  16. <div class="active section">{{.DisplayJobName}}</div>
  17. {{end}}
  18. </div>
  19. </h4>
  20. {{with .task}}
  21. <div class="ui accordion border-according" id="accordion" data-repopath="{{$.RepoRelPath}}/grampus/notebook"
  22. data-jobid="{{.ID}}" data-version="">
  23. <div class="active title padding0">
  24. <div class="according-panel-heading">
  25. <div class="accordion-panel-title">
  26. <!-- <i class="dropdown icon"></i> -->
  27. <span class="accordion-panel-title-content">
  28. <span>
  29. <div class="ac-display-inblock title_text acc-margin-bottom">
  30. <span class="cti-mgRight-sm">
  31. {{TimeSinceUnix1 .CreatedUnix}}
  32. </span>
  33. <span class="cti-mgRight-sm">{{$.i18n.Tr "repo.modelarts.status"}}:
  34. <span id="{{.VersionName}}-status-span"><i id="icon"
  35. style="vertical-align: middle;" class="{{.Status}}"></i><span id="text"
  36. style="margin-left: 0.4em;font-size: 12px;">{{.Status}}</span></span>
  37. </span>
  38. <span
  39. class="cti-mgRight-sm">{{$.i18n.Tr "repo.modelarts.train_job.dura_time"}}:</span>
  40. <span class="cti-mgRight-sm uc-accordionTitle-black"
  41. id="{{.VersionName}}-duration-span">{{ConvertDurationToStr .Duration}}</span>
  42. <span class="refresh-status" data-tooltip="刷新" style="cursor: pointer;" data-inverted="" data-version="{{.VersionName}}">
  43. <i class="redo icon redo-color"></i>
  44. </span>
  45. </div>
  46. </span>
  47. </span>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="active content">
  52. <div class="content-pad">
  53. <div class="ui pointing secondary menu" style="border-bottom: 1px solid rgba(34,36,38,.15);">
  54. <a class="active item" data-tab="first">{{$.i18n.Tr "repo.modelarts.train_job.config"}}</a>
  55. </div>
  56. <div class="ui tab active" data-tab="first">
  57. <div style="padding-top: 10px;">
  58. <div class="tab_2_content">
  59. <div class="ac-grid ac-grid-col2">
  60. <div class="ac-grid-col">
  61. <table class="ti-form">
  62. <tbody class="ti-text-form">
  63. <tr class="ti-no-ng-animate">
  64. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  65. {{$.i18n.Tr "repo.cloudbrain_task"}}
  66. </td>
  67. <td class="ti-text-form-content">
  68. <div class="text-span text-span-w">
  69. {{.DisplayJobName}}
  70. </div>
  71. </td>
  72. </tr>
  73. <tr class="ti-no-ng-animate">
  74. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  75. {{$.i18n.Tr "repo.modelarts.status"}}
  76. </td>
  77. <td class="ti-text-form-content">
  78. <div class="text-span text-span-w" id="{{.VersionName}}-status">
  79. {{.Status}}
  80. </div>
  81. </td>
  82. </tr>
  83. <tr class="ti-no-ng-animate">
  84. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  85. {{$.i18n.Tr "repo.cloudbrain_creator"}}
  86. </td>
  87. <td class="ti-text-form-content">
  88. <div class="text-span text-span-w">
  89. {{.User.Name}}
  90. </div>
  91. </td>
  92. </tr>
  93. <tr class="ti-no-ng-animate">
  94. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  95. {{$.i18n.Tr "repo.modelarts.code_version"}}
  96. </td>
  97. <td class="ti-text-form-content">
  98. <div class="text-span text-span-w">
  99. {{if .BranchName}}
  100. {{.BranchName}}
  101. {{else}}
  102. --
  103. {{end}}
  104. </div>
  105. </td>
  106. </tr>
  107. <tr class="ti-no-ng-animate">
  108. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  109. {{$.i18n.Tr "repo.modelarts.computing_resources"}}
  110. </td>
  111. <td class="ti-text-form-content">
  112. <div class="text-span text-span-w"
  113. id="{{.VersionName}}-computeresource">
  114. {{.ComputeResource}}
  115. </div>
  116. </td>
  117. </tr>
  118. <tr class="ti-no-ng-animate">
  119. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  120. {{$.i18n.Tr "repo.modelarts.createtime"}}
  121. </td>
  122. <td class="ti-text-form-content">
  123. <div class="text-span text-span-w"
  124. id="{{.VersionName}}-createtime">
  125. {{TimeSinceUnix1 .CreatedUnix}}
  126. </div>
  127. </td>
  128. </tr>
  129. <tr class="ti-no-ng-animate">
  130. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  131. {{$.i18n.Tr "cloudbrain.description"}}
  132. </td>
  133. <td class="ti-text-form-content">
  134. <div class="text-span-new" id="model_description">
  135. {{.Description}}
  136. </div>
  137. </td>
  138. </tr>
  139. </tbody>
  140. </table>
  141. </div>
  142. <div class="ac-grid-col">
  143. <table class="ti-form">
  144. <tbody class="ti-text-form">
  145. <tr class="ti-no-ng-animate">
  146. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  147. {{$.i18n.Tr "cloudbrain.mirror"}}
  148. </td>
  149. <td class="ti-text-form-content">
  150. <div class="text-span text-span-w" id="{{.VersionName}}-mirror">
  151. <span class="ui poping up clipboard" data-position="top center" id="clipboard-btn-image" style="cursor:pointer"
  152. data-clipboard-text="{{.EngineName}}"
  153. data-success="{{$.i18n.Tr "repo.copied"}}"
  154. data-error="{{$.i18n.Tr "repo.copied_error"}}"
  155. data-content="{{$.i18n.Tr "repo.copy"}}"
  156. data-variation="inverted tiny"
  157. >
  158. <span title="{{.EngineName}}">{{.EngineName}}</span>
  159. </span>
  160. </div>
  161. </td>
  162. </tr>
  163. <tr class="ti-no-ng-animate">
  164. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  165. {{$.i18n.Tr "repo.modelarts.train_job.standard"}}
  166. </td>
  167. <td class="ti-text-form-content spec">
  168. <div class="text-span text-span-w"></div>
  169. </td>
  170. </tr>
  171. <tr class="ti-no-ng-animate">
  172. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  173. {{$.i18n.Tr "repo.cloudbrain.time.starttime"}}
  174. </td>
  175. <td class="ti-text-form-content">
  176. <div class="text-span text-span-w">
  177. <div class="text-span text-span-w"
  178. id="{{.VersionName}}-startTime">
  179. {{if not (eq .StartTime 0)}}
  180. {{TimeSinceUnix1 .StartTime}}
  181. {{else}}
  182. --
  183. {{end}}
  184. </div>
  185. </div>
  186. </td>
  187. </tr>
  188. <tr class="ti-no-ng-animate">
  189. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  190. {{$.i18n.Tr "repo.cloudbrain.time.endtime"}}
  191. </td>
  192. <td class="ti-text-form-content">
  193. <div class="text-span text-span-w"
  194. id="{{.VersionName}}-EndTime">
  195. {{if not (eq .EndTime 0)}}
  196. {{TimeSinceUnix1 .EndTime}}
  197. {{else}}
  198. --
  199. {{end}}
  200. </div>
  201. </td>
  202. </tr>
  203. <tr class="ti-no-ng-animate">
  204. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  205. {{$.i18n.Tr "repo.grampus.train_job.ai_center"}}
  206. </td>
  207. <td class="ti-text-form-content">
  208. <div class="text-span text-span-w" id="{{.VersionName}}-ai_center">
  209. {{if .AiCenter}}{{.AiCenter}}{{else}}--{{end}}
  210. </div>
  211. </td>
  212. </tr>
  213. <tr class="ti-no-ng-animate">
  214. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  215. {{$.i18n.Tr "repo.modelarts.train_job.dura_time"}}
  216. </td>
  217. <td class="ti-text-form-content">
  218. <div class="text-span text-span-w"
  219. id="{{.VersionName}}-duration">
  220. {{if not (eq .Duration 0)}}
  221. {{ConvertDurationToStr .Duration}}
  222. {{else}}
  223. --
  224. {{end}}
  225. </div>
  226. </td>
  227. </tr>
  228. {{if eq .ComputeResource "NPU"}}
  229. <tr class="ti-no-ng-animate">
  230. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  231. 代码obs地址
  232. </td>
  233. <td class="ti-text-form-content">
  234. <div class="text-span text-span-w" id="{{.VersionName}}-trainUrl">
  235. <span class="ui poping up clipboard" data-position="top center" id="clipboard-btn-trainUrl" style="cursor:pointer"
  236. data-clipboard-text="{{.TrainUrl}}"
  237. data-success="{{$.i18n.Tr "repo.copied"}}"
  238. data-error="{{$.i18n.Tr "repo.copied_error"}}"
  239. data-content="{{$.i18n.Tr "repo.copy"}}"
  240. data-variation="inverted tiny"
  241. >
  242. <span title="{{.TrainUrl}}">
  243. {{if .TrainUrl}}
  244. {{.TrainUrl}}
  245. {{else}}
  246. --
  247. {{end}}
  248. </span>
  249. </span>
  250. </div>
  251. </td>
  252. </tr>
  253. {{end}}
  254. </tbody>
  255. </table>
  256. </div>
  257. </div>
  258. </div>
  259. {{if eq .ComputeResource "NPU"}}
  260. <div style="clear:both">
  261. <table style="border:none" class="ui fixed small stackable table">
  262. <thead>
  263. <tr><th style="color: #8a8e99;font-size:12px" class="three wide center aligned">{{$.i18n.Tr "dataset.file"}}</th>
  264. <th style="color: #8a8e99;font-size:12px"class="eleven wide">{{$.i18n.Tr "dataset.download_url"}}</th>
  265. <th style="color: #8a8e99;font-size:12px" class="two wide center aligned">{{$.i18n.Tr "dataset.download_oper"}}</th>
  266. </tr></thead>
  267. <tbody>
  268. {{range $.datasetDownload}}
  269. <tr>
  270. <td class="dataset_nowrap_two_line">
  271. {{if eq .IsDelete true}}
  272. {{.DatasetName}}({{$.i18n.Tr "dataset.file_deleted"}})
  273. {{else}}
  274. <a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a>
  275. {{end}}
  276. </td>
  277. <td><div class="dataset_nowrap_two_line">{{.DatasetDownloadLink}}</div></td>
  278. <td class="center aligned"><a class="ui poping up clipboard" id="clipboard-btn-dataset" data-original="{{$.i18n.Tr "repo.copy_link"}}" data-success="{{$.i18n.Tr "repo.copy_link_success"}}" data-error="{{$.i18n.Tr "repo.copy_link_error"}}" data-content="{{$.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-text="{{.DatasetDownloadLink}}">{{$.i18n.Tr "dataset.download_copy"}}</a></td>
  279. </tr>
  280. {{end}}
  281. </tbody>
  282. </table>
  283. </div>
  284. {{end}}
  285. </div>
  286. </div>
  287. </div>
  288. </div>
  289. </div>
  290. {{end}}
  291. {{template "base/paginate" .}}
  292. </div>
  293. <!-- 确认模态框 -->
  294. <div id="deletemodel">
  295. <div class="ui basic modal">
  296. <div class="ui icon header">
  297. <i class="trash icon"></i> {{.i18n.Tr "cloudbrain.delete_task"}}
  298. </div>
  299. <div class="content">
  300. <p>{{.i18n.Tr "cloudbrain.task_delete_confirm"}}</p>
  301. </div>
  302. <div class="actions">
  303. <div class="ui red basic inverted cancel button">
  304. <i class="remove icon"></i> {{.i18n.Tr "cloudbrain.operate_cancel"}}
  305. </div>
  306. <div class="ui green basic inverted ok button">
  307. <i class="checkmark icon"></i> {{.i18n.Tr "cloudbrain.operate_confirm"}}
  308. </div>
  309. </div>
  310. </div>
  311. </div>
  312. </div>
  313. {{template "base/footer" .}}
  314. <script src="{{StaticUrlPrefix}}/js/specsuse.js?v={{MD5 AppVer}}" type="text/javascript"></script>
  315. <script>
  316. ;(function() {
  317. var SPEC = {{ .Spec }};
  318. var showPoint = false;
  319. var specStr = window.renderSpecStr(SPEC, showPoint, {
  320. gpu_memory: {{$.i18n.Tr "cloudbrain.gpu_memory"}},
  321. free: {{$.i18n.Tr "cloudbrain.free"}},
  322. point_hr: {{$.i18n.Tr "cloudbrain.point_hr"}},
  323. memory: {{$.i18n.Tr "cloudbrain.memory"}},
  324. shared_memory: {{$.i18n.Tr "cloudbrain.shared_memory"}},
  325. });
  326. $('td.ti-text-form-content.spec div').text(specStr);
  327. })();
  328. console.log("---------=-sdfsdfsd=")
  329. console.log({{.task}})
  330. </script>