[Docs] Add language identifiers to fenced code blocks (#28955)

Add language identifiers to code blocks
This commit is contained in:
Klaus Hipp
2024-02-12 19:48:31 +01:00
committed by GitHub
parent c617f988f8
commit fe3df9d5b3
66 changed files with 137 additions and 137 deletions

View File

@@ -72,7 +72,7 @@ pip install 'transformers[tf-cpu]'
M1 / ARM用户
在安装 TensorFlow 2.0 前,你需要安装以下库:
```
```bash
brew install cmake
brew install pkg-config
```

View File

@@ -2048,7 +2048,7 @@ print(f"rank{rank}:\n in={text_in}\n out={text_out}")
```
让我们保存它为 `t0.py`并运行:
```
```bash
$ deepspeed --num_gpus 2 t0.py
rank0:
in=Is this review positive or negative? Review: this is the best cast iron skillet you will ever buy
@@ -2074,13 +2074,13 @@ rank1:
要运行DeepSpeed测试请至少运行以下命令
```
```bash
RUN_SLOW=1 pytest tests/deepspeed/test_deepspeed.py
```
如果你更改了任何模型或PyTorch示例代码请同时运行多模型测试。以下将运行所有DeepSpeed测试
```
```bash
RUN_SLOW=1 pytest tests/deepspeed
```

View File

@@ -64,7 +64,7 @@ rendered properly in your Markdown viewer.
如果您使用多个GPU则卡之间的互连方式可能会对总训练时间产生巨大影响。如果GPU位于同一物理节点上您可以运行以下代码
```
```bash
nvidia-smi topo -m
```