|
| 1 | +<!--Copyright 2020 The HuggingFace Team. All rights reserved. |
| 2 | +
|
| 3 | +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with |
| 4 | +the License. You may obtain a copy of the License at |
| 5 | +
|
| 6 | +http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | +
|
| 8 | +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on |
| 9 | +an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the |
| 10 | +specific language governing permissions and limitations under the License. |
| 11 | +
|
| 12 | +⚠️ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be |
| 13 | +rendered properly in your Markdown viewer. |
| 14 | +
|
| 15 | +--> |
| 16 | + |
| 17 | +# 최적화[[optimization]] |
| 18 | + |
| 19 | +`.optimization` 모듈은 다음을 제공합니다: |
| 20 | + |
| 21 | +- 미세 조정된 모델에 사용할 수 있는 가중치 감쇠가 적용된 옵티마이저 |
| 22 | +- `_LRSchedule`을 상속받는 스케줄 객체 형태의 여러 스케줄 |
| 23 | +- 여러 배치의 그래디언트를 누적하는 그래디언트 누적 클래스 |
| 24 | + |
| 25 | + |
| 26 | +## AdaFactor (PyTorch)[[transformers.Adafactor]] |
| 27 | + |
| 28 | +[[autodoc]] Adafactor |
| 29 | + |
| 30 | +## AdamWeightDecay (TensorFlow)[[transformers.AdamWeightDecay]] |
| 31 | + |
| 32 | +[[autodoc]] AdamWeightDecay |
| 33 | + |
| 34 | +[[autodoc]] create_optimizer |
| 35 | + |
| 36 | +## 스케줄[[schedules]] |
| 37 | + |
| 38 | +### 학습률 스케줄 (PyTorch)[[transformers.SchedulerType]] |
| 39 | + |
| 40 | +[[autodoc]] SchedulerType |
| 41 | + |
| 42 | +[[autodoc]] get_scheduler |
| 43 | + |
| 44 | +[[autodoc]] get_constant_schedule |
| 45 | + |
| 46 | +[[autodoc]] get_constant_schedule_with_warmup |
| 47 | + |
| 48 | +<img alt="" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/warmup_constant_schedule.png"/> |
| 49 | + |
| 50 | +[[autodoc]] get_cosine_schedule_with_warmup |
| 51 | + |
| 52 | +<img alt="" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/warmup_cosine_schedule.png"/> |
| 53 | + |
| 54 | +[[autodoc]] get_cosine_with_hard_restarts_schedule_with_warmup |
| 55 | + |
| 56 | +<img alt="" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/warmup_cosine_hard_restarts_schedule.png"/> |
| 57 | + |
| 58 | +[[autodoc]] get_linear_schedule_with_warmup |
| 59 | + |
| 60 | +<img alt="" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/warmup_linear_schedule.png"/> |
| 61 | + |
| 62 | +[[autodoc]] get_polynomial_decay_schedule_with_warmup |
| 63 | + |
| 64 | +[[autodoc]] get_inverse_sqrt_schedule |
| 65 | + |
| 66 | +[[autodoc]] get_wsd_schedule |
| 67 | + |
| 68 | +### 웜업 (TensorFlow)[[transformers.WarmUp]] |
| 69 | + |
| 70 | +[[autodoc]] WarmUp |
| 71 | + |
| 72 | +## 그래디언트 전략[[gradient-strategies]] |
| 73 | + |
| 74 | +### GradientAccumulator (TensorFlow)[[transformers.GradientAccumulator]] |
| 75 | + |
| 76 | +[[autodoc]] GradientAccumulator |
0 commit comments