-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated generative ai page. still WIP.
- Loading branch information
Showing
8 changed files
with
231 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,261 @@ | ||
<script lang="ts"> | ||
import LandingHero from '../components/landing-hero.svelte'; | ||
const title = 'Generative AI + ONNX Runtime'; | ||
import { fade } from 'svelte/transition'; | ||
import coffee from './coffee.png'; | ||
import genny from './genny.png'; | ||
import vision_ui from './vision_UI.png'; | ||
import mobile from './mobile.png'; | ||
import desktop from './desktop.png'; | ||
import browser from './browser.png'; | ||
import aibrain from './aibrain.webp' | ||
const title = 'Generative AI'; | ||
const description = | ||
'Integrate the power of generative AI in your apps and services with ONNX Runtime. Broad platform support and deep optimizations empower usage of state-of-the-art models for image synthesis, text generation, and more.'; | ||
'Integrate the power of generative AI in your apps and services with ONNX Runtime. Broad platform support and deep optimizations empower usage of state-of-the-art models for text generation, audio synthesis, and more.'; | ||
const imgsrc = 'onnxruntimelogo'; | ||
const imgalt = 'ONNX Runtime Logo'; | ||
import stablediffusion1 from '../../images/StableDiffusion1.webp'; | ||
import stablediffusion2 from '../../images/StableDiffusion2.webp'; | ||
let image = 'https://i.ibb.co/0YBy62j/ORT-icon-for-light-bg.png' | ||
let imageSquare = 'https://i.ibb.co/0YBy62j/ORT-icon-for-light-bg.png' | ||
let authors = [''] | ||
let keywords = 'onnxruntime, onnx runtime generative ai, onnx runtime generative ai models, onnx runtime generative ai deployment, onnx runtime generative ai performance, onnx runtime generative ai time to market, onnx runtime generative ai deploy anywhere, onnx runtime generative ai boost performance, onnx runtime generative ai improve time to market, onnx runtime generative ai production ready, onnx runtime generative ai lower latency, onnx runtime generative ai higher throughput, onnx runtime generative ai get innovations into production faster, onnx runtime generative ai testimonials, onnx runtime generative ai performance enhancements, onnx runtime generative ai production ready, onnx runtime generative ai lower latency, onnx runtime generative ai higher throughput, onnx runtime generative ai get innovations into production faster, onnx runtime generative ai testimonials, onnx runtime generative ai performance enhancements' | ||
let image = 'https://i.ibb.co/0YBy62j/ORT-icon-for-light-bg.png'; | ||
let imageSquare = 'https://i.ibb.co/0YBy62j/ORT-icon-for-light-bg.png'; | ||
let authors = ['']; | ||
let keywords = | ||
'onnxruntime, onnx runtime generative ai, onnx runtime generative ai models, onnx runtime generative ai deployment, onnx runtime generative ai performance, onnx runtime generative ai time to market, onnx runtime generative ai deploy anywhere, onnx runtime generative ai boost performance, onnx runtime generative ai improve time to market, onnx runtime generative ai production ready, onnx runtime generative ai lower latency, onnx runtime generative ai higher throughput, onnx runtime generative ai get innovations into production faster, onnx runtime generative ai testimonials, onnx runtime generative ai performance enhancements, onnx runtime generative ai production ready, onnx runtime generative ai lower latency, onnx runtime generative ai higher throughput, onnx runtime generative ai get innovations into production faster, onnx runtime generative ai testimonials, onnx runtime generative ai performance enhancements'; | ||
let cycleWords = ['Desktop', 'Mobile', 'Browser']; | ||
let cycleIndex = 0; | ||
const interval = setInterval(() => { | ||
cycleIndex = (cycleIndex + 1) % cycleWords.length; | ||
}, 3000); | ||
// Cleanup interval on component destruction | ||
import { onDestroy } from 'svelte'; | ||
onDestroy(() => { | ||
clearInterval(interval); | ||
}); | ||
</script> | ||
|
||
<svelte:head> | ||
<!-- Dynamic meta tags --> | ||
<meta name="description" content={description} /> | ||
<meta name="image" content={image} /> | ||
<meta name="image" content={aibrain} /> | ||
<meta name="author" content={authors.join(', ')} /> | ||
<meta name="keywords" content={keywords} /> | ||
<!-- Open Graph / Facebook --> | ||
<meta property="og:description" content={description}/> | ||
<meta property="og:image" content={image} /> | ||
<meta property="og:description" content={description} /> | ||
<meta property="og:image" content={aibrain} /> | ||
|
||
<!-- Twitter --> | ||
<meta property="twitter:description" content={description} /> | ||
<meta property="twitter:image" content={image} /> | ||
<meta property="twitter:card" content={imageSquare} /> | ||
<meta property="twitter:image" content={aibrain} /> | ||
<meta property="twitter:card" content={aibrain} /> | ||
</svelte:head> | ||
|
||
<LandingHero {title} {description} {imgsrc} {imgalt} /> | ||
<div class="container mx-auto px-10 my-10"> | ||
<h1 class="text-4xl">Stable Diffusion + ONNX Runtime</h1> | ||
<p class="pb-4">Use ONNX Runtime to accelerate this popular image generation model.</p> | ||
<h2 class="text-3xl pb-4">Benefits</h2> | ||
<div class="grid gap-10 grid-cols-1 lg:grid-cols-2 pb-4"> | ||
<div class="card bg-base-300"> | ||
<div class="card-body"> | ||
<h2 class="card-title pb-4">Run Stable Diffusion outside of a Python environment</h2> | ||
<div class="card-actions"> | ||
<a | ||
href="https://onnxruntime.ai/docs/tutorials/csharp/stable-diffusion-csharp.html" | ||
class="btn-primary btn">Inference Stable Diffusion →</a | ||
> | ||
<div class="my-8 grid grid-cols-1 md:grid-cols-4 gap-4"> | ||
<img class="m-auto rounded-xl" src={aibrain} alt="Representing generative AI"> | ||
<div class="col-span-3 my-auto"> | ||
|
||
<h2 class="text-3xl">What is Generative AI?</h2> | ||
<p> | ||
Generative AI refers to a type of artificial intelligence that creates new content—such as | ||
text, images, audio, or code—based on patterns learned from existing data. Unlike | ||
traditional AI models, which primarily classify or predict based on given inputs, generative | ||
AI models produce entirely new outputs. | ||
<br /><br /> | ||
They accomplish this through advanced techniques like deep learning, often using models such | ||
as Transformers and Generative Adversarial Networks (GANs). Examples include AI that generates | ||
human-like text responses, creates realistic images from descriptions, or composes music. Generative | ||
AI is driving innovation across industries by enabling personalized experiences, automating creative | ||
processes, and opening new possibilities for content generation! | ||
</p> | ||
</div> | ||
|
||
</div> | ||
<div class="divider" /> | ||
<div class=""> | ||
<div class=""> | ||
<h2 class="text-3xl">Generative AI models</h2> | ||
|
||
</div> | ||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 my-8 gap-4"> | ||
<div class="flex flex-col h-full gap-4 col-span-3"> | ||
<div class="flex-1"> | ||
<h3 class="text-2xl">Text Generation Models</h3> | ||
<p> | ||
Text generation models are AI systems designed to generate human-like text based on | ||
prompts. They're used in chatbots, content creation, summarization, and creative | ||
writing. Check out our llama 3 and phi-3 demos below: | ||
</p> | ||
</div> | ||
|
||
<div class="grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-4 mt-auto"> | ||
<a href="" class="btn btn-primary btn-block">Llama 3</a> | ||
<a href="" class="btn btn-primary btn-block">Phi-3</a> | ||
<a href="" class="btn btn-primary btn-block">Gemma</a> | ||
<a href="" class="btn btn-primary btn-block">Mistral</a> | ||
</div> | ||
</div> | ||
|
||
<!-- <div class="mx-auto flex flex-col gap-4 h-full"> | ||
<div class="flex-1"> | ||
<h3 class="text-2xl">Image Generation Models</h3> | ||
<p> | ||
Image generation models use AI to create visuals from text descriptions or other inputs. | ||
These models generate artwork, realistic images, and visual content for design and media | ||
applications. Check out stable diffusion for a great example! | ||
</p> | ||
</div> | ||
<div class="grid gap-4 grid-cols-1 mt-auto"> | ||
<a href="" class="btn btn-primary btn-block">Stable Diffusion</a> | ||
</div> | ||
</div> | ||
<div class="mx-auto flex flex-col gap-4 h-full"> | ||
<div class="flex-1"> | ||
<h3 class="text-2xl">Audio Models</h3> | ||
<p> | ||
Many audio models transcribe text from audio, but audio generation models exist too, using AI to create sound, music, or speech based on input data. | ||
Check out Whisper and its audio recognition capabilities: | ||
</p> | ||
</div> | ||
<div class="grid gap-4 grid-cols-1 mt-auto"> | ||
<a href="" class="btn btn-primary btn-block">Whisper</a> | ||
</div> | ||
</div> --> | ||
|
||
<div class="mx-auto flex flex-col gap-4 h-full"> | ||
<div class="flex-1"> | ||
<h3 class="text-2xl">Other Models</h3> | ||
<p> | ||
Other generative models create diverse outputs like code, video, or 3D designs. These | ||
models expand creative possibilities, enabling automation and innovation in fields | ||
ranging from software development to digital art. | ||
</div> | ||
<div class="grid gap-4 grid-cols-1 mt-auto"> | ||
<a href="https://github.com/microsoft/onnxruntime-genai" class="btn btn-primary btn-block">Request a model on GitHub</a> | ||
<!-- <a href="" class="btn btn-primary btn-block">Model B</a> --> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
<div class="card bg-base-300"> | ||
<div class="card-body"> | ||
<h2 class="card-title pb-4"> | ||
Speed up inference of Stable Diffusion on NVIDIA and AMD GPUs | ||
</div> | ||
<div class="divider" /> | ||
<div class=""> | ||
<h2 class="text-3xl">ONNX Runtime Gen AI</h2> | ||
<p> | ||
Use ONNX Runtime Gen AI for its high performance, scalability, and flexibility in deploying | ||
generative AI models. With support for diverse frameworks and hardware acceleration, it | ||
ensures efficient, cost-effective model inference across various environments. | ||
</p> | ||
<div class="grid grid-cols-1 lg:grid-cols-2 my-8"> | ||
<div class=""> | ||
<h2 class="text-2xl text-center"> | ||
Run ONNX Runtime - Generative AI on: | ||
</h2> | ||
<div class="card-actions"> | ||
<a | ||
href="https://medium.com/microsoftazure/accelerating-stable-diffusion-inference-with-onnx-runtime-203bd7728540" | ||
class="btn btn-primary">Accelerate Stable Diffusion →</a | ||
> | ||
<h2 class="text-center text-4xl"> | ||
{#key cycleIndex} | ||
<strong in:fade={{ duration: 1000 }}>{cycleWords[cycleIndex]}</strong> | ||
<img | ||
height="512px" | ||
width="512px" | ||
class="mx-auto mt-4" | ||
in:fade={{ duration: 1000 }} | ||
src={cycleIndex == 0 ? desktop : cycleIndex == 1 ? mobile : browser} | ||
alt="Desktop, mobile, and browser usage of ONNX Runtime Gen AI" | ||
/> | ||
{/key} | ||
</h2> | ||
</div> | ||
<!-- <div class="my-auto"> | ||
<a href="" class="btn btn-primary btn-block m-4">Run on Desktop</a> | ||
<a href="" class="btn btn-primary btn-block m-4">Run on Mobile</a> | ||
<a href="" class="btn btn-primary btn-block m-4">Run in Browser</a> | ||
</div> --> | ||
<div class="grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-2 my-8"> | ||
<div class="card bg-base-300 text-neutral-content"> | ||
<div class="card-body items-center text-center"> | ||
<h2 class="card-title">Multiplatform</h2> | ||
<p>Whether it be Desktop, Mobile, or Browser, run ONNX Runtime on the platform of your choosing!</p> | ||
</div> | ||
</div> | ||
<div class="card bg-base-300 text-neutral-content"> | ||
<div class="card-body items-center text-center"> | ||
<h2 class="card-title">On Device</h2> | ||
<p>Run ORT GenAI locally, without privacy concerns and inference however you desire.</p> | ||
</div> | ||
</div> | ||
<div class="card bg-base-300 text-neutral-content"> | ||
<div class="card-body items-center text-center"> | ||
<h2 class="card-title">Multimodal compatibility</h2> | ||
<p>You aren't limited to just LLMs with ORT GenAI - you can use your favourite vision or (soon) omni models too.</p> | ||
</div> | ||
</div> | ||
<div class="card bg-base-300 text-neutral-content"> | ||
<div class="card-body items-center text-center"> | ||
<h2 class="card-title">Easy to use!</h2> | ||
<p>Getting ramped up is super easy! Get started using any of the various examples we have below!</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
<h2 class="text-3xl">Performance</h2> | ||
<p class="pb-4">The average latency in seconds on Stable Diffusion v1.5 and v2.1 models:</p> | ||
<div class="grid gap-10 grid-cols-1 md:grid-cols-2 pb-10"> | ||
<div class=""> | ||
<img src={stablediffusion1} alt="Stable Diffusion v1.5 latency graphs" /> | ||
</div> | ||
<div class=""> | ||
<h3 class="text-2xl">Tutorials & Demos</h3> | ||
<p> | ||
Raring to go? Bring your models to all platforms and get started with any of the following | ||
tutorials and demos: | ||
</p> | ||
<div class=""> | ||
<img src={stablediffusion2} alt="Stable Diffusion v2.1 latency graphs" /> | ||
<div class="grid grid-cols-1 gap-4 lg:grid-cols-3 my-8 "> | ||
<div class="card bg-base-100 image-full w-80 mx-auto"> | ||
<figure> | ||
<img class="brightness-50" src={coffee} alt="A cappuccino used to inference with Phi3 vision" /> | ||
</figure> | ||
<div class="card-body items-center text-center"> | ||
<h2 class="card-title text-white">Phi-3 Vision</h2> | ||
<p class="text-white"> | ||
A Desktop app demo to interact with text and images simultaneously. | ||
</p> | ||
<div class="card-actions justify-end"> | ||
<a | ||
href="https://onnxruntime.ai/docs/genai/tutorials/phi3-v.html" | ||
class="btn btn-primary">Try it out!</a | ||
> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card bg-base-100 image-full w-80 mx-auto"> | ||
<figure> | ||
<img class="brightness-50" src={vision_ui} alt="UI of the vision LLM chat app" /> | ||
</figure> | ||
<div class="card-body items-center text-center"> | ||
<h2 class="card-title text-white">LLM Chat App</h2> | ||
<p class="text-white"> | ||
An LLM chat app with UI. Pick your favourite model and get chatting! | ||
</p> | ||
<div class="card-actions justify-end"> | ||
<a | ||
href="https://github.com/microsoft/onnxruntime-genai/tree/main/examples/chat_app" | ||
class="btn btn-primary">Try it out!</a | ||
> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card bg-base-100 image-full w-80 mx-auto"> | ||
<figure> | ||
<img class="brightness-50" src={genny} alt="Genny's model testing UI" /> | ||
</figure> | ||
<div class="card-body items-center text-center"> | ||
<h2 class="card-title text-white">Genny (model tester)</h2> | ||
<p class="text-white">A demo app to debug and test models with ORT GenAI.</p> | ||
<div class="card-actions justify-end"> | ||
<a | ||
href="https://github.com/microsoft/onnxruntime-genai/tree/main/examples/csharp/Genny" | ||
class="btn btn-primary">Try it out!</a | ||
> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<h2 class="text-3xl">Large Language Models + ONNX Runtime</h2> | ||
<p class="pb-4"> | ||
ONNX Runtime supports many popular large language model (LLM) families in the Hugging Face Model | ||
Hub. These, along with thousands of other models, are easily convertible to ONNX using the | ||
Optimum API. | ||
</p> | ||
<div class=""> | ||
<a href="https://huggingface.co/models?other=llama" class="btn btn-primary">LLaMA →</a> | ||
<a href="https://huggingface.co/models?other=gpt_neo" class="btn btn-primary">GPT Neo →</a> | ||
<a href="https://huggingface.co/models?other=bloom" class="btn btn-primary">BLOOM →</a> | ||
<a href="https://huggingface.co/models?other=opt" class="btn btn-primary">OPT →</a> | ||
<a href="https://huggingface.co/models?other=gpt-j" class="btn btn-primary">GPT-J →</a> | ||
<a href="https://huggingface.co/models?other=flan-t5" class="btn btn-primary">FLAN-T5 →</a> | ||
</div> | ||
</div> |
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.
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.