-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Update Chinese Translation #2871
Update Chinese Translation #2871
Conversation
@@ -0,0 +1,221 @@ | |||
# 超参数优化的对比 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refer to guidance to remove deleted files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
@@ -0,0 +1,44 @@ | |||
|
|||
# 在 Google Colab 上使用 NNI | |||
NNI 可以轻易地在 Google Colab 平台上运行。 然而,Colab 没有暴露它的公网 IP 及端口,因此默认情况下无法在 Colab 中访问 NNI 的 Web 界面。 为解决此问题,需要使用反向代理软件,例如 `ngrok` 或 `frp`。 此教程将展示如何使用 ngrok 在 Colab 上访问 NNI 的Web 界面。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NNI 可以轻易地在 Google Colab 平台上运行。
->
在 Google Colab 上可运行 NNI。
# 在 Google Colab 上使用 NNI | ||
NNI 可以轻易地在 Google Colab 平台上运行。 然而,Colab 没有暴露它的公网 IP 及端口,因此默认情况下无法在 Colab 中访问 NNI 的 Web 界面。 为解决此问题,需要使用反向代理软件,例如 `ngrok` 或 `frp`。 此教程将展示如何使用 ngrok 在 Colab 上访问 NNI 的Web 界面。 | ||
|
||
## 如何在 Google Colab 上打开 NNI 的Web 界面 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add whitespace at left side of Web
! git clone https://github.com/microsoft/nni.git nni_repo/nni # clone NNI's offical repo to get examples | ||
``` | ||
|
||
2. 在[此处](https://ngrok.com/)注册 ngrok 账号,之后使用 authtoken 来连接到账号。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
之后使用 authtoken 来连接到账号。
->
然后通过 authtoken 来连接。
! ./ngrok authtoken <your-authtoken> | ||
``` | ||
|
||
3. 在大于 1024 的端口号上启动 NNI 样例,之后在相同端口上启动 ngrok。 如果希望使用GPU,确保 config.yml 中 gpuNum >= 1 。 使用 `get_ipython()` 来启动 ngrok 。因为使用 `! ngrok http 5000 &` 会卡住。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add whitespaces around GPU
! ./ngrok authtoken <your-authtoken> | ||
``` | ||
|
||
3. 在大于 1024 的端口号上启动 NNI 样例,之后在相同端口上启动 ngrok。 如果希望使用GPU,确保 config.yml 中 gpuNum >= 1 。 使用 `get_ipython()` 来启动 ngrok 。因为使用 `! ngrok http 5000 &` 会卡住。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用 get_ipython()
来启动 ngrok 。因为使用 ! ngrok http 5000 &
会卡住。
->
因为使用 ! ngrok http 5000 &
会停止响应,要使用 get_ipython()
来启动 ngrok。
@@ -47,7 +47,8 @@ nnictl create --config examples/trials/mnist-tfv1/config.yml | |||
#### TypeScript | |||
|
|||
* 如改动了 `src/nni_manager`,在此目录下运行 `yarn watch` 可持续编译改动。 它将持续的监视并编译代码。 可能需要重启 `nnictl` 来重新加载 NNI 管理器。 | |||
* 如果改动了 `src/webui` 或 `src/nasui`,在相应目录下运行 `yarn start`。 Web 界面会在代码修改后自动刷新。 | |||
* 如改动了 `src/webui`, 运行 `yarn dev`, 该命令将同时运行一个 模拟 API 服务器和一个 webpack 开发服务器。 使用环境变量 `EXPERIMENT`(例如 `mnist-tfv1-running`)来指定要用到的模拟数据。 内置的模拟实验列在 `src/webui/mock`。 一个完整的命令的示例是 `EXPERIMENT=mnist-tfv1-running yarn dev`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge error? why there are two items for same folder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/webui and src/nasui are different directories.
@@ -47,7 +47,8 @@ nnictl create --config examples/trials/mnist-tfv1/config.yml | |||
#### TypeScript | |||
|
|||
* 如改动了 `src/nni_manager`,在此目录下运行 `yarn watch` 可持续编译改动。 它将持续的监视并编译代码。 可能需要重启 `nnictl` 来重新加载 NNI 管理器。 | |||
* 如果改动了 `src/webui` 或 `src/nasui`,在相应目录下运行 `yarn start`。 Web 界面会在代码修改后自动刷新。 | |||
* 如改动了 `src/webui`, 运行 `yarn dev`, 该命令将同时运行一个 模拟 API 服务器和一个 webpack 开发服务器。 使用环境变量 `EXPERIMENT`(例如 `mnist-tfv1-running`)来指定要用到的模拟数据。 内置的模拟实验列在 `src/webui/mock`。 一个完整的命令的示例是 `EXPERIMENT=mnist-tfv1-running yarn dev`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一个完整的命令的示例是 EXPERIMENT=mnist-tfv1-running yarn dev
。
->
完整示例: EXPERIMENT=mnist-tfv1-running yarn dev
。
docs/zh_CN/contents.rst
Outdated
@@ -16,7 +16,7 @@ Neural Network Intelligence | |||
模型压缩<model_compression> | |||
特征工程<feature_engineering> | |||
参考<reference> | |||
社区分享 <CommunitySharings/community_sharings> | |||
用例与解决方案<CommunitySharings/community_sharings> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用例 -> 示例
docs/zh_CN/nnicli_ref.md
Outdated
# create an experiment instance | ||
exp = Experiment() | ||
|
||
# start an experiment, then connect the instance to this experiment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translate it
docs/zh_CN/sdk_reference.rst
Outdated
模型压缩 <Compressor/CompressionReference> | ||
NNI Client <nnicli_ref> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translate Client
@squirrelsc @SparkSnail All comments have been resolved. |
docs/zh_CN/Tutorial/Nnictl.md
Outdated
|
||
```json | ||
[ | ||
{"parameter": {"x": 0.5, "y": 0.9, "TRIAL_BUDGET": 27}, "value": 0.03} | ||
] | ||
``` | ||
|
||
* 示例 | ||
* 样例 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
样例 -> 示例
No description provided.