import{s as pe,n as de,o as fe}from"../chunks/scheduler.a045fce0.js";import{S as ce,i as ge,e as s,s as a,c as C,h as he,a as o,d as n,b as i,f as me,g as P,j as r,k as ue,l as ve,m as l,n as H,t as k,o as q,p as S}from"../chunks/index.c7f31426.js";import{H as X,E as be}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.16774317.js";function $e(Y){let m,A,x,E,u,U,p,Z=`vLLM is a high-performance, memory-efficient inference engine for open-source LLMs. It delivers efficient scheduling, KV-cache handling,
batching, and decoding—all wrapped in a production-ready server. For most use cases, TGI, vLLM, and SGLang will be equivalently good options.`,z,d,ee="<strong>Core features</strong>:",G,f,te="<li><strong>PagedAttention for memory efficiency</strong></li> <li><strong>Continuous batching</strong></li> <li><strong>Optimized CUDA/HIP execution</strong></li> <li><strong>Speculative decoding &amp; chunked prefill</strong></li> <li><strong>Multi-backend and hardware support</strong>: Runs across NVIDIA, AMD, and AWS Neuron to name a few</li>",I,c,N,g,ne='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/vllm/vllm_config.png" alt="config"/>',D,h,le=`<li><strong>Max Number of Sequences</strong>: The maximum number of sequences (requests) that can be processed together in a single batch. Controls
the batch size by sequence count, affecting throughput and memory usage. For example, if max_num_seqs=8, up to 8 different prompts can
be handled at once, regardless of their individual lengths, as long as the total token count also fits within the Max Number of Batched Tokens.</li> <li><strong>Max Number of Batched Tokens</strong>: The maximum total number of tokens (summed across all sequences) that can be processed in a single
batch. Limits batch size by token count, balancing throughput and GPU memory allocation.</li> <li><strong>Tensor Parallel Size</strong>: The number of GPUs across which model weights are split within each layer. Increasing this allows larger
models to run and frees up GPU memory for KV cache, but may introduce synchronization overhead.</li> <li><strong>KV Cache DType</strong>: the data type used for storing the key-value cache during generation. Options include “auto”, “fp8”, “fp8_e5m2”,
and “fp8_e4m3”. Using lower precision types can reduce memory usage but may slightly impact generation quality.</li>`,F,v,ae=`For more advanced configuration you can pass any of the <a href="https://docs.vllm.ai/en/stable/api/vllm/engine/arg_utils.html#vllm.engine.arg_utils.EngineArgs" rel="nofollow">Engine Arguments that vLLM supports</a>
as container arguments. For example changing the <code>enable_lora</code> to <code>true</code> would look like this:`,R,b,ie='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/vllm/vllm-advanced.png" alt="vllm-advanced"/>',V,$,j,L,se=`vLLM has wide support for large language models and embedding models. We recommend reading the
<a href="https://docs.vllm.ai/en/stable/models/supported_models.html?h=supported+models" rel="nofollow">supported models</a> section in the vLLM documentation for a full list.`,K,_,oe=`vLLM also supports model implementations that are available in Transformers. Currently not all models work but support is planned for most
decoder language models are supported, and vision language models.`,O,M,W,T,re='We also recommend reading the <a href="https://docs.vllm.ai/en/stable/" rel="nofollow">vLLM documentation</a> for more in-depth information.',B,w,J,y,Q;return u=new X({props:{title:"vLLM",local:"vllm",headingTag:"h1"}}),c=new X({props:{title:"Configuration",local:"configuration",headingTag:"h2"}}),$=new X({props:{title:"Supported models",local:"supported-models",headingTag:"h2"}}),M=new X({props:{title:"References",local:"references",headingTag:"h2"}}),w=new be({props:{source:"https://github.com/huggingface/hf-endpoints-documentation/blob/main/docs/source/engines/vllm.md"}}),{c(){m=s("meta"),A=a(),x=s("p"),E=a(),C(u.$$.fragment),U=a(),p=s("p"),p.textContent=Z,z=a(),d=s("p"),d.innerHTML=ee,G=a(),f=s("ul"),f.innerHTML=te,I=a(),C(c.$$.fragment),N=a(),g=s("p"),g.innerHTML=ne,D=a(),h=s("ul"),h.innerHTML=le,F=a(),v=s("p"),v.innerHTML=ae,R=a(),b=s("p"),b.innerHTML=ie,V=a(),C($.$$.fragment),j=a(),L=s("p"),L.innerHTML=se,K=a(),_=s("p"),_.textContent=oe,O=a(),C(M.$$.fragment),W=a(),T=s("p"),T.innerHTML=re,B=a(),C(w.$$.fragment),J=a(),y=s("p"),this.h()},l(e){const t=he("svelte-u9bgzb",document.head);m=o(t,"META",{name:!0,content:!0}),t.forEach(n),A=i(e),x=o(e,"P",{}),me(x).forEach(n),E=i(e),P(u.$$.fragment,e),U=i(e),p=o(e,"P",{"data-svelte-h":!0}),r(p)!=="svelte-3mges0"&&(p.textContent=Z),z=i(e),d=o(e,"P",{"data-svelte-h":!0}),r(d)!=="svelte-wxr29x"&&(d.innerHTML=ee),G=i(e),f=o(e,"UL",{"data-svelte-h":!0}),r(f)!=="svelte-j2rm7r"&&(f.innerHTML=te),I=i(e),P(c.$$.fragment,e),N=i(e),g=o(e,"P",{"data-svelte-h":!0}),r(g)!=="svelte-mut1up"&&(g.innerHTML=ne),D=i(e),h=o(e,"UL",{"data-svelte-h":!0}),r(h)!=="svelte-q07o07"&&(h.innerHTML=le),F=i(e),v=o(e,"P",{"data-svelte-h":!0}),r(v)!=="svelte-ylkbud"&&(v.innerHTML=ae),R=i(e),b=o(e,"P",{"data-svelte-h":!0}),r(b)!=="svelte-lhbgtj"&&(b.innerHTML=ie),V=i(e),P($.$$.fragment,e),j=i(e),L=o(e,"P",{"data-svelte-h":!0}),r(L)!=="svelte-1ebg7ne"&&(L.innerHTML=se),K=i(e),_=o(e,"P",{"data-svelte-h":!0}),r(_)!=="svelte-3apbod"&&(_.textContent=oe),O=i(e),P(M.$$.fragment,e),W=i(e),T=o(e,"P",{"data-svelte-h":!0}),r(T)!=="svelte-1lr4w3"&&(T.innerHTML=re),B=i(e),P(w.$$.fragment,e),J=i(e),y=o(e,"P",{}),me(y).forEach(n),this.h()},h(){ue(m,"name","hf:doc:metadata"),ue(m,"content",Le)},m(e,t){ve(document.head,m),l(e,A,t),l(e,x,t),l(e,E,t),H(u,e,t),l(e,U,t),l(e,p,t),l(e,z,t),l(e,d,t),l(e,G,t),l(e,f,t),l(e,I,t),H(c,e,t),l(e,N,t),l(e,g,t),l(e,D,t),l(e,h,t),l(e,F,t),l(e,v,t),l(e,R,t),l(e,b,t),l(e,V,t),H($,e,t),l(e,j,t),l(e,L,t),l(e,K,t),l(e,_,t),l(e,O,t),H(M,e,t),l(e,W,t),l(e,T,t),l(e,B,t),H(w,e,t),l(e,J,t),l(e,y,t),Q=!0},p:de,i(e){Q||(k(u.$$.fragment,e),k(c.$$.fragment,e),k($.$$.fragment,e),k(M.$$.fragment,e),k(w.$$.fragment,e),Q=!0)},o(e){q(u.$$.fragment,e),q(c.$$.fragment,e),q($.$$.fragment,e),q(M.$$.fragment,e),q(w.$$.fragment,e),Q=!1},d(e){e&&(n(A),n(x),n(E),n(U),n(p),n(z),n(d),n(G),n(f),n(I),n(N),n(g),n(D),n(h),n(F),n(v),n(R),n(b),n(V),n(j),n(L),n(K),n(_),n(O),n(W),n(T),n(B),n(J),n(y)),n(m),S(u,e),S(c,e),S($,e),S(M,e),S(w,e)}}}const Le='{"title":"vLLM","local":"vllm","sections":[{"title":"Configuration","local":"configuration","sections":[],"depth":2},{"title":"Supported models","local":"supported-models","sections":[],"depth":2},{"title":"References","local":"references","sections":[],"depth":2}],"depth":1}';function _e(Y){return fe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class xe extends ce{constructor(m){super(),ge(this,m,_e,$e,pe,{})}}export{xe as component};
