Skip to content

Commit bd2e4bb

Browse files
committed
docs: hygon notes
1 parent 835633d commit bd2e4bb

File tree

5 files changed

+26
-14
lines changed

5 files changed

+26
-14
lines changed

src/assets/styles/common.less

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,3 +344,16 @@ textarea:hover {
344344
.text-success {
345345
color: var(--ant-color-success);
346346
}
347+
348+
.desc-fill {
349+
font-weight: 600;
350+
color: var(--ant-color-text);
351+
background-color: var(--ant-color-fill-content);
352+
line-height: 1.5;
353+
padding: 2px 6px;
354+
border-radius: 4px;
355+
}
356+
357+
.line-6 {
358+
line-height: 24px;
359+
}

src/locales/en-US/clusters.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ export default {
5151
'If multiple outbound IPs exist, specify the one you want the worker to use. Please double-check with <span class="bold-text">hostname -I | xargs -n1</span>.',
5252
'clusters.addworker.nvidiaNotes-02':
5353
'If a model directory already exists on the worker, you can specify the path to mount it.',
54-
'clusters.addworker.hygonNotes': `If the <span class="bold-text">/opt/hyhal</span> directory does not exist, create a symbolic link to the Hygon installation path.
55-
Same applies to the <span class="bold-text">/opt/dtk</span> directory.`,
54+
'clusters.addworker.hygonNotes': `If <span class="bold-text">/opt/hyhal</span> or <span class="bold-text">/opt/dtk</span> does not exist, create symbolic links pointing to the corresponding Hygon installation paths, for example: <span class="desc-fill">ln -s /path/to/hyhal /opt/hyhal</span> <span class="desc-fill">ln -s /path/to/dtk /opt/dtk</span>.`,
5655
'clusters.addworker.corexNotes': `If the <span class="bold-text">/lib/modules</span> directory does not exist, create a symbolic link to the Iluvatar installation path:
5756
<span class="bold-text">ln -s /path/to/corex /lib/modules</span>. Same applies to the <span class="bold-text">/usr/local/corex</span> directory.`,
5857
'clusters.addworker.metaxNotes': `If the <span class="bold-text">/opt/mxdriver</span> directory does not exist, create a symbolic link to the MetaX installation path:

src/locales/ja-JP/clusters.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ export default {
5151
'If multiple outbound IPs exist, specify the one you want the worker to use. Please double-check with <span class="bold-text">hostname -I | xargs -n1</span>.',
5252
'clusters.addworker.nvidiaNotes-02':
5353
'If a model directory already exists on the worker, you can specify the path to mount it.',
54-
'clusters.addworker.hygonNotes': `If the <span class="bold-text">/opt/hyhal</span> directory does not exist, create a symbolic link to the Hygon installation path.
55-
Same applies to the <span class="bold-text">/opt/dtk</span> directory.`,
54+
'clusters.addworker.hygonNotes': `If <span class="bold-text">/opt/hyhal</span> or <span class="bold-text">/opt/dtk</span> does not exist, create symbolic links pointing to the corresponding Hygon installation paths, for example: <span class="desc-fill">ln -s /path/to/hyhal /opt/hyhal</span> <span class="desc-fill">ln -s /path/to/dtk /opt/dtk</span>.`,
5655
'clusters.addworker.corexNotes': `If the <span class="bold-text">/lib/modules</span> directory does not exist, create a symbolic link to the Iluvatar installation path:
5756
<span class="bold-text">ln -s /path/to/corex /lib/modules</span>. Same applies to the <span class="bold-text">/usr/local/corex</span> directory.`,
5857
'clusters.addworker.metaxNotes': `If the <span class="bold-text">/opt/mxdriver</span> directory does not exist, create a symbolic link to the MetaX installation path:
@@ -165,7 +164,7 @@ Same applies to the <span class="bold-text">/opt/dtk</span> directory.`,
165164
// 43. 'cluster.provider.comingsoon': 'Coming soon',
166165
// 44. 'clusters.addworker.nvidiaNotes-01': 'If multiple outbound IPs exist, specify the one you want the worker to use. Please double-check with <span class="bold-text">hostname -I | xargs -n1</span>.',
167166
// 45. 'clusters.addworker.nvidiaNotes-02': 'If a model directory already exists on the worker, you can specify the path to mount it.',
168-
// 46. 'clusters.addworker.hygonNotes': 'If the <span class="bold-text">/opt/hyhal</span> directory does not exist, create a symbolic link to the Hygon installation path. Same applies to the <span class="bold-text">/opt/dtk</span> directory.',
167+
// 46. 'clusters.addworker.hygonNotes': `If <span class="bold-text">/opt/hyhal</span> or <span class="bold-text">/opt/dtk</span> does not exist, create symbolic links pointing to the corresponding Hygon installation paths, for example: <span class="desc-fill">ln -s /path/to/hyhal /opt/hyhal</span> <span class="desc-fill">ln -s /path/to/dtk /opt/dtk</span>.`,
169168
// 47. 'clusters.addworker.corexNotes': 'If the <span class="bold-text">/lib/modules</span> directory does not exist, create a symbolic link to the Iluvatar installation path: <span class="bold-text">ln -s /path/to/corex /lib/modules</span>. Same applies to the <span class="bold-text">/usr/local/corex</span> directory.',
170169
// 48. 'clusters.addworker.metaxNotes': 'If the <span class="bold-text">/opt/mxdriver</span> directory does not exist, create a symbolic link to the MetaX installation path: <span class="bold-text">ln -s /path/to/metax /opt/mxdriver</span>. Same applies to the <span class="bold-text">/opt/maca</span> directory.',
171170
// 49. 'clusters.addworker.cambriconNotes': 'If the <span class="bold-text">/usr/local/neuware</span> directory does not exist, create a symbolic link to the Cambricon installation path: <span class="bold-text">ln -s /path/to/neuware /usr/local/neuware</span>.'

src/locales/ru-RU/clusters.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ export default {
5151
'Если существует несколько исходящих IP-адресов, укажите тот, который должен использовать воркер. Пожалуйста, перепроверьте с помощью <span class="bold-text">hostname -I | xargs -n1</span>.',
5252
'clusters.addworker.nvidiaNotes-02':
5353
'Если директория с моделями уже существует на воркере, вы можете указать путь для её монтирования.',
54-
'clusters.addworker.hygonNotes':
55-
'Если директория <span class="bold-text">/opt/hyhal</span> не существует, создайте символическую ссылку на путь установки Hygon: <span class="bold-text">/opt/hyhal</span>. Аналогично для директории <span class="bold-text">/opt/dtk</span>.',
54+
'clusters.addworker.hygonNotes': `If <span class="bold-text">/opt/hyhal</span> or <span class="bold-text">/opt/dtk</span> does not exist, create symbolic links pointing to the corresponding Hygon installation paths, for example: <span class="desc-fill">ln -s /path/to/hyhal /opt/hyhal</span> <span class="desc-fill">ln -s /path/to/dtk /opt/dtk</span>.`,
5655
'clusters.addworker.corexNotes':
5756
'Если директория <span class="bold-text">/lib/modules</span> не существует, создайте символическую ссылку на путь установки Iluvatar: <span class="bold-text">ln -s /path/to/corex /lib/modules</span>. Аналогично для директории <span class="bold-text">/usr/local/corex</span>.',
5857
'clusters.addworker.metaxNotes':
@@ -100,9 +99,9 @@ export default {
10099
'Нужен новый токен? Нажмите <a href="{link}" target="_blank">здесь</a>.',
101100
'clusters.addworker.amdNotes-01': `Если директория <span class="bold-text">/opt/rocm</span> не существует, создайте символическую ссылку на путь установки ROCm: <span class="bold-text">ln -s /путь/к/rocm /opt/rocm</span>.`,
102101
'clusters.addworker.message.success_single':
103-
'{count} новый воркер был добавлен в кластер.',
102+
'{count} новый воркер был добавлен в кластер.',
104103
'clusters.addworker.message.success_multiple':
105-
'{count} новых воркеров были добавлены в кластер.',
104+
'{count} новых воркеров были добавлены в кластер.',
106105
'clusters.create.serverUrl': 'URL сервера',
107106
'clusters.create.workerConfig': 'Конфигурация воркера',
108107
'clusters.addworker.containerName': 'Имя контейнера воркера',
@@ -114,11 +113,12 @@ export default {
114113
'clusters.table.ip.internal': 'Внутренний',
115114
'clusters.table.ip.external': 'Внешний',
116115
'clusters.form.serverUrl.tips':
117-
'Укажите URL сервера, доступный из вашего облачного провайдера.',
116+
'Укажите URL сервера, доступный из вашего облачного провайдера.',
118117
'clusters.form.setDefault': 'Установить по умолчанию',
119-
'clusters.form.setDefault.tips': 'Использовать по умолчанию для развертывания.',
118+
'clusters.form.setDefault.tips':
119+
'Использовать по умолчанию для развертывания.'
120120
};
121121

122122
// ========== To-Do: Translate Keys (Remove After Translation) ==========
123-
123+
// 1. 'clusters.addworker.hygonNotes': `If <span class="bold-text">/opt/hyhal</span> or <span class="bold-text">/opt/dtk</span> does not exist, create symbolic links pointing to the corresponding Hygon installation paths, for example: <span class="desc-fill">ln -s /path/to/hyhal /opt/hyhal</span> <span class="desc-fill">ln -s /path/to/dtk /opt/dtk</span>.`,
124124
// ================================================================

src/locales/zh-CN/clusters.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ export default {
4949
'如果节点有多个出站 IP 地址,请填写 <span class="bold-text">WORKER_IP</span>,以确保使用指定的 IP。可通过命令 <span class="bold-text">hostname -I | xargs -n1</span> 进行确认。',
5050
'clusters.addworker.nvidiaNotes-02':
5151
'如果节点上已经存在模型目录,你可以指定该路径进行挂载。',
52-
'clusters.addworker.hygonNotes':
53-
'如果 <span class="bold-text">/opt/hyhal</span> 目录不存在,请创建指向海光安装路径的符号链接:<span class="bold-text">/opt/hyhal</span>。与 <span class="bold-text">/opt/dtk</span> 目录相同。',
52+
'clusters.addworker.hygonNotes': `如果 <span class="bold-text">/opt/hyhal</span> 或 <span class="bold-text">/opt/dtk</span> 不存在,请创建指向对应海光安装路径的符号链接,例如:
53+
<span class="desc-fill line-6">ln -s /path/to/hyhal /opt/hyhal</span>
54+
<span class="desc-fill line-6">ln -s /path/to/dtk /opt/dtk</span>`,
5455
'clusters.addworker.corexNotes':
5556
'如果 <span class="bold-text">/lib/modules</span> 目录不存在,请创建指向天数智芯安装路径的符号链接:<span class="bold-text">ln -s /path/to/corex /lib/modules</span>。与 <span class="bold-text">/usr/local/corex</span> 目录相同。',
5657
'clusters.addworker.metaxNotes':

0 commit comments

Comments
 (0)