Skip to content

Commit

Permalink
PyTorch v1.12 반영, pytorch/tutorials@0918023 (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
9bow committed Jul 10, 2022
1 parent 74e6d6c commit 9c9364e
Show file tree
Hide file tree
Showing 72 changed files with 2,923 additions and 1,713 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/1_TRANSLATE_REQUEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ _(λ°˜λ“œμ‹œ 지킀셔야 ν•˜λŠ” 일정이 μ•„λ‹™λ‹ˆλ‹€ - 일정이 λ„ˆλ¬΄ λŠ¦μ–΄
## κ΄€λ ¨ 이슈
_ν˜„μž¬ λ²ˆμ—­ μš”μ²­ / 진행 내역을 보기 μœ„ν•΄ 각 λ²„μ „μ˜ 메인 이슈λ₯Ό μ°Έμ‘°ν•©λ‹ˆλ‹€._ <br />
_(νŠΉλ³„ν•œ 일이 μ—†λ‹€λ©΄ λ³€κ²½ν•˜μ§€ μ•ŠμœΌμ…”λ„ λ©λ‹ˆλ‹€.)_
* κ΄€λ ¨ 이슈: #445 (v1.11)
* κ΄€λ ¨ 이슈: #483 (v1.12)
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

PyTorchμ—μ„œ μ œκ³΅ν•˜λŠ” νŠœν† λ¦¬μ–Όμ˜ ν•œκ΅­μ–΄ λ²ˆμ—­μ„ μœ„ν•œ μ €μž₯μ†Œμž…λ‹ˆλ‹€.\
λ²ˆμ—­μ˜ 결과물은 [https://tutorials.pytorch.kr](https://tutorials.pytorch.kr)μ—μ„œ ν™•μΈν•˜μ‹€ 수 μžˆμŠ΅λ‹ˆλ‹€. (λ²ˆμ—­μ„ μ§„ν–‰ν•˜λ©° **λΆˆκ·œμΉ™μ μœΌλ‘œ** μ—…λ°μ΄νŠΈν•©λ‹ˆλ‹€.)\
ν˜„μž¬ λ²„μ „μ˜ λ²ˆμ—­ / λ³€κ²½ κ΄€λ ¨ μ΄μŠˆλŠ” [#445 이슈](https://github.com/PyTorchKorea/tutorials-kr/issues/445)λ₯Ό μ°Έκ³ ν•΄μ£Όμ„Έμš”.
ν˜„μž¬ λ²„μ „μ˜ λ²ˆμ—­ / λ³€κ²½ κ΄€λ ¨ μ΄μŠˆλŠ” [#483 이슈](https://github.com/PyTorchKorea/tutorials-kr/issues/483)λ₯Ό μ°Έκ³ ν•΄μ£Όμ„Έμš”.

## κΈ°μ—¬ν•˜κΈ°

Expand All @@ -22,7 +22,7 @@ PyTorchμ—μ„œ μ œκ³΅ν•˜λŠ” νŠœν† λ¦¬μ–Όμ˜ ν•œκ΅­μ–΄ λ²ˆμ—­μ„ μœ„ν•œ μ €μž₯μ†Œ

## 원문

ν˜„μž¬ PyTorch v1.11 νŠœν† λ¦¬μ–Ό([pytorch/tutorials@6e21cf2](https://github.com/pytorch/tutorials/commit/6e21cf2e81beb8b4dddc9713be0c8746087fd59e) κΈ°μ€€) λ²ˆμ—­μ΄ 진행 μ€‘μž…λ‹ˆλ‹€.
ν˜„μž¬ PyTorch v1.12 νŠœν† λ¦¬μ–Ό([pytorch/tutorials@0918023](https://github.com/pytorch/tutorials/commit/091802395ed6cc5563643b6b6ef54ba99d412e66) κΈ°μ€€) λ²ˆμ—­μ΄ 진행 μ€‘μž…λ‹ˆλ‹€.

μ΅œμ‹  λ²„μ „μ˜ νŠœν† λ¦¬μ–Ό(곡식, μ˜μ–΄)은 [PyTorch tutorials μ‚¬μ΄νŠΈ](https://pytorch.org/tutorials) 및 [PyTorch tutorials μ €μž₯μ†Œ](https://github.com/pytorch/tutorials)λ₯Ό μ°Έκ³ ν•΄μ£Όμ„Έμš”.

Expand All @@ -46,5 +46,5 @@ v1.0 이후 λ²ˆμ—­μ€ 별도 μ €μž₯μ†Œλ‘œ κ΄€λ¦¬ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. [이 μ €μž₯
λΉŒλ“œ 방법은 [κΈ°μ—¬ν•˜κΈ° λ¬Έμ„œμ˜ `2-5. (λ‚΄ μ»΄ν“¨ν„°μ—μ„œ) κ²°κ³Ό ν™•μΈν•˜κΈ°`](https://github.com/PyTorchKorea/tutorials-kr/blob/master/CONTRIBUTING.md#2-5-λ‚΄-μ»΄ν“¨ν„°μ—μ„œ-κ²°κ³Ό-ν™•μΈν•˜κΈ°) 뢀뢄을 μ°Έκ³ ν•΄μ£Όμ„Έμš”.

---
This is a project to translate [pytorch/tutorials@6e21cf2](https://github.com/pytorch/tutorials/commit/6e21cf2e81beb8b4dddc9713be0c8746087fd59e) into Korean.
This is a project to translate [pytorch/tutorials@0918023](https://github.com/pytorch/tutorials/commit/091802395ed6cc5563643b6b6ef54ba99d412e66) into Korean.
For the latest version, please visit to the [official PyTorch tutorials repo](https://github.com/pytorch/tutorials).
Binary file added _static/img/torchserve-ipex-images/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/11.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/1_.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/20.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/26.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/27.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/28.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/30.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/torchserve-ipex-images/31.png
Binary file added _static/img/torchserve-ipex-images/4.png
Binary file added _static/img/torchserve-ipex-images/5.png
Binary file added _static/img/torchserve-ipex-images/6.png
Binary file added _static/img/torchserve-ipex-images/7.png
Binary file added _static/img/torchserve-ipex-images/8.png
Binary file added _static/img/torchserve-ipex-images/9.gif
14 changes: 12 additions & 2 deletions _templates/layout.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
{% extends "!layout.html" %}

{% block footer %}
{%- block content %}
{{ super() }}
<script>
if((window.location.href.indexOf("/prototype/")!= -1) && (window.location.href.indexOf("/prototype/prototype_index")< 1))
{
var div = '<div class="admonition note"><p class="admonition-title">Note</p><p><i class="fa fa-flask" aria-hidden="true">&nbsp</i> 이 νŠœν† λ¦¬μ–Όμ€ ν”„λ‘œν† νƒ€μž…(prototype) κΈ°λŠ₯듀에 λŒ€ν•΄μ„œ μ„€λͺ…ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. ν”„λ‘œν† νƒ€μž… κΈ°λŠ₯은 일반적으둜 ν”Όλ“œλ°± 및 ν…ŒμŠ€νŠΈμš©μœΌλ‘œ, λŸ°νƒ€μž„ ν”Œλž˜κ·Έ μ—†μ΄λŠ” PyPIλ‚˜ Conda둜 λ°°ν¬λ˜λŠ” λ°”μ΄λ„ˆλ¦¬μ—μ„œλŠ” μ‚¬μš©ν•  수 μ—†μŠ΅λ‹ˆλ‹€.</p></div>'
document.getElementById("pytorch-article").insertAdjacentHTML('afterBegin', div)
}
</script>
{%- endblock %}

{% block footer %}
{{ super() }}
<script>
//add microsoft link

Expand Down Expand Up @@ -81,7 +91,7 @@
</script>

<script type="text/javascript">
var collapsedSections = ['νŒŒμ΄ν† μΉ˜(PyTorch) λ ˆμ‹œν”Ό', 'νŒŒμ΄ν† μΉ˜(PyTorch) 배우기', '이미지/λΉ„λ””μ˜€', 'μ˜€λ””μ˜€', 'ν…μŠ€νŠΈ', 'κ°•ν™”ν•™μŠ΅', 'PyTorch λͺ¨λΈμ„ ν”„λ‘œλ•μ…˜ ν™˜κ²½μ— λ°°ν¬ν•˜κΈ°', 'Code Transforms with FX', 'ν”„λ‘ νŠΈμ—”λ“œ API', 'PyTorch ν™•μž₯ν•˜κΈ°', 'λͺ¨λΈ μ΅œμ ν™”', '병렬 및 λΆ„μ‚° ν•™μŠ΅', 'Mobile'];
var collapsedSections = ['νŒŒμ΄ν† μΉ˜(PyTorch) λ ˆμ‹œν”Ό', 'νŒŒμ΄ν† μΉ˜(PyTorch) 배우기', '이미지/λΉ„λ””μ˜€', 'μ˜€λ””μ˜€', 'ν…μŠ€νŠΈ', 'κ°•ν™”ν•™μŠ΅', 'PyTorch λͺ¨λΈμ„ ν”„λ‘œλ•μ…˜ ν™˜κ²½μ— λ°°ν¬ν•˜κΈ°', 'Code Transforms with FX', 'ν”„λ‘ νŠΈμ—”λ“œ API', 'PyTorch ν™•μž₯ν•˜κΈ°', 'λͺ¨λΈ μ΅œμ ν™”', '병렬 및 λΆ„μ‚° ν•™μŠ΅', 'Mobile', 'Introduction to PyTorch on YouTube', 'Recommendation Systems'];
</script>

{% endblock %}
13 changes: 8 additions & 5 deletions advanced_source/generic_join.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Distributed Training with Uneven Inputs Using the Join Context Manager

**Author**\ : `Andrew Gu <https://github.com/andwgu>`_

.. note::
View the source code for this tutorial in `github <https://github.com/pytorch/tutorials/blob/master/advanced_source/generic_join.rst>`__.

.. note:: ``Join`` is introduced in PyTorch 1.10 as a prototype feature. This
API is subject to change.

Expand Down Expand Up @@ -366,7 +369,7 @@ of inputs across all ranks.
def join_hook(self, **kwargs) -> JoinHook:
r"""
Return a join hook that shadows the all-reduce in :meth:`__call__`.

This join hook supports the following keyword arguments:
sync_max_count (bool, optional): whether to synchronize the maximum
count across all ranks once all ranks join; default is ``False``.
Expand Down Expand Up @@ -439,9 +442,9 @@ Some key points to highlight:


.. _Join: https://pytorch.org/docs/master/distributed.algorithms.join.html
.. _Getting Started with Distributed Data Parallel: https://tutorials.pytorch.kr/intermediate/ddp_tutorial.html
.. _Getting Started with Distributed Data Parallel - Basic Use Case: https://tutorials.pytorch.kr/intermediate/ddp_tutorial.html#basic-use-case
.. _Shard Optimizer States with ZeroRedundancyOptimizer: https://tutorials.pytorch.kr/recipes/zero_redundancy_optimizer.html
.. _Getting Started with Distributed Data Parallel: https://pytorch.org/tutorials/intermediate/ddp_tutorial.html
.. _Getting Started with Distributed Data Parallel - Basic Use Case: https://pytorch.org/tutorials/intermediate/ddp_tutorial.html#basic-use-case
.. _Shard Optimizer States with ZeroRedundancyOptimizer: https://pytorch.org/tutorials/recipes/zero_redundancy_optimizer.html
.. _DistributedDataParallel: https://pytorch.org/docs/stable/generated/torch.nn.parallel.DistributedDataParallel.html
.. _join(): https://pytorch.org/docs/stable/_modules/torch/nn/parallel/distributed.html#DistributedDataParallel.join
.. _ZeroRedundancyOptimizer: https://pytorch.org/docs/stable/distributed.optim.html
.. _ZeroRedundancyOptimizer: https://pytorch.org/docs/stable/distributed.optim.html
2 changes: 2 additions & 0 deletions advanced_source/rpc_ddp_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

**λ²ˆμ—­**: `λ°•λ‹€μ • <https://github.com/dajeongPark-dev>`_

.. note::
이 νŠœν† λ¦¬μ–Όμ˜ μ†ŒμŠ€ μ½”λ“œλŠ” `GitHub <https://github.com/PyTorchKorea/tutorials-kr/blob/master/advanced_source/rpc_ddp_tutorial.rst>`__ μ—μ„œ 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.

이 νŠœν† λ¦¬μ–Όμ€ κ°„λ‹¨ν•œ 예제λ₯Ό μ‚¬μš©ν•˜μ—¬ λΆ„μ‚° 데이터 병렬 처리(distributed data parallelism)와
λΆ„μ‚° λͺ¨λΈ 병렬 처리(distributed model parallelism)λ₯Ό κ²°ν•©ν•˜μ—¬ κ°„λ‹¨ν•œ λͺ¨λΈ ν•™μŠ΅μ‹œν‚¬ λ•Œ
Expand Down
Loading

0 comments on commit 9c9364e

Please sign in to comment.