Skip to content
Draft
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/ko/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
title: (๋ฒˆ์—ญ์ค‘) Tokenizer
- local: main_classes/trainer
title: Trainer
- local: deepspeed
- local: main_classes/deepspeed
title: DeepSpeed
- local: main_classes/executorch
title: ExecuTorch
Expand Down
32 changes: 32 additions & 0 deletions docs/source/ko/main_classes/deepspeed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!--Copyright 2020 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.

โš ๏ธ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be
rendered properly in your Markdown viewer.

-->

# DeepSpeed[[deepspeed]]

Zero Redundancy Optimizer (ZeRO)๋กœ ๊ตฌ๋™๋˜๋Š” [DeepSpeed](https://github.com/deepspeedai/DeepSpeed)๋Š” ๋งค์šฐ ํฐ ๋ชจ๋ธ์„ GPU์—์„œ ํ›ˆ๋ จํ•˜๊ณ  ํ”ผํŒ…ํ•˜๊ธฐ ์œ„ํ•œ ์ตœ์ ํ™” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ž…๋‹ˆ๋‹ค. ์—ฌ๋Ÿฌ ZeRO ๋‹จ๊ณ„๋กœ ์ œ๊ณต๋˜๋ฉฐ, ๊ฐ ๋‹จ๊ณ„๋Š” ์˜ตํ‹ฐ๋งˆ์ด์ € ์ƒํƒœ, ๊ธฐ์šธ๊ธฐ, ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ๋ถ„ํ• ํ•˜๊ณ  CPU ๋˜๋Š” NVMe๋กœ์˜ ์˜คํ”„๋กœ๋”ฉ์„ ๊ฐ€๋Šฅํ•˜๊ฒŒ ํ•˜์—ฌ ์ ์ง„์ ์œผ๋กœ ๋” ๋งŽ์€ GPU ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ์ ˆ์•ฝํ•ฉ๋‹ˆ๋‹ค. DeepSpeed๋Š” [`Trainer`] ํด๋ž˜์Šค์™€ ํ†ตํ•ฉ๋˜์–ด ์žˆ์œผ๋ฉฐ ๋Œ€๋ถ€๋ถ„์˜ ์„ค์ •์ด ์ž๋™์œผ๋กœ ์ฒ˜๋ฆฌ๋ฉ๋‹ˆ๋‹ค.

๊ทธ๋Ÿฌ๋‚˜ [`Trainer`] ์—†์ด DeepSpeed๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋Š” ๊ฒฝ์šฐ, Transformers๋Š” [`HfDeepSpeedConfig`] ํด๋ž˜์Šค๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

<Tip>

[`Trainer`]์™€ ํ•จ๊ป˜ DeepSpeed ์‚ฌ์šฉ์— ๋Œ€ํ•œ ์ž์„ธํ•œ ๋‚ด์šฉ์€ [DeepSpeed](../deepspeed) ๊ฐ€์ด๋“œ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.

</Tip>

## HfDeepSpeedConfig[[transformers.integrations.HfDeepSpeedConfig]]

[[autodoc]] integrations.HfDeepSpeedConfig
- all