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

Fix error in performance comparison in llama2 blog and some formatting fixes #18479

Merged
merged 6 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from 5 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
33 changes: 33 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
nav_exclude: true
---
## Developing

Once you've installed dependencies with `npm install` (or `yarn`), start a development server with hot-reload enabled:

```bash
npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open
```
All working pages are in `src/routes/[page url]/+page.svelte`, which is where you can make your edits.

### Technologies & relevant docs
Please use the docs pages below to aid in your development process. As a general target, we should be using zero CSS, as daisyUI (framework with components) and tailwindcss (css classes) should be able to handle all of our styling needs.
- [Svelte](https://svelte.dev/)
- daisyUI [docs](https://daisyui.com/)
- tailwindcss [docs](https://tailwindcss.com/docs)


## Building

To create a production version of your app:

```bash
npm run build
```

You can preview the production build with `npm run preview`.

> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
34 changes: 0 additions & 34 deletions README.md

This file was deleted.

5 changes: 5 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@ gh_edit_repository: 'https://github.com/microsoft/onnxruntime' # the github URL
gh_edit_branch: 'gh-pages' # the branch that your docs is served from
# gh_edit_source: docs # the source that your files originate from
gh_edit_view_mode: 'tree' # "tree" or "edit" if you want the user to jump into the editor immediately
nav_external_links:
MaanavD marked this conversation as resolved.
Show resolved Hide resolved
- title: ONNX Runtime Docs on GitHub
url: https://github.com/microsoft/onnxruntime/tree/gh-pages
hide_icon: true # set to true to hide the external link icon - defaults to false
opens_in_new_tab: true # set to true to open this link in a new tab - defaults to false
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
255 changes: 151 additions & 104 deletions src/routes/blogs/accelerating-llama-2/+page.svelte

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions src/routes/blogs/pytorch-on-the-edge/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,41 @@ fun run(audioTensor: OnnxTensor): Result {
name="description"
content="Everything you need to know about running PyTorch models on the edge with ONNX Runtime."
/>
<meta name="title" content="Run PyTorch models on the edge" />
<meta
name="keywords"
content="PyTorch, ONNX Runtime, edge computing, machine learning, deep learning, model optimization, model deployment, AI on edge"
/>
<meta name="author" content="Natalie Kershaw, Prasanth Pulavarthi" />
<meta name="date" content="2023-10-12" />
<meta name="image" content={ORT} />
<meta name="robots" content="index, follow" />
<meta name="og:title" content="Run PyTorch models on the edge" />
<meta
name="og:description"
content="Learn how to run PyTorch models on edge devices using ONNX Runtime. Explore considerations, tools, and examples for deploying PyTorch models on Windows, in the browser, on mobile, and for on-device training."
/>
<meta name="og:type" content="article" />
<meta name="og:url" content="https://onnxruntime.ai/blogs/pytorch-on-the-edge" />
<meta name="og:image" content={ORT} />
<meta name="twitter:title" content="Run PyTorch models on the edge" />
<meta
name="twitter:description"
content="Learn how to run PyTorch models on edge devices using ONNX Runtime. Explore considerations, tools, and examples for deploying PyTorch models on Windows, in the browser, on mobile, and for on-device training."
/>
<meta name="twitter:card" content={ORT} />
<meta name="twitter:image" content={ORT} />
</svelte:head>
<Header pathvar="" />
<div class="container mx-auto px-4 md:px-8 lg:px-48 pt-8">
<h1 class="text-5xl pb-2">Run PyTorch models on the edge</h1>
<p class="text-neutral">
By: <a href="https://www.linkedin.com/in/natkershaw/" class="text-blue-500">Natalie Kershaw</a>
and
<a href="https://www.linkedin.com/in/prasanthpulavarthi/" class="text-blue-500"
>Prasanth Pulavarthi</a
>
</p>
<p class="text-neutral">12TH OCTOBER, 2023</p>
<div class="py-4">
<div class="col-span-12 md:col-span-9">
Expand Down
9 changes: 1 addition & 8 deletions src/routes/components/code-blocks.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
>
</div>
</div>
<div class="hidden lg:block col-span-2 mx-auto tab-container">
<div class="hidden lg:block col-span-2 mx-auto min-w-[675px] min-h-[400px]">
<div class="tabs">
<p
on:mouseenter={handleClick}
Expand Down Expand Up @@ -160,10 +160,3 @@
</div>
<div class="divider px-6" />
</div>

<style>
.tab-container {
min-width: 675px;
min-height: 400px;
}
</style>
2 changes: 1 addition & 1 deletion src/routes/getting-started/table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@
"Follow build instructions from <a class='text-blue-500' href='http://www.onnxruntime.ai/docs/execution-providers/community-maintained/CANN-ExecutionProvider.html#build' target='_blank'>here</a>.",

'linux,Python,X64,CANN':
"pip install onnxruntime-cann <br/>Refer to <a class='text-blue-500' href='http://www.onnxruntime.ai/docs/execution-providers/community-maintained/community-maintained/CANN-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements.",
"pip install onnxruntime-cann <br/>Refer to <a class='text-blue-500' href='http://www.onnxruntime.ai/docs/execution-providers/community-maintained/CANN-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements.",

'linux,C-API,X64,CANN':
"Follow build instructions from <a class='text-blue-500' href='http://www.onnxruntime.ai/docs/execution-providers/community-maintained/CANN-ExecutionProvider.html#build' target='_blank'>here</a>.",
Expand Down
Loading