PageSourceSearch

https://onnxruntime.ai/_app/immutable/nodes/22.158a7aa7.js

js onnxruntime.ai collected 2026-09-24 08:28:27 UTC 13,987 bytes, 7 lines download raw bytes

1import{s as Se,f as n,a as b,r as Ke,g as s,d as o,c as y,h as x,D as L,j as r,v as e,i as O,N as ue,P as Qe,l as j,m as W,C as ie,I as Ue,n as Ye,B as He}from"../chunks/scheduler.e2b5ccef.js";import{S as Ze,i as et,b as tt,d as rt,m as at,t as Ie,c as it,a as Ce,e as nt,f as Pe,g as st}from"../chunks/index.67416819.js";import{e as he}from"../chunks/each.2abef341.js";import{L as ot}from"../chunks/landing-hero.2553bc16.js";import{f as Xe}from"../chunks/index.fa607d55.js";const lt=""+new URL("../assets/coffee.2e824c72.png",import.meta.url).href,ct=""+new URL("../assets/whisper.a86227b6.png",import.meta.url).href,dt=""+new URL("../assets/vision_UI.055c9f36.png",import.meta.url).href,je=""+new URL("../assets/mobile.2e052c6a.png",import.meta.url).href,We=""+new URL("../assets/desktop.66490efb.png",import.meta.url).href,qe=""+new URL("../assets/browser.59fac9b9.png",import.meta.url).href,de=""+new URL("../assets/aibrain.a4dbff88.webp",import.meta.url).href;function mt(c,t,i){const l=c.slice();return l[4]=t[i],l}function ut(c,t,i){const l=c.slice();return l[7]=t[i],l}function ht(c,t,i){const l=c.slice();return l[10]=t[i],l}function pt(c,t,i){const l=c.slice();return l[13]=t[i],l}function ft(c){let t,i=c[13].name+"",l;return{c(){t=n("a"),l=j(i),this.h()},l(h){t=s(h,"A",{href:!0,class:!0});var d=x(t);l=W(d,i),d.forEach(o),this.h()},h(){r(t,"href",c[13].url),r(t,"class","btn btn-primary btn-block")},m(h,d){O(h,t,d),e(t,l)},p:ie,d(h){h&&o(t)}}}function vt(c){let t,i,l,h=c[10].title+"",d,m,g,I=c[10].description+"",u,p,E,C,f=he(c[10].demos),v=[];for(let w=0;w<f.length;w+=1)v[w]=ft(pt(c,f,w));return{c(){t=n("div"),i=n("div"),l=n("h3"),d=j(h),m=b(),g=n("p"),u=j(I),p=b(),E=n("div");for(let w=0;w<v.length;w+=1)v[w].c();C=b(),this.h()},l(w){t=s(w,"DIV",{class:!0});var M=x(t);i=s(M,"DIV",{class:!0});var k=x(i);l=s(k,"H3",{class:!0});var R=x(l);d=W(R,h),R.forEach(o),m=y(k),g=s(k,"P",{});var A=x(g);u=W(A,I),A.forEach(o),k.forEach(o),p=y(M),E=s(M,"DIV",{class:!0});var V=x(E);for(let $=0;$<v.length;$+=1)v[$].l(V);V.forEach(o),C=y(M),M.forEach(o),this.h()},h(){r(l,"class","text-2xl"),r(i,"class","flex-1"),r(E,"class","grid gap-4 grid-cols-"+c[10].demos.length+" mt-auto"),r(t,"class","mx-auto flex flex-col gap-4 h-full")},m(w,M){O(w,t,M),e(t,i),e(i,l),e(l,d),e(i,m),e(i,g),e(g,u),e(t,p),e(t,E);for(let k=0;k<v.length;k+=1)v[k]&&v[k].m(E,null);e(t,C)},p:ie,d(w){w&&o(t),ue(v,w)}}}function ze(c){let t,i=c[2][c[0]]+"",l,h,d,m,g,I;return{c(){t=n("strong"),l=j(i),d=b(),m=n("img"),this.h()},l(u){t=s(u,"STRONG",{});var p=x(t);l=W(p,i),p.forEach(o),d=y(u),m=s(u,"IMG",{class:!0,height:!0,width:!0,src:!0,alt:!0}),this.h()},h(){r(m,"class","mx-auto mt-4"),r(m,"height","512px"),r(m,"width","512px"),Ue(m.src,g=c[0]===0?We:c[0]===1?je:qe)||r(m,"src",g),r(m,"alt","Platform for desktop, mobile, and cloud usage")},m(u,p){O(u,t,p),e(t,l),O(u,d,p),O(u,m,p)},p(u,p){p&1&&i!==(i=u[2][u[0]]+"")&&Ye(l,i),p&1&&!Ue(m.src,g=u[0]===0?We:u[0]===1?je:qe)&&r(m,"src",g)},i(u){u&&(h||He(()=>{h=Pe(t,Xe,{duration:1e3}),h.start()})),u&&(I||He(()=>{I=Pe(m,Xe,{duration:1e3}),I.start()}))},o:ie,d(u){u&&(o(t),o(d),o(m))}}}function gt(c){let t,i,l,h=c[7].title+"",d,m,g,I=c[7].description+"",u,p;return{c(){t=n("div"),i=n("div"),l=n("h2"),d=j(h),m=b(),g=n("p"),u=j(I),p=b(),this.h()},l(E){t=s(E,"DIV",{class:!0});var C=x(t);i=s(C,"DIV",{class:!0});var f=x(i);l=s(f,"H2",{class:!0});var v=x(l);d=W(v,h),v.forEach(o),m=y(f),g=s(f,"P",{class:!0});var w=x(g);u=W(w,I),w.forEach(o),f.forEach(o),p=y(C),C.forEach(o),this.h()},h(){r(l,"class","card-title"),r(g,"class","my-auto pt-10"),r(i,"class","card-body items-center text-center"),r(t,"class","card bg-primary dark:text-black text-neutral-content")},m(E,C){O(E,t,C),e(t,i),e(i,l),e(l,d),e(i,m),e(i,g),e(g,u),e(t,p)},p:ie,d(E){E&&o(t)}}}function _t(c){let t,i,l=`<img class="brightness-50" src="${c[4].img}" alt="${c[4].title}"/>`,h,d,m,g=c[4].title+"",I,u,p,E=c[4].description+"",C,f,v,w="Try it out!",M;return{c(){t=n("div"),i=n("figure"),i.innerHTML=l,h=b(),d=n("div"),m=n("h2"),I=j(g),u=b(),p=n("p"),C=j(E),f=b(),v=n("a"),v.textContent=w,M=b(),this.h()},l(k){t=s(k,"DIV",{class:!0});var R=x(t);i=s(R,"FIGURE",{"data-svelte-h":!0}),L(i)!=="svelte-193dyci"&&(i.innerHTML=l),h=y(R),d=s(R,"DIV",{class:!0});var A=x(d);m=s(A,"H2",{class:!0});var V=x(m);
1I=W(V,g),V.forEach(o),u=y(A),p=s(A,"P",{class:!0});var $=x(p);C=W($,E),$.forEach(o),f=y(A),v=s(A,"A",{href:!0,class:!0,"data-svelte-h":!0}),L(v)!=="svelte-dbgykw"&&(v.textContent=w),A.forEach(o),M=y(R),R.forEach(o),this.h()},h(){r(m,"class","card-title text-white"),r(p,"class","text-white"),r(v,"href",c[4].url),r(v,"class","btn btn-primary"),r(d,"class","card-body items-center text-center"),r(t,"class","card bg-base-100 image-full sm:w-80 mx-auto")},m(k,R){O(k,t,R),e(t,i),e(t,h),e(t,d),e(d,m),e(m,I),e(d,u),e(d,p),e(p,C),e(d,f),e(d,v),e(t,M)},p:ie,d(k){k&&o(t)}}}function xt(c){let t,i,l,h,d,m,g,I,u,p,E,C,f,v,w=`<div class="m-2 lg:m-8"><img class="rounded-xl" src="${de}" alt="Representing generative AI"/></div> <div class="col-span-3 my-auto"><h2 class="text-3xl pb-4">What is Generative AI?</h2> <p>Generative AI refers to artificial intelligence that creates new content—such as text,
2				images, audio, or code—based on patterns learned from existing data. Generative AI leverages
3				transformer models for text and diffusion models for images. These innovations are
4				transforming industries, enabling personalized experiences, automating creative processes,
5				and opening new possibilities for content generation!</p></div>`,M,k,R,A,V,$="Generative AI Models",pe,J,fe,ne,ve,U,q,De="ONNX Runtime ❤️ Generative AI",ge,K,Ae=`Use ONNX Runtime for high performance, scalability, and flexibility when deploying generative
6			AI models. With support for diverse frameworks and hardware acceleration, ONNX Runtime ensures
7			efficient, cost-effective model inference across platforms.`,_e,H,z,S,Me="Run ONNX Runtime on:",xe,B,Re=c[0],be,Q,ye,T,F,Ve="Tutorials & Demos",we,Y,Ne="Get started with any of these tutorials and demos:",Ee,Z,ke,P,Te="See more demos!",se;E=new ot({props:{title:bt,description:me,imgsrc:yt,imgalt:wt}});let Be=he([{title:"Text Generation Models",description:"Generate human-like text for chatbots, content creation, summarization, and more.",demos:[{name:"Llama",url:"https://github.com/microsoft/onnxruntime-genai/tree/main/examples/python/README.md"},{name:"Mistral",url:"https://github.com/microsoft/Olive/tree/main/examples/mistral"},{name:"Phi",url:"https://github.com/microsoft/onnxruntime-genai/blob/main/examples/python/phi-3-tutorial.md"}]},{title:"Image Generation Models",description:"Create artwork or realistic images from descriptions using AI models like Stable Diffusion.",demos:[{name:"Stable Diffusion",url:"https://github.com/microsoft/Olive/tree/main/examples/stable_diffusion"}]},{title:"Audio Models",description:"Generate audio, music, or speech from data inputs with AI models like Whisper.",demos:[{name:"Whisper",url:"https://huggingface.co/spaces/Xenova/whisper-web"}]},{title:"Other Models",description:"Generate diverse outputs like code, video, or 3D designs.",demos:[{name:"Request a Model",url:"https://github.com/microsoft/onnxruntime-genai/discussions/categories/model-support"}]}]),ee=[];for(let a=0;a<4;a+=1)ee[a]=vt(ht(c,Be,a));let N=ze(c),Fe=he([{title:"Multiplatform",description:"Run ONNX Runtime on Desktop 🖥️, Mobile 📱, Browser 💻, or Cloud ☁️."},{title:"On Device",description:"Inference privately 🔐 and save costs ⚙️ with on-device models."},{title:"Multimodal Compatibility",description:"Use ONNX Runtime with vision or omni models. We work to quickly enable all new model scenarios 🚀."},{title:"Easy to Use",description:"Get started quickly ⏩ with our examples and tutorials."}]),te=[];for(let a=0;a<4;
7a+=1)te[a]=gt(ut(c,Fe,a));let Je=he([{title:"Phi-3 Vision",img:lt,description:"A Desktop app demo to interact with text and images simultaneously.",url:"https://onnxruntime.ai/docs/genai/tutorials/phi3-v.html"},{title:"Olive Examples",img:dt,description:"Use Olive, a hardware-aware optimizer, to quickly generate the ideal ONNX model for your needs.",url:"https://github.com/microsoft/Olive/tree/main/examples"},{title:"Whisper in Browser",img:ct,description:"Run whisper to transcribe user audio in your browser!",url:"https://github.com/microsoft/onnxruntime-inference-examples/tree/main/js/ort-whisper"}]),re=[];for(let a=0;a<3;a+=1)re[a]=_t(mt(c,Je,a));return{c(){t=n("meta"),i=n("meta"),l=n("meta"),h=n("meta"),d=n("meta"),m=n("meta"),g=n("meta"),I=n("meta"),u=n("meta"),p=b(),tt(E.$$.fragment),C=b(),f=n("div"),v=n("div"),v.innerHTML=w,M=b(),k=n("div"),R=b(),A=n("div"),V=n("h2"),V.textContent=$,pe=b(),J=n("div");for(let a=0;a<4;a+=1)ee[a].c();fe=b(),ne=n("div"),ve=b(),U=n("div"),q=n("h2"),q.textContent=De,ge=b(),K=n("p"),K.textContent=Ae,_e=b(),H=n("div"),z=n("div"),S=n("h2"),S.textContent=Me,xe=b(),B=n("h2"),N.c(),be=b(),Q=n("div");for(let a=0;a<4;
7a+=1)te[a].c();ye=b(),T=n("div"),F=n("h3"),F.textContent=Ve,we=b(),Y=n("p"),Y.textContent=Ne,Ee=b(),Z=n("div");for(let a=0;a<3;a+=1)re[a].c();ke=b(),P=n("a"),P.textContent=Te,this.h()},l(a){const D=Ke("svelte-16p9yjp",document.head);t=s(D,"META",{name:!0,content:!0}),i=s(D,"META",{name:!0,content:!0}),l=s(D,"META",{name:!0,content:!0}),h=s(D,"META",{name:!0,content:!0}),d=s(D,"META",{property:!0,content:!0}),m=s(D,"META",{property:!0,content:!0}),g=s(D,"META",{property:!0,content:!0}),I=s(D,"META",{property:!0,content:!0}),u=s(D,"META",{property:!0,content:!0}),D.forEach(o),p=y(a),rt(E.$$.fragment,a),C=y(a),f=s(a,"DIV",{class:!0});var _=x(f);v=s(_,"DIV",{class:!0,"data-svelte-h":!0}),L(v)!=="svelte-366709"&&(v.innerHTML=w),M=y(_),k=s(_,"DIV",{class:!0}),x(k).forEach(o),R=y(_),A=s(_,"DIV",{});var oe=x(A);V=s(oe,"H2",{class:!0,"data-svelte-h":!0}),L(V)!=="svelte-18j5xzm"&&(V.textContent=$),pe=y(oe),J=s(oe,"DIV",{class:!0});var Ge=x(J);for(let G=0;G<4;G+=1)ee[G].l(Ge);Ge.forEach(o),oe.forEach(o),fe=y(_),ne=s(_,"DIV",{class:!0}),x(ne).forEach(o),ve=y(_),U=s(_,"DIV",{});var ae=x(U);q=s(ae,"H2",{class:!0,"data-svelte-h":!0}),L(q)!=="svelte-xx17r4"&&(q.textContent=De),ge=y(ae),K=s(ae,"P",{"data-svelte-h":!0}),L(K)!=="svelte-jutlff"&&(K.textContent=Ae),_e=y(ae),H=s(ae,"DIV",{class:!0});var le=x(H);z=s(le,"DIV",{});var ce=x(z);S=s(ce,"H2",{class:!0,"data-svelte-h":!0}),L(S)!=="svelte-s97ppb"&&(S.textContent=Me),xe=y(ce),B=s(ce,"H2",{class:!0});var Le=x(B);N.l(Le),Le.forEach(o),ce.forEach(o),be=y(le),Q=s(le,"DIV",{class:!0});var Oe=x(Q);for(let G=0;G<4;G+=1)te[G].l(Oe);Oe.forEach(o),le.forEach(o),ae.forEach(o),ye=y(_),T=s(_,"DIV",{});var X=x(T);F=s(X,"H3",{class:!0,"data-svelte-h":!0}),L(F)!=="svelte-aja9vu"&&(F.textContent=Ve),we=y(X),Y=s(X,"P",{"data-svelte-h":!0}),L(Y)!=="svelte-ze1i65"&&(Y.textContent=Ne),Ee=y(X),Z=s(X,"DIV",{class:!0});var $e=x(Z);for(let G=0;G<3;G+=1)re[G].l($e);$e.forEach(o),ke=y(X),P=s(X,"A",{href:!0,class:!0,"data-svelte-h":!0}),L(P)!=="svelte-a4wz9w"&&(P.textContent=Te),X.forEach(o),_.forEach(o),this.h()},h(){r(t,"name","description"),r(t,"content",me),r(i,"name","image"),r(i,"content",de),r(l,"name","author"),r(l,"content",c[1].join(", ")),r(h,"name","keywords"),r(h,"content",Et),r(d,"property","og:description"),r(d,"content",me),r(m,"property","og:image"),r(m,"content",de),r(g,"property","twitter:description"),r(g,"content",me),r(I,"property","twitter:image"),r(I,"content",de),r(u,"property","twitter:card"),r(u,"content","summary_large_image"),r(v,"class","grid grid-cols-1 md:grid-cols-4"),r(k,"class","divider"),r(V,"class","text-3xl"),r(J,"class","grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 my-8 gap-4"),r(ne,"class","divider"),r(q,"class","text-3xl"),r(S,"class","text-2xl text-center"),r(B,"class","text-center text-4xl"),r(Q,"class","grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-2 my-8"),r(H,"class","grid grid-cols-1 lg:grid-cols-2 my-8"),r(F,"class","text-2xl"),r(Z,"class","grid grid-cols-1 gap-4 lg:grid-cols-3 my-8"),r(P,"href","https://github.com/microsoft/onnxruntime-inference-examples"),r(P,"class","btn btn-secondary btn-block mt-auto"),r(f,"class","container mx-auto px-10 my-10")},m(a,D){e(document.head,t),e(document.head,i),e(document.head,l),e(document.head,h),e(document.head,d),e(document.head,m),e(document.head,g),e(document.head,I),e(document.head,u),O(a,p,D),at(E,a,D),O(a,C,D),O(a,f,D),e(f,v),e(f,M),e(f,k),e(f,R),e(f,A),e(A,V),e(A,pe),e(A,J);for(let _=0;_<4;_+=1)ee[_]&&ee[_].m(J,null);e(f,fe),e(f,ne),e(f,ve),e(f,U),e(U,q),e(U,ge),e(U,K),e(U,_e),e(U,H),e(H,z),e(z,S),e(z,xe),e(z,B),N.m(B,null),e(H,be),e(H,Q);for(let _=0;_<4;_+=1)te[_]&&te[_].m(Q,null);e(f,ye),e(f,T),e(T,F),e(T,we),e(T,Y),e(T,Ee),e(T,Z);for(let _=0;_<3;_+=1)re[_]&&re[_].m(Z,null);e(T,ke),e(T,P),se=!0},p(a,[D]){D&1&&Se(Re,Re=a[0])?(st(),Ie(N,1,1,ie),it(),N=ze(a),N.c(),Ce(N,1),N.m(B,null)):N.p(a,D)},i(a){se||(Ce(E.$$.fragment,a),Ce(N),se=!0)},o(a){Ie(E.$$.fragment,a),Ie(N),se=!1},d(a){a&&(o(p),o(C),o(f)),o(t),o(i),o(l),o(h),o(d),o(m),o(g),o(I),o(u),nt(E,a),ue(ee,a),N.d(a),ue(te,a),ue(re,a)}}}const bt="Generative AI",me="Learn about integrating the power of generative AI in your apps and services. Use state-of-the-art models for text generation, audio synthesis, and more to create innovative experiences.",yt="onnxruntimelogo",wt="ONNX Runtime Logo",Et="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 production ready, onnx runtime generative ai lower latency, onnx runtime generative ai higher throughput, onnx runtime generative ai testimonials, onnx runtime generative ai performance enhancements";function kt(c,t,i){let l=[""];const h=["Desktop","Mobile","Cloud"];let d=0;const m=setInterval(()=>{i(0,d=(d+1)%h.length)},3e3);return Qe(()=>{clearInterval(m)}
7),[d,l,h]}class Rt extends Ze{constructor(t){super(),et(this,t,kt,xt,Se,{})}}export{Rt as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.