Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌐 [i18n-KO] Translated text_generation.md to Korean #33777

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions docs/source/ko/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@
title: (λ²ˆμ—­μ€‘) Logging
- local: in_translation
title: (λ²ˆμ—­μ€‘) Models
- local: in_translation
title: (λ²ˆμ—­μ€‘) Text Generation
- local: main_classes/text_generation
title: ν…μŠ€νŠΈ 생성
- local: in_translation
title: (λ²ˆμ—­μ€‘) ONNX
- local: in_translation
Expand Down
56 changes: 56 additions & 0 deletions docs/source/ko/main_classes/text_generation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!--Copyright 2022 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.

-->

# 생성 [[generation]]

각 ν”„λ ˆμž„μ›Œν¬μ—λŠ” ν•΄λ‹Ήν•˜λŠ” `GenerationMixin` ν΄λž˜μŠ€μ—μ„œ κ΅¬ν˜„λœ ν…μŠ€νŠΈ 생성을 μœ„ν•œ generate λ©”μ„œλ“œκ°€ μžˆμŠ΅λ‹ˆλ‹€:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
각 ν”„λ ˆμž„μ›Œν¬μ—λŠ” ν•΄λ‹Ήν•˜λŠ” `GenerationMixin` ν΄λž˜μŠ€μ—μ„œ κ΅¬ν˜„λœ ν…μŠ€νŠΈ 생성을 μœ„ν•œ generate λ©”μ„œλ“œκ°€ μžˆμŠ΅λ‹ˆλ‹€:
각 ν”„λ ˆμž„μ›Œν¬μ—λŠ” ν•΄λ‹Ήν•˜λŠ” `GenerationMixin` ν΄λž˜μŠ€μ—μ„œ κ΅¬ν˜„λœ ν…μŠ€νŠΈ 생성을 μœ„ν•œ generate λ©”μ†Œλ“œκ°€ μžˆμŠ΅λ‹ˆλ‹€:

glossary에 맞게 λ°”κΏ¨μŠ΅λ‹ˆλ‹€!


- PyTorchμ—μ„œλŠ” [`~generation.GenerationMixin.generate`]κ°€ [`~generation.GenerationMixin`]에 κ΅¬ν˜„λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.
- TensorFlowμ—μ„œλŠ” [`~generation.TFGenerationMixin.generate`]κ°€ [`~generation.TFGenerationMixin`]에 κ΅¬ν˜„λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.
- Flax/JAXμ—μ„œλŠ” [`~generation.FlaxGenerationMixin.generate`]κ°€ [`~generation.FlaxGenerationMixin`]에 κ΅¬ν˜„λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.

μ‚¬μš©ν•˜λŠ” ν”„λ ˆμž„μ›Œν¬μ— 상관없이, generate λ©”μ„œλ“œλŠ” [`~generation.GenerationConfig`] 클래슀 μΈμŠ€ν„΄μŠ€λ‘œ λ§€κ°œλ³€μˆ˜ν™” ν•  수 μžˆμŠ΅λ‹ˆλ‹€. generate λ©”μ„œλ“œμ˜ λ™μž‘μ„ μ œμ–΄ν•˜λŠ” λͺ¨λ“  생성 λ§€κ°œλ³€μˆ˜ λͺ©λ‘μ„ ν™•μΈν•˜λ €λ©΄ 이 클래슀λ₯Ό μ°Έμ‘°ν•˜μ„Έμš”.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
μ‚¬μš©ν•˜λŠ” ν”„λ ˆμž„μ›Œν¬μ— 상관없이, generate λ©”μ„œλ“œλŠ” [`~generation.GenerationConfig`] 클래슀 μΈμŠ€ν„΄μŠ€λ‘œ λ§€κ°œλ³€μˆ˜ν™” ν•  수 μžˆμŠ΅λ‹ˆλ‹€. generate λ©”μ„œλ“œμ˜ λ™μž‘μ„ μ œμ–΄ν•˜λŠ” λͺ¨λ“  생성 λ§€κ°œλ³€μˆ˜ λͺ©λ‘μ„ ν™•μΈν•˜λ €λ©΄ 이 클래슀λ₯Ό μ°Έμ‘°ν•˜μ„Έμš”.
μ‚¬μš©ν•˜λŠ” ν”„λ ˆμž„μ›Œν¬μ— 상관없이, generate λ©”μ†Œλ“œλŠ” [`~generation.GenerationConfig`] 클래슀 μΈμŠ€ν„΄μŠ€λ‘œ λ§€κ°œλ³€μˆ˜ν™” ν•  수 μžˆμŠ΅λ‹ˆλ‹€. generate λ©”μ†Œλ“œμ˜ λ™μž‘μ„ μ œμ–΄ν•˜λŠ” λͺ¨λ“  생성 λ§€κ°œλ³€μˆ˜ λͺ©λ‘μ„ ν™•μΈν•˜λ €λ©΄ 이 클래슀λ₯Ό μ°Έμ‘°ν•˜μ„Έμš”.


λͺ¨λΈμ˜ 생성 섀정을 μ–΄λ–»κ²Œ ν™•μΈν•˜κ³ , 기본값이 무엇인지, λ§€κ°œλ³€μˆ˜λ₯Ό μ–΄λ–»κ²Œ μž„μ‹œλ‘œ λ³€κ²½ν•˜λŠ”μ§€, 그리고 μ‚¬μš©μž 지정 생성 섀정을 λ§Œλ“€κ³  μ €μž₯ν•˜λŠ” 방법을 배우렀면 [ν…μŠ€νŠΈ 생성 μ „λž΅ κ°€μ΄λ“œ](../generation_strategies)λ₯Ό μ°Έμ‘°ν•˜μ„Έμš”. 이 κ°€μ΄λ“œλŠ” 토큰 슀트리밍과 같은 κ΄€λ ¨ κΈ°λŠ₯을 μ‚¬μš©ν•˜λŠ” 방법도 μ„€λͺ…ν•©λ‹ˆλ‹€.

## GenerationConfig [[transformers.GenerationConfig]]

[[autodoc]] generation.GenerationConfig
- from_pretrained
- from_model_config
- save_pretrained
- update
- validate
- get_generation_mode

[[autodoc]] generation.WatermarkingConfig

## GenerationMixin [[transformers.GenerationMixin]]

[[autodoc]] generation.GenerationMixin
- generate
- compute_transition_scores

## TFGenerationMixin [[transformers.TFGenerationMixin]]

[[autodoc]] generation.TFGenerationMixin
- generate
- compute_transition_scores

## FlaxGenerationMixin [[transformers.FlaxGenerationMixin]]

[[autodoc]] generation.FlaxGenerationMixin
- generate