Skip to content

compiled_autograd_tutorial.rst 번역 - #1056

Open
joonda wants to merge 2 commits into
PyTorchKR:masterfrom
joonda:compiled_autograd_tutorial.rst
Open

joonda wants to merge 2 commits into
PyTorchKR:masterfrom
joonda:compiled_autograd_tutorial.rst

Conversation

@joonda

@joonda joonda commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

라이선스 동의

변경해주시는 내용에 BSD 3항 라이선스가 적용됨을 동의해주셔야 합니다.

더 자세한 내용은 기여하기 문서를 참고해주세요.

동의하시면 아래 [ ]를 [x]로 만들어주세요.

  • 기여하기 문서를 확인하였으며, 본 PR 내용에 BSD 3항 라이선스가 적용됨에 동의합니다.

관련 이슈 번호

이 Pull Request와 관련있는 이슈 번호를 적어주세요.

이슈 또는 PR 번호 앞에 #을 붙이시면 제목을 바로 확인하실 수 있습니다. (예. #999 )

PR 종류

이 PR에 해당되는 종류 앞의 [ ]을 [x]로 변경해주세요.

  • 오탈자를 수정하거나 번역을 개선하는 기여
  • 번역되지 않은 튜토리얼을 번역하는 기여
  • 공식 튜토리얼 내용을 반영하는 기여
  • 위 종류에 포함되지 않는 기여

PR 설명

compiled_autograd_tutorial.rst 파일 번역

@jih0-kim jih0-kim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

수정 사항 제안드립니다. 확인 부탁드립니다.

torch.compile(lambda: loss.backward(), backend="eager")()

In the example above, ``x`` changes shapes, and compiled autograd will mark ``x`` as a dynamic shape tensor after the first change. You should see recompiles messages: **Cache miss due to changed shapes**.
위의 예제에서, ``x`` 의 형태가 변경되면, compiled autograd는 첫 번째 변경 이후 ``x`` 를 동적 형태 텐서로 표시합니다. 이로 인해 재컴파일 메시지가 (**Cache miss due to changed shapes**) 나타나는 것을 확인할 수 있습니다.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

용어집에서는 tensor를 별도 번역 없이 tensor로 표기하고 있습니다. 문서 내 전반적으로 확인 후 수정 부탁드립니다.

기본 사용
------------
Before calling the ``torch.compile`` API, make sure to set ``torch._dynamo.config.compiled_autograd`` to ``True``:
``torch.compile`` API를 호출 하기 전에, ``torch._dynamo.config.compiled_autograd`` 을 ``True`` 로 설정해주세요

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

문장 마침표 누락되었습니다.

* 더 큰 캡쳐를 때문에 dynamo 에서 재컴파일과 그래프 끊김이 발생하기 쉽습니다.

.. note:: Compiled Autograd is under active development and is not yet compatible with all existing PyTorch features. For the latest status on a particular feature, refer to `Compiled Autograd Landing Page <https://docs.google.com/document/d/11VucFBEewzqgkABIjebZIzMvrXr3BtcY1aGKpX61pJY>`_.
.. note:: Compiled Autograd는 현재 활발히 개발 중이며, 아직 기존 PyTorch 기능과 완전히 호환되지 않습니다. 특정 기능의 최신 상태는 `Compiled Autograd Landing Page <https://docs.google.com/document/d/11VucFBEewzqgkABIjebZIzMvrXr3BtcY1aGKpX61pJY>`_ 를 참고하세요

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

문장 마침표 누락되었습니다.

* Graph breaks in the forward lead to graph breaks in the backward
* `Backward hooks <https://pytorch.org/docs/stable/notes/autograd.html#backward-hooks-execution>`_ are not captured
* forward 연산에서 그래프 분절이 일어나면, backward 연산에서도 그래프가 분절됩니다.
* `Backward hooks <https://pytorch.org/docs/stable/notes/autograd.html#backward-hooks-execution>`_ 이 캡쳐되지 않습니다

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

문장 마침표 누락되었습니다.

.. grid:: 2

.. grid-item-card:: :octicon:`mortar-board;1em;` What you will learn
.. grid-item-card:: :octicon:`mortar-board;1em;` 무엇을 배울 수 있나요?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

배울 수 있는 내용 or 배우게 될 것들 등 조금 더 자연스러운 표현으로 작성되면 좋을 것 같습니다.

Compiled Autograd는 PyTorch 2.4 에서 소개된 ``torch.compile`` 확장 기능으로, 더 큰 backward 그래프를 캡쳐할 수 있게 해줍니다.

While ``torch.compile`` does capture the backward graph, it does so **partially**. The AOTAutograd component captures the backward graph ahead-of-time, with certain limitations:
``torch.compile`` 이 backward 그래프를 포작하긴 하지만, 그것은 **부분적으로만** 이루어집니다. AOTAutograd 컴포넌트는 backward 그래프를 사전에 캡쳐하지만, 몇 가지 제한사항이 존재합니다.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

포작하긴 -> 포착하긴 오타 수정 부탁드립니다.

@joonda

joonda commented Feb 19, 2026 •

Copy link
Copy Markdown
Contributor Author

@jih0-kim 안녕하세요! 설 연휴는 잘 보내셨을까요 ?
정성스럽게 남겨주신 리뷰 너무 감사합니다 :)
말씀해주신 부분 반영하여 수정했습니다!
추가적으로 문장이 어색하거나, 미처 확인하지 못했던 오타 등을 추가적으로 수정했습니다.
확인 부탁드립니다, 감사합니다 !! 😊

.. grid:: 2

.. grid-item-card:: :octicon:`mortar-board;1em;` 무엇을 배울 수 있나요?
.. grid-item-card:: :octicon:`mortar-board;1em;` 배울수 있는 내용

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"배울수" -> "배울 수" 로 수정 요청드립니다.

@jih0-kim jih0-kim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@joonda 네, 저는 설 연휴 잘 보냈습니다. 😺
행복한 연휴 보내셨을까요?
수정 요청드린 부분 + 그 외 어색한 부분 모두 개선해주셔서 감사드립니다.
리뷰가 조금 늦어졌네요. 마지막으로 한 가지만 더 수정 요청드려요~!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants