Skip to content

Commit 8ad61b1

Browse files
committed
Deploying to gh-pages from @ 922d6c0 🚀
1 parent ac35134 commit 8ad61b1

1,237 files changed

Lines changed: 1986 additions & 1986 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<link rel="search" type="application/opensearchdescription+xml" title="React Native ExecuTorch" href="/react-native-executorch/opensearch.xml"><link rel="stylesheet" href="/react-native-executorch/assets/css/styles.60245c1f.css">
1313
<script src="/react-native-executorch/assets/js/runtime~main.220a41d9.js" defer="defer"></script>
14-
<script src="/react-native-executorch/assets/js/main.24f92d4a.js" defer="defer"></script>
14+
<script src="/react-native-executorch/assets/js/main.13cd4db1.js" defer="defer"></script>
1515
</head>
1616
<body class="navigation-with-keyboard">
1717
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WNBF6SVN" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

assets/js/main.13cd4db1.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/main.24f92d4a.js

Lines changed: 0 additions & 2 deletions
This file was deleted.
File renamed without changes.

docs/0.1.x.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<link rel="search" type="application/opensearchdescription+xml" title="React Native ExecuTorch" href="/react-native-executorch/opensearch.xml"><link rel="stylesheet" href="/react-native-executorch/assets/css/styles.60245c1f.css">
1313
<script src="/react-native-executorch/assets/js/runtime~main.220a41d9.js" defer="defer"></script>
14-
<script src="/react-native-executorch/assets/js/main.24f92d4a.js" defer="defer"></script>
14+
<script src="/react-native-executorch/assets/js/main.13cd4db1.js" defer="defer"></script>
1515
</head>
1616
<body class="navigation-with-keyboard">
1717
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WNBF6SVN" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
@@ -28,12 +28,12 @@ <h2 class="anchor anchorTargetHideOnScrollNavbar_vjPI" id="installation">Install
2828
<p>Installation is pretty straightforward, just use your favorite package manager.</p>
2929
<div class="theme-tabs-container tabs-container tabList__CuJ"><ul role="tablist" aria-orientation="horizontal" class="tabs"><li role="tab" tabindex="0" aria-selected="true" class="tabs__item tabItem_LNqP tabs__item--active">NPM</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">PNPM</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">YARN</li></ul><div class="margin-top--md"><div role="tabpanel" class="tabItem_Ymn6"><p>npm install react-native-executorch</p></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><p>pnpm install react-native-executorch</p></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><p>yarn add react-native-executorch</p></div></div></div>
3030
<p>If you plan on adding your models to the assets instead of fetching them from a url, you also need to add following lines to your <code>metro.config.js</code>:</p>
31-
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:var(--swm-navy-light-40)"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:var(--swm-navy-light-40)"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:var(--swm-navy-light-40)"><span class="token comment" style="color:var(--swm-navy-light-60);font-style:italic">// metro.config.js</span><span class="token plain"></span><br></span><span class="token-line" style="color:var(--swm-navy-light-40)"><span class="token plain">...</span><br></span><span class="token-line" style="color:var(--swm-navy-light-40)"><span class="token plain"> defaultConfig.resolver.assetExts.push(&#x27;pte&#x27;)</span><br></span><span class="token-line" style="color:var(--swm-navy-light-40)"><span class="token plain"> defaultConfig.resolver.assetExts.push(&#x27;bin&#x27;)</span><br></span><span class="token-line" style="color:var(--swm-navy-light-40)"><span class="token plain">...</span><br></span></code></pre></div></div>
31+
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:var(--swm-navy-light-10)"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:var(--swm-navy-light-10)"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:var(--swm-navy-light-10)"><span class="token comment" style="color:var(--swm-navy-light-40);font-style:italic">// metro.config.js</span><span class="token plain"></span><br></span><span class="token-line" style="color:var(--swm-navy-light-10)"><span class="token plain">...</span><br></span><span class="token-line" style="color:var(--swm-navy-light-10)"><span class="token plain"> defaultConfig.resolver.assetExts.push(&#x27;pte&#x27;)</span><br></span><span class="token-line" style="color:var(--swm-navy-light-10)"><span class="token plain"> defaultConfig.resolver.assetExts.push(&#x27;bin&#x27;)</span><br></span><span class="token-line" style="color:var(--swm-navy-light-10)"><span class="token plain">...</span><br></span></code></pre></div></div>
3232
<p>This allows us to use binaries, such as exported models or tokenizers for LLMs.</p>
3333
<div class="theme-admonition theme-admonition-caution _admonition_pwd5f_1 alert alert--warning"><div class="_admonitionHeading_pwd5f_10"><span class="_admonitionIcon_pwd5f_23"><img src="data:image/svg+xml,%3csvg%20width=&#x27;21&#x27;%20height=&#x27;20&#x27;%20viewBox=&#x27;0%200%2021%2020&#x27;%20fill=&#x27;none&#x27;%20xmlns=&#x27;http://www.w3.org/2000/svg&#x27;%3e%3cpath%20d=&#x27;M10.5%2014.99V15&#x27;%20stroke=&#x27;%23001A72&#x27;%20stroke-width=&#x27;1.5&#x27;%20stroke-linecap=&#x27;round&#x27;%20stroke-linejoin=&#x27;round&#x27;/%3e%3cpath%20d=&#x27;M10.5%205V12&#x27;%20stroke=&#x27;%23001A72&#x27;%20stroke-width=&#x27;1.5&#x27;%20stroke-linecap=&#x27;round&#x27;%20stroke-linejoin=&#x27;round&#x27;/%3e%3cpath%20d=&#x27;M10.5%2019C15.4706%2019%2019.5%2014.9706%2019.5%2010C19.5%205.02944%2015.4706%201%2010.5%201C5.52944%201%201.5%205.02944%201.5%2010C1.5%2014.9706%205.52944%2019%2010.5%2019Z&#x27;%20stroke=&#x27;%23001A72&#x27;%20stroke-width=&#x27;1.5&#x27;%20stroke-linecap=&#x27;round&#x27;%20stroke-linejoin=&#x27;round&#x27;/%3e%3c/svg%3e" class="_themedImage_hipmx_1 themedComponent_mlkZ themedComponent--light_NVdE"><img src="data:image/svg+xml,%3csvg%20width=&#x27;20&#x27;%20height=&#x27;20&#x27;%20viewBox=&#x27;0%200%2020%2020&#x27;%20fill=&#x27;none&#x27;%20xmlns=&#x27;http://www.w3.org/2000/svg&#x27;%3e%3cpath%20d=&#x27;M10%2014.99V15&#x27;%20stroke=&#x27;%23F8F9FF&#x27;%20stroke-width=&#x27;1.5&#x27;%20stroke-linecap=&#x27;round&#x27;%20stroke-linejoin=&#x27;round&#x27;/%3e%3cpath%20d=&#x27;M10%205V12&#x27;%20stroke=&#x27;%23F8F9FF&#x27;%20stroke-width=&#x27;1.5&#x27;%20stroke-linecap=&#x27;round&#x27;%20stroke-linejoin=&#x27;round&#x27;/%3e%3cpath%20d=&#x27;M10%2019C14.9706%2019%2019%2014.9706%2019%2010C19%205.02944%2014.9706%201%2010%201C5.02944%201%201%205.02944%201%2010C1%2014.9706%205.02944%2019%2010%2019Z&#x27;%20stroke=&#x27;%23F8F9FF&#x27;%20stroke-width=&#x27;1.5&#x27;%20stroke-linecap=&#x27;round&#x27;%20stroke-linejoin=&#x27;round&#x27;/%3e%3c/svg%3e" class="_themedImage_hipmx_1 themedComponent_mlkZ themedComponent--dark_xIcU"></span>Caution</div><div class="_admonitionContent_pwd5f_36"><p>When using Expo, please note that you need to use a custom development build of your app, not the standard Expo Go app. This is because we rely on native modules, which Expo Go doesn’t support.</p></div></div>
3434
<div class="theme-admonition theme-admonition-info _admonition_pwd5f_1 alert alert--info"><div class="_admonitionHeading_pwd5f_10"><span class="_admonitionIcon_pwd5f_23"><img src="data:image/svg+xml,%3csvg%20width=&#x27;21&#x27;%20height=&#x27;20&#x27;%20viewBox=&#x27;0%200%2021%2020&#x27;%20fill=&#x27;none&#x27;%20xmlns=&#x27;http://www.w3.org/2000/svg&#x27;%3e%3cpath%20d=&#x27;M10.5%2014.99V15&#x27;%20stroke=&#x27;%23001A72&#x27;%20stroke-width=&#x27;1.5&#x27;%20stroke-linecap=&#x27;round&#x27;%20stroke-linejoin=&#x27;round&#x27;/%3e%3cpath%20d=&#x27;M10.5%205V12&#x27;%20stroke=&#x27;%23001A72&#x27;%20stroke-width=&#x27;1.5&#x27;%20stroke-linecap=&#x27;round&#x27;%20stroke-linejoin=&#x27;round&#x27;/%3e%3cpath%20d=&#x27;M10.5%2019C15.4706%2019%2019.5%2014.9706%2019.5%2010C19.5%205.02944%2015.4706%201%2010.5%201C5.52944%201%201.5%205.02944%201.5%2010C1.5%2014.9706%205.52944%2019%2010.5%2019Z&#x27;%20stroke=&#x27;%23001A72&#x27;%20stroke-width=&#x27;1.5&#x27;%20stroke-linecap=&#x27;round&#x27;%20stroke-linejoin=&#x27;round&#x27;/%3e%3c/svg%3e" class="_themedImage_hipmx_1 themedComponent_mlkZ themedComponent--light_NVdE"><img src="data:image/svg+xml,%3csvg%20width=&#x27;20&#x27;%20height=&#x27;20&#x27;%20viewBox=&#x27;0%200%2020%2020&#x27;%20fill=&#x27;none&#x27;%20xmlns=&#x27;http://www.w3.org/2000/svg&#x27;%3e%3cpath%20d=&#x27;M10%2014.99V15&#x27;%20stroke=&#x27;%23F8F9FF&#x27;%20stroke-width=&#x27;1.5&#x27;%20stroke-linecap=&#x27;round&#x27;%20stroke-linejoin=&#x27;round&#x27;/%3e%3cpath%20d=&#x27;M10%205V12&#x27;%20stroke=&#x27;%23F8F9FF&#x27;%20stroke-width=&#x27;1.5&#x27;%20stroke-linecap=&#x27;round&#x27;%20stroke-linejoin=&#x27;round&#x27;/%3e%3cpath%20d=&#x27;M10%2019C14.9706%2019%2019%2014.9706%2019%2010C19%205.02944%2014.9706%201%2010%201C5.02944%201%201%205.02944%201%2010C1%2014.9706%205.02944%2019%2010%2019Z&#x27;%20stroke=&#x27;%23F8F9FF&#x27;%20stroke-width=&#x27;1.5&#x27;%20stroke-linecap=&#x27;round&#x27;%20stroke-linejoin=&#x27;round&#x27;/%3e%3c/svg%3e" class="_themedImage_hipmx_1 themedComponent_mlkZ themedComponent--dark_xIcU"></span>Info</div><div class="_admonitionContent_pwd5f_36"><p>Because we are using ExecuTorch under the hood, you won&#x27;t be able to build ios app for release with simulator selected as the target device. Make sure to test release builds on real devices.</p></div></div>
3535
<p>Running the app with the library:</p>
36-
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:var(--swm-navy-light-40)"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:var(--swm-navy-light-40)"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:var(--swm-navy-light-40)"><span class="token function" style="color:var(--swm-purple-light-80)">yarn</span><span class="token plain"> run expo:</span><span class="token operator" style="color:var(--swm-red-light-80)">&lt;</span><span class="token plain">ios </span><span class="token operator" style="color:var(--swm-red-light-80)">|</span><span class="token plain"> android</span><span class="token operator" style="color:var(--swm-red-light-80)">&gt;</span><span class="token plain"> </span><span class="token parameter variable" style="color:var(--swm-red-light-80)">-d</span><br></span></code></pre></div></div>
36+
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:var(--swm-navy-light-10)"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:var(--swm-navy-light-10)"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:var(--swm-navy-light-10)"><span class="token function" style="color:var(--swm-purple-dark-80)">yarn</span><span class="token plain"> run expo:</span><span class="token operator" style="color:var(--swm-red-dark-80)">&lt;</span><span class="token plain">ios </span><span class="token operator" style="color:var(--swm-red-dark-80)">|</span><span class="token plain"> android</span><span class="token operator" style="color:var(--swm-red-dark-80)">&gt;</span><span class="token plain"> </span><span class="token parameter variable" style="color:var(--swm-red-dark-80)">-d</span><br></span></code></pre></div></div>
3737
<h2 class="anchor anchorTargetHideOnScrollNavbar_vjPI" id="good-reads">Good reads<a href="#good-reads" class="hash-link" aria-label="Direct link to Good reads" title="Direct link to Good reads" translate="no"></a></h2>
3838
<p>If you want to dive deeper into ExecuTorch or our previous work with the framework, we highly encourage you to check out the following resources:</p>
3939
<ul>

docs/0.1.x/category/fundamentals.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<link rel="search" type="application/opensearchdescription+xml" title="React Native ExecuTorch" href="/react-native-executorch/opensearch.xml"><link rel="stylesheet" href="/react-native-executorch/assets/css/styles.60245c1f.css">
1313
<script src="/react-native-executorch/assets/js/runtime~main.220a41d9.js" defer="defer"></script>
14-
<script src="/react-native-executorch/assets/js/main.24f92d4a.js" defer="defer"></script>
14+
<script src="/react-native-executorch/assets/js/main.13cd4db1.js" defer="defer"></script>
1515
</head>
1616
<body class="navigation-with-keyboard">
1717
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WNBF6SVN" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

docs/0.1.x/category/guides.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<link rel="search" type="application/opensearchdescription+xml" title="React Native ExecuTorch" href="/react-native-executorch/opensearch.xml"><link rel="stylesheet" href="/react-native-executorch/assets/css/styles.60245c1f.css">
1313
<script src="/react-native-executorch/assets/js/runtime~main.220a41d9.js" defer="defer"></script>
14-
<script src="/react-native-executorch/assets/js/main.24f92d4a.js" defer="defer"></script>
14+
<script src="/react-native-executorch/assets/js/main.13cd4db1.js" defer="defer"></script>
1515
</head>
1616
<body class="navigation-with-keyboard">
1717
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WNBF6SVN" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

docs/0.1.x/guides/exporting-llama.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)