Skip to content

Commit

Permalink
Add placeholder runtime/COMPATIBILITY.md (#6307)
Browse files Browse the repository at this point in the history
Summary:
This file will contain the details of the PTE-to-runtime compatibility policy.

Update the appropriate docs to point to this file. Note that even release branches should point to the `main` branch version of this file, because the latest version is always the official policy.

Pull Request resolved: #6307

Test Plan:
Checked links:
- https://docs-preview.pytorch.org/pytorch/executorch/6307/index.html
- https://docs-preview.pytorch.org/pytorch/executorch/6307/pte-file-format.html

Reviewed By: mergennachin

Differential Revision: D64501085

Pulled By: dbort

fbshipit-source-id: ac59529aa12fa76880a3531023a1a308f565ba50
  • Loading branch information
dbort authored and facebook-github-bot committed Oct 17, 2024
1 parent 2be0105 commit 6a27cd1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
16 changes: 10 additions & 6 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ Welcome to the ExecuTorch Documentation
=======================================

.. important::
This is a beta release. As of this ExecuTorch beta release, the API
will follow the `lifecycle and deprecation policy <api-life-cycle.html.html>`__
and ``.pte`` binary format will comply with the *runtime compatibility policy* (TODO: add link).
This ensures that application developers can update to the latest version of ExecuTorch
without breaking existing integration code, in accordance with these policies.
If any issues arise or compatibility breaks occur, please `report them in GitHub <https://github.com/pytorch/executorch/issues/new/choose>`__.
v0.4.0 is a beta release of ExecuTorch. As of this release, the API will
follow the `API Lifecycle and Deprecation Policy <api-life-cycle.html>`__,
and the ``.pte`` binary format will comply with the `Runtime Compatibility
Policy
<https://github.com/pytorch/executorch/tree/main/runtime/COMPATIBILITY.md>`__.
This helps ensure that application developers can update to the latest
version of ExecuTorch without breaking existing integration code, in
accordance with these policies. If any issues arise or compatibility breaks
occur, please `report them in GitHub
<https://github.com/pytorch/executorch/issues/new/choose>`__.

We welcome any feedback, suggestions, and bug reports from the community
to help us improve the technology. Please use the `PyTorch Forums
Expand Down
7 changes: 7 additions & 0 deletions docs/source/pte-file-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ Optional ─┤ ├────────────────────
└─ └───────────────────────────────────┘
```

## Compatibility

See the [Runtime Compatibility Policy](
https://github.com/pytorch/executorch/tree/main/runtime/COMPATIBILITY.md) for
details about the compatibility guarantees between the `.pte` format and the
ExecuTorch runtime.

## Headers

Program files can be recognized by the magic string at byte offset 4, beginning
Expand Down
9 changes: 9 additions & 0 deletions runtime/COMPATIBILITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Runtime Compatibility Policy

This document will describe the compatibility guarantees between the [`.pte` file
format](https://pytorch.org/executorch/stable/pte-file-format.html) and the
ExecuTorch runtime.

> [!IMPORTANT]
> The [canonical version of this document](https://github.com/pytorch/executorch/tree/main/runtime/COMPATIBILITY.md)
> is in the `main` branch of the `pytorch/executorch` GitHub repo.

0 comments on commit 6a27cd1

Please sign in to comment.