Buckets:

rtrm's picture
download
raw
25.8 kB
import{s as zt,o as Ot,n as qt}from"../chunks/scheduler.b108d059.js";import{S as Kt,i as el,g as s,s as o,r as d,A as tl,h as a,f as l,c as i,j as St,u as m,x as r,k as Xt,y as ll,a as n,v as c,d as u,t as g,w as h}from"../chunks/index.008de539.js";import{T as Yt}from"../chunks/Tip.aeb15ab7.js";import{C as b}from"../chunks/CodeBlock.3968c746.js";import{H as fe,E as nl}from"../chunks/EditOnGithub.d1c48e3d.js";function ol(he){let p,y="The Vertex AI endpoint deployment via the <code>deploy</code> method may take from 15 to 25 minutes.";return{c(){p=s("p"),p.innerHTML=y},l(f){p=a(f,"P",{"data-svelte-h":!0}),r(p)!=="svelte-116se2o"&&(p.innerHTML=y)},m(f,M){n(f,p,M)},p:qt,d(f){f&&l(p)}}}function il(he){let p,y='📍 Find the complete example on GitHub <a href="https://github.com/huggingface/Google-Cloud-Containers/tree/merge/examples/vertex-ai/notebooks/deploy-embedding-on-vertex-ai" rel="nofollow">here</a>!';return{c(){p=s("p"),p.innerHTML=y},l(f){p=a(f,"P",{"data-svelte-h":!0}),r(p)!=="svelte-180vet1"&&(p.innerHTML=y)},m(f,M){n(f,p,M)},p:qt,d(f){f&&l(p)}}}function sl(he){let p,y,f,M,T,ye,$,ft="BGE, standing for BAAI General Embedding, is a collection of embedding models released by BAAI, which is an English base model for general embedding tasks ranked in the MTEB Leaderboard. Text Embeddings Inference (TEI) is a toolkit developed by Hugging Face for deploying and serving open source text embeddings and sequence classification models; enabling high-performance extraction for the most popular models, including FlagEmbedding, Ember, GTE and E5. And, Google Vertex AI is a Machine Learning (ML) platform that lets you train and deploy ML models and AI applications, and customize large language models (LLMs) for use in your AI-powered applications.",Me,x,bt='This example showcases how to deploy any supported embedding model, in this case <a href="https://huggingface.co/BAAI/bge-large-en-v1.5" rel="nofollow"><code>BAAI/bge-large-en-v1.5</code></a>, from the Hugging Face Hub on Vertex AI using the TEI DLC available in Google Cloud Platform (GCP) in both CPU and GPU instances.',we,I,yt='<img src="https://raw.githubusercontent.com/huggingface/Google-Cloud-Containers/merge/examples/vertex-ai/notebooks/deploy-embedding-on-vertex-ai/assets/model-in-hf-hub.png" alt="&#39;BAAI/bge-large-en-v1.5&#39; in the Hugging Face Hub"/>',ve,C,Te,J,Mt='First, you need to install <code>gcloud</code> in your local machine, which is the command-line tool for Google Cloud, following the instructions at <a href="https://cloud.google.com/sdk/docs/install" rel="nofollow">Cloud SDK Documentation - Install the gcloud CLI</a>.',$e,_,wt="Then, you also need to install the <code>google-cloud-aiplatform</code> Python SDK, required to programmatically create the Vertex AI model, register it, acreate the endpoint, and deploy it on Vertex AI.",xe,j,Ie,U,vt="Optionally, to ease the usage of the commands within this tutorial, you need to set the following environment variables for GCP:",Ce,Z,Je,L,Tt="Then you need to login into your GCP account and set the project ID to the one you want to use to register and deploy the models on Vertex AI.",_e,V,je,A,$t="Once you are logged in, you need to enable the necessary service APIs in GCP, such as the Vertex AI API, the Compute Engine API, and Google Container Registry related APIs.",Ue,G,Ze,k,Le,H,xt="Once everything is set up, you can already initialize the Vertex AI session via the <code>google-cloud-aiplatform</code> Python SDK as follows:",Ve,W,Ae,E,It="Then you can already “upload” the model i.e. register the model on Vertex AI. It is not an upload per se, since the model will be automatically downloaded from the Hugging Face Hub in the Hugging Face DLC for TEI on startup via the <code>MODEL_ID</code> environment variable, so what is uploaded is only the configuration, not the model weights.",Ge,B,Ct="Before going into the code, let’s quickly review the arguments provided to the <code>upload</code> method:",ke,R,Jt='<li><p><strong><code>display_name</code></strong> is the name that will be shown in the Vertex AI Model Registry.</p></li> <li><p><strong><code>serving_container_image_uri</code></strong> is the location of the Hugging Face DLC for TEI that will be used for serving the model.</p></li> <li><p><strong><code>serving_container_environment_variables</code></strong> are the environment variables that will be used during the container runtime, so these are aligned with the environment variables defined by <code>text-embeddings-inference</code>, which are analog to the <a href="https://huggingface.co/docs/text-embeddings-inference/en/cli_arguments" rel="nofollow"><code>text-embeddings-router</code> arguments</a>. Additionally, the Hugging Face DLCs for TEI also capture the <code>AIP_</code> environment variables from Vertex AI as in <a href="https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements" rel="nofollow">Vertex AI Documentation - Custom container requirements for prediction</a>.</p> <ul><li><code>MODEL_ID</code> is the identifier of the model in the Hugging Face Hub, to see all the TEI supported models please check <a href="https://huggingface.co/models?other=text-embeddings-inference&amp;sort=trending" rel="nofollow">https://huggingface.co/models?other=text-embeddings-inference&amp;sort=trending</a>.</li></ul></li> <li><p>(optional) <strong><code>serving_container_ports</code></strong> is the port where the Vertex AI endpoint will be exposed, by default 8080.</p></li>',He,Q,_t='For more information on the supported <code>aiplatform.Model.upload</code> arguments, check its Python reference at <a href="https://cloud.google.com/python/docs/reference/aiplatform/latest/google.cloud.aiplatform.Model#google_cloud_aiplatform_Model_upload" rel="nofollow">https://cloud.google.com/python/docs/reference/aiplatform/latest/google.cloud.aiplatform.Model#google_cloud_aiplatform_Model_upload</a>.',We,P,Ee,N,jt='<img src="https://raw.githubusercontent.com/huggingface/Google-Cloud-Containers/merge/examples/vertex-ai/notebooks/deploy-embedding-on-vertex-ai/assets/vertex-ai-model.png" alt="Model on Vertex AI Model Registry"/>',Be,D,Re,F,Ut="After the model is registered on Vertex AI, you need to define the endpoint that you want to deploy the model to, and then link the model deployment to that endpoint resource.",Qe,S,Zt="To do so, you need to call the method <code>aiplatform.Endpoint.create</code> to create a new Vertex AI endpoint resource (which is not linked to a model or anything usable yet).",Pe,X,Ne,Y,Lt='<img src="https://raw.githubusercontent.com/huggingface/Google-Cloud-Containers/merge/examples/vertex-ai/notebooks/deploy-embedding-on-vertex-ai/assets/vertex-ai-endpoint.png" alt="Vertex AI Endpoint created"/>',De,q,Vt="Now you can deploy the registered model in an endpoint on Vertex AI.",Fe,z,At="The <code>deploy</code> method will link the previously created endpoint resource with the model that contains the configuration of the serving container, and then, it will deploy the model on Vertex AI in the specified instance.",Se,O,Gt="Before going into the code, let’s quickly review the arguments provided to the <code>deploy</code> method:",Xe,K,kt='<li><strong><code>endpoint</code></strong> is the endpoint to deploy the model to, which is optional, and by default will be set to the model display name with the <code>_endpoint</code> suffix.</li> <li><strong><code>machine_type</code></strong>, <strong><code>accelerator_type</code></strong> and <strong><code>accelerator_count</code></strong> are arguments that define which instance to use, and additionally, the accelerator to use and the number of accelerators, respectively. The <code>machine_type</code> and the <code>accelerator_type</code> are tied together, so you will need to select an instance that supports the accelerator that you are using and vice-versa. More information about the different instances at <a href="https://cloud.google.com/compute/docs/gpus" rel="nofollow">Compute Engine Documentation - GPU machine types</a>, and about the <code>accelerator_type</code> naming at <a href="https://cloud.google.com/vertex-ai/docs/reference/rest/v1/MachineSpec" rel="nofollow">Vertex AI Documentation - MachineSpec</a>.</li>',Ye,ee,Ht='For more information on the supported <code>aiplatform.Model.deploy</code> arguments, you can check its Python reference at <a href="https://cloud.google.com/python/docs/reference/aiplatform/latest/google.cloud.aiplatform.Model#google_cloud_aiplatform_Model_deploy" rel="nofollow">https://cloud.google.com/python/docs/reference/aiplatform/latest/google.cloud.aiplatform.Model#google_cloud_aiplatform_Model_deploy</a>.',qe,te,ze,w,Oe,le,Wt='<img src="https://raw.githubusercontent.com/huggingface/Google-Cloud-Containers/merge/examples/vertex-ai/notebooks/deploy-embedding-on-vertex-ai/assets/vertex-ai-endpoint-run.png" alt="Vertex AI Endpoint running the model"/>',Ke,ne,Et='<img src="https://raw.githubusercontent.com/huggingface/Google-Cloud-Containers/merge/examples/vertex-ai/notebooks/deploy-embedding-on-vertex-ai/assets/vertex-ai-endpoint-logs.png" alt="Vertex AI Endpoint logs in Cloud Logging"/>',et,oe,tt,ie,Bt="Finally, you can run the online predictions on Vertex AI using the <code>predict</code> method, which will send the requests to the running endpoint in the <code>/predict</code> route specified within the container following Vertex AI I/O payload formatting.",lt,se,nt,ae,Rt='Which produces the following output (truncated for brevity, but original tensor length is 1024, which is the embedding dimension of <a href="https://huggingface.co/BAAI/bge-large-en-v1.5" rel="nofollow"><code>BAAI/bge-large-en-v1.5</code></a>):',ot,re,it,pe,Qt='<img src="https://raw.githubusercontent.com/huggingface/Google-Cloud-Containers/merge/examples/vertex-ai/notebooks/deploy-embedding-on-vertex-ai/assets/vertex-ai-endpoint-logs-predict.png" alt="Vertex AI Endpoint logs in Cloud Logging after predict"/>',st,de,at,me,Pt="Finally, you can release the resources programmatically within the same Python session as follows:",rt,ce,Nt="<li><code>deployed_model.undeploy_all</code> to undeploy the model from all the endpoints.</li> <li><code>deployed_model.delete</code> to delete the endpoint/s where the model was deployed gracefully after the <code>undeploy_all</code>.</li> <li><code>model.delete</code> to delete the model from the registry.</li>",pt,ue,dt,mt,ct,v,ut,ge,gt,be,ht;return T=new fe({props:{title:"Deploy Embedding Models with TEI DLC on Vertex AI",local:"deploy-embedding-models-with-tei-dlc-on-vertex-ai",headingTag:"h1"}}),C=new fe({props:{title:"Setup / Configuration",local:"setup--configuration",headingTag:"h2"}}),j=new b({props:{code:"IXBpcCUyMGluc3RhbGwlMjAtLXVwZ3JhZGUlMjAtLXF1aWV0JTIwZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0=",highlighted:"!pip install --upgrade --quiet google-cloud-aiplatform",wrap:!1}}),Z=new b({props:{code:"JTI1ZW52JTIwUFJPSkVDVF9JRCUzRHlvdXItcHJvamVjdC1pZCUwQSUyNWVudiUyMExPQ0FUSU9OJTNEeW91ci1sb2NhdGlvbiUwQSUyNWVudiUyMENPTlRBSU5FUl9VUkklM0R1cy1kb2NrZXIucGtnLmRldiUyRmRlZXBsZWFybmluZy1wbGF0Zm9ybS1yZWxlYXNlJTJGZ2NyLmlvJTJGaHVnZ2luZ2ZhY2UtdGV4dC1lbWJlZGRpbmdzLWluZmVyZW5jZS1jdTEyMi4xLTQudWJ1bnR1MjIwNA==",highlighted:`%env PROJECT_ID=your-project-<span class="hljs-built_in">id</span>
%env LOCATION=your-location
%env CONTAINER_URI=us-docker.pkg.dev/deeplearning-platform-release/gcr.io/huggingface-text-embeddings-inference-cu122<span class="hljs-number">.1</span>-<span class="hljs-number">4.</span>ubuntu2204`,wrap:!1}}),V=new b({props:{code:"IWdjbG91ZCUyMGF1dGglMjBsb2dpbiUwQSFnY2xvdWQlMjBhdXRoJTIwYXBwbGljYXRpb24tZGVmYXVsdCUyMGxvZ2luJTIwJTIwJTIzJTIwRm9yJTIwbG9jYWwlMjBkZXZlbG9wbWVudCUwQSFnY2xvdWQlMjBjb25maWclMjBzZXQlMjBwcm9qZWN0JTIwJTI0UFJPSkVDVF9JRA==",highlighted:`!gcloud auth login
!gcloud auth application-default login <span class="hljs-comment"># For local development</span>
!gcloud config <span class="hljs-built_in">set</span> project $PROJECT_ID`,wrap:!1}}),G=new b({props:{code:"IWdjbG91ZCUyMHNlcnZpY2VzJTIwZW5hYmxlJTIwYWlwbGF0Zm9ybS5nb29nbGVhcGlzLmNvbSUwQSFnY2xvdWQlMjBzZXJ2aWNlcyUyMGVuYWJsZSUyMGNvbXB1dGUuZ29vZ2xlYXBpcy5jb20lMEEhZ2Nsb3VkJTIwc2VydmljZXMlMjBlbmFibGUlMjBjb250YWluZXIuZ29vZ2xlYXBpcy5jb20lMEEhZ2Nsb3VkJTIwc2VydmljZXMlMjBlbmFibGUlMjBjb250YWluZXJyZWdpc3RyeS5nb29nbGVhcGlzLmNvbSUwQSFnY2xvdWQlMjBzZXJ2aWNlcyUyMGVuYWJsZSUyMGNvbnRhaW5lcmZpbGVzeXN0ZW0uZ29vZ2xlYXBpcy5jb20=",highlighted:`!gcloud services enable aiplatform.googleapis.com
!gcloud services enable compute.googleapis.com
!gcloud services enable container.googleapis.com
!gcloud services enable containerregistry.googleapis.com
!gcloud services enable containerfilesystem.googleapis.com`,wrap:!1}}),k=new fe({props:{title:"Register model on Vertex AI",local:"register-model-on-vertex-ai",headingTag:"h2"}}),W=new b({props:{code:"aW1wb3J0JTIwb3MlMEFmcm9tJTIwZ29vZ2xlLmNsb3VkJTIwaW1wb3J0JTIwYWlwbGF0Zm9ybSUwQSUwQWFpcGxhdGZvcm0uaW5pdCglMEElMjAlMjAlMjAlMjBwcm9qZWN0JTNEb3MuZ2V0ZW52KCUyMlBST0pFQ1RfSUQlMjIpJTJDJTBBJTIwJTIwJTIwJTIwbG9jYXRpb24lM0Rvcy5nZXRlbnYoJTIyTE9DQVRJT04lMjIpJTJDJTBBKQ==",highlighted:`<span class="hljs-keyword">import</span> os
<span class="hljs-keyword">from</span> google.cloud <span class="hljs-keyword">import</span> aiplatform
aiplatform.init(
project=os.getenv(<span class="hljs-string">&quot;PROJECT_ID&quot;</span>),
location=os.getenv(<span class="hljs-string">&quot;LOCATION&quot;</span>),
)`,wrap:!1}}),P=new b({props:{code:"bW9kZWwlMjAlM0QlMjBhaXBsYXRmb3JtLk1vZGVsLnVwbG9hZCglMEElMjAlMjAlMjAlMjBkaXNwbGF5X25hbWUlM0QlMjJCQUFJLS1iZ2UtbGFyZ2UtZW4tdjEuNSUyMiUyQyUwQSUyMCUyMCUyMCUyMHNlcnZpbmdfY29udGFpbmVyX2ltYWdlX3VyaSUzRG9zLmdldGVudiglMjJDT05UQUlORVJfVVJJJTIyKSUyQyUwQSUyMCUyMCUyMCUyMHNlcnZpbmdfY29udGFpbmVyX2Vudmlyb25tZW50X3ZhcmlhYmxlcyUzRCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMk1PREVMX0lEJTIyJTNBJTIwJTIyQkFBSSUyRmJnZS1sYXJnZS1lbi12MS41JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwc2VydmluZ19jb250YWluZXJfcG9ydHMlM0QlNUI4MDgwJTVEJTJDJTBBKSUwQW1vZGVsLndhaXQoKQ==",highlighted:`model = aiplatform.Model.upload(
display_name=<span class="hljs-string">&quot;BAAI--bge-large-en-v1.5&quot;</span>,
serving_container_image_uri=os.getenv(<span class="hljs-string">&quot;CONTAINER_URI&quot;</span>),
serving_container_environment_variables={
<span class="hljs-string">&quot;MODEL_ID&quot;</span>: <span class="hljs-string">&quot;BAAI/bge-large-en-v1.5&quot;</span>,
},
serving_container_ports=[<span class="hljs-number">8080</span>],
)
model.wait()`,wrap:!1}}),D=new fe({props:{title:"Deploy model on Vertex AI",local:"deploy-model-on-vertex-ai",headingTag:"h2"}}),X=new b({props:{code:"ZW5kcG9pbnQlMjAlM0QlMjBhaXBsYXRmb3JtLkVuZHBvaW50LmNyZWF0ZShkaXNwbGF5X25hbWUlM0QlMjJCQUFJLS1iZ2UtbGFyZ2UtZW4tdjEuNS1lbmRwb2ludCUyMik=",highlighted:'endpoint = aiplatform.Endpoint.create(display_name=<span class="hljs-string">&quot;BAAI--bge-large-en-v1.5-endpoint&quot;</span>)',wrap:!1}}),te=new b({props:{code:"ZGVwbG95ZWRfbW9kZWwlMjAlM0QlMjBtb2RlbC5kZXBsb3koJTBBJTIwJTIwJTIwJTIwZW5kcG9pbnQlM0RlbmRwb2ludCUyQyUwQSUyMCUyMCUyMCUyMG1hY2hpbmVfdHlwZSUzRCUyMmcyLXN0YW5kYXJkLTQlMjIlMkMlMEElMjAlMjAlMjAlMjBhY2NlbGVyYXRvcl90eXBlJTNEJTIyTlZJRElBX0w0JTIyJTJDJTBBJTIwJTIwJTIwJTIwYWNjZWxlcmF0b3JfY291bnQlM0QxJTJDJTBBJTIwJTIwJTIwJTIwc3luYyUzRFRydWUlMkMlMEEp",highlighted:`deployed_model = model.deploy(
endpoint=endpoint,
machine_type=<span class="hljs-string">&quot;g2-standard-4&quot;</span>,
accelerator_type=<span class="hljs-string">&quot;NVIDIA_L4&quot;</span>,
accelerator_count=<span class="hljs-number">1</span>,
sync=<span class="hljs-literal">True</span>,
)`,wrap:!1}}),w=new Yt({props:{warning:!0,$$slots:{default:[ol]},$$scope:{ctx:he}}}),oe=new fe({props:{title:"Online predictions on Vertex AI",local:"online-predictions-on-vertex-ai",headingTag:"h2"}}),se=new b({props:{code:"b3V0cHV0JTIwJTNEJTIwZGVwbG95ZWRfbW9kZWwucHJlZGljdChpbnN0YW5jZXMlM0QlNUIlN0IlMjJpbnB1dHMlMjIlM0ElMjAlMjJXaGF0JTIwaXMlMjBEZWVwJTIwTGVhcm5pbmclM0YlMjIlN0QlNUQpJTBBcHJpbnQob3V0cHV0LnByZWRpY3Rpb25zJTVCMCU1RCU1QjAlNUQlNUIlM0E1JTVEJTJDJTIwbGVuKG91dHB1dC5wcmVkaWN0aW9ucyU1QjAlNUQlNUIwJTVEKQ==",highlighted:`output = deployed_model.predict(instances=[{<span class="hljs-string">&quot;inputs&quot;</span>: <span class="hljs-string">&quot;What is Deep Learning?&quot;</span>}])
<span class="hljs-built_in">print</span>(output.predictions[<span class="hljs-number">0</span>][<span class="hljs-number">0</span>][:<span class="hljs-number">5</span>], <span class="hljs-built_in">len</span>(output.predictions[<span class="hljs-number">0</span>][<span class="hljs-number">0</span>])`,wrap:!1}}),re=new b({props:{code:"KCU1QjAuMDE4MTA4ODI2JTJDJTIwMC4wMDI5OTkzMTQ2JTJDJTIwLTAuMDQ5ODQ3NjclMkMlMjAtMC4wMzUwODE4MTUlMkMlMjAwLjAxNDIxMDg0NSU1RCUyQyUyMDEwMjQp",highlighted:'([<span class="hljs-number">0.018108826</span>, <span class="hljs-number">0</span>.<span class="hljs-number">0029993146</span>, -<span class="hljs-number">0.04984767</span>, -<span class="hljs-number">0</span>.<span class="hljs-number">035081815</span>, <span class="hljs-number">0.014210845</span>], <span class="hljs-number">1024</span>)',wrap:!1}}),de=new fe({props:{title:"Resource clean-up",local:"resource-clean-up",headingTag:"h2"}}),ue=new b({props:{code:"ZGVwbG95ZWRfbW9kZWwudW5kZXBsb3lfYWxsKCklMEFkZXBsb3llZF9tb2RlbC5kZWxldGUoKSUwQW1vZGVsLmRlbGV0ZSgp",highlighted:`deployed_model.undeploy_all()
deployed_model.delete()
model.delete()`,wrap:!1}}),v=new Yt({props:{$$slots:{default:[il]},$$scope:{ctx:he}}}),ge=new nl({props:{source:"https://github.com/huggingface/Google-Cloud-Containers/blob/main/docs/source/examples/vertex-ai-notebooks-deploy-embedding-on-vertex-ai.mdx"}}),{c(){p=s("meta"),y=o(),f=s("p"),M=o(),d(T.$$.fragment),ye=o(),$=s("p"),$.textContent=ft,Me=o(),x=s("p"),x.innerHTML=bt,we=o(),I=s("p"),I.innerHTML=yt,ve=o(),d(C.$$.fragment),Te=o(),J=s("p"),J.innerHTML=Mt,$e=o(),_=s("p"),_.innerHTML=wt,xe=o(),d(j.$$.fragment),Ie=o(),U=s("p"),U.textContent=vt,Ce=o(),d(Z.$$.fragment),Je=o(),L=s("p"),L.textContent=Tt,_e=o(),d(V.$$.fragment),je=o(),A=s("p"),A.textContent=$t,Ue=o(),d(G.$$.fragment),Ze=o(),d(k.$$.fragment),Le=o(),H=s("p"),H.innerHTML=xt,Ve=o(),d(W.$$.fragment),Ae=o(),E=s("p"),E.innerHTML=It,Ge=o(),B=s("p"),B.innerHTML=Ct,ke=o(),R=s("ul"),R.innerHTML=Jt,He=o(),Q=s("p"),Q.innerHTML=_t,We=o(),d(P.$$.fragment),Ee=o(),N=s("p"),N.innerHTML=jt,Be=o(),d(D.$$.fragment),Re=o(),F=s("p"),F.textContent=Ut,Qe=o(),S=s("p"),S.innerHTML=Zt,Pe=o(),d(X.$$.fragment),Ne=o(),Y=s("p"),Y.innerHTML=Lt,De=o(),q=s("p"),q.textContent=Vt,Fe=o(),z=s("p"),z.innerHTML=At,Se=o(),O=s("p"),O.innerHTML=Gt,Xe=o(),K=s("ul"),K.innerHTML=kt,Ye=o(),ee=s("p"),ee.innerHTML=Ht,qe=o(),d(te.$$.fragment),ze=o(),d(w.$$.fragment),Oe=o(),le=s("p"),le.innerHTML=Wt,Ke=o(),ne=s("p"),ne.innerHTML=Et,et=o(),d(oe.$$.fragment),tt=o(),ie=s("p"),ie.innerHTML=Bt,lt=o(),d(se.$$.fragment),nt=o(),ae=s("p"),ae.innerHTML=Rt,ot=o(),d(re.$$.fragment),it=o(),pe=s("p"),pe.innerHTML=Qt,st=o(),d(de.$$.fragment),at=o(),me=s("p"),me.textContent=Pt,rt=o(),ce=s("ul"),ce.innerHTML=Nt,pt=o(),d(ue.$$.fragment),dt=o(),mt=s("hr"),ct=o(),d(v.$$.fragment),ut=o(),d(ge.$$.fragment),gt=o(),be=s("p"),this.h()},l(e){const t=tl("svelte-u9bgzb",document.head);p=a(t,"META",{name:!0,content:!0}),t.forEach(l),y=i(e),f=a(e,"P",{}),St(f).forEach(l),M=i(e),m(T.$$.fragment,e),ye=i(e),$=a(e,"P",{"data-svelte-h":!0}),r($)!=="svelte-1b2ocgc"&&($.textContent=ft),Me=i(e),x=a(e,"P",{"data-svelte-h":!0}),r(x)!=="svelte-6mz645"&&(x.innerHTML=bt),we=i(e),I=a(e,"P",{"data-svelte-h":!0}),r(I)!=="svelte-s9hzc9"&&(I.innerHTML=yt),ve=i(e),m(C.$$.fragment,e),Te=i(e),J=a(e,"P",{"data-svelte-h":!0}),r(J)!=="svelte-1o67gfb"&&(J.innerHTML=Mt),$e=i(e),_=a(e,"P",{"data-svelte-h":!0}),r(_)!=="svelte-1ebrquh"&&(_.innerHTML=wt),xe=i(e),m(j.$$.fragment,e),Ie=i(e),U=a(e,"P",{"data-svelte-h":!0}),r(U)!=="svelte-1i8n6rq"&&(U.textContent=vt),Ce=i(e),m(Z.$$.fragment,e),Je=i(e),L=a(e,"P",{"data-svelte-h":!0}),r(L)!=="svelte-15nvzfz"&&(L.textContent=Tt),_e=i(e),m(V.$$.fragment,e),je=i(e),A=a(e,"P",{"data-svelte-h":!0}),r(A)!=="svelte-1nm8o2l"&&(A.textContent=$t),Ue=i(e),m(G.$$.fragment,e),Ze=i(e),m(k.$$.fragment,e),Le=i(e),H=a(e,"P",{"data-svelte-h":!0}),r(H)!=="svelte-14aynbe"&&(H.innerHTML=xt),Ve=i(e),m(W.$$.fragment,e),Ae=i(e),E=a(e,"P",{"data-svelte-h":!0}),r(E)!=="svelte-n76s0j"&&(E.innerHTML=It),Ge=i(e),B=a(e,"P",{"data-svelte-h":!0}),r(B)!=="svelte-zklutt"&&(B.innerHTML=Ct),ke=i(e),R=a(e,"UL",{"data-svelte-h":!0}),r(R)!=="svelte-t6lsyn"&&(R.innerHTML=Jt),He=i(e),Q=a(e,"P",{"data-svelte-h":!0}),r(Q)!=="svelte-1flszm1"&&(Q.innerHTML=_t),We=i(e),m(P.$$.fragment,e),Ee=i(e),N=a(e,"P",{"data-svelte-h":!0}),r(N)!=="svelte-1c8gv06"&&(N.innerHTML=jt),Be=i(e),m(D.$$.fragment,e),Re=i(e),F=a(e,"P",{"data-svelte-h":!0}),r(F)!=="svelte-2nwexf"&&(F.textContent=Ut),Qe=i(e),S=a(e,"P",{"data-svelte-h":!0}),r(S)!=="svelte-1lovlvw"&&(S.innerHTML=Zt),Pe=i(e),m(X.$$.fragment,e),Ne=i(e),Y=a(e,"P",{"data-svelte-h":!0}),r(Y)!=="svelte-1oo6dh5"&&(Y.innerHTML=Lt),De=i(e),q=a(e,"P",{"data-svelte-h":!0}),r(q)!=="svelte-it668a"&&(q.textContent=Vt),Fe=i(e),z=a(e,"P",{"data-svelte-h":!0}),r(z)!=="svelte-njbdvc"&&(z.innerHTML=At),Se=i(e),O=a(e,"P",{"data-svelte-h":!0}),r(O)!=="svelte-1ezlr9j"&&(O.innerHTML=Gt),Xe=i(e),K=a(e,"UL",{"data-svelte-h":!0}),r(K)!=="svelte-1mv29i5"&&(K.innerHTML=kt),Ye=i(e),ee=a(e,"P",{"data-svelte-h":!0}),r(ee)!=="svelte-9p37qa"&&(ee.innerHTML=Ht),qe=i(e),m(te.$$.fragment,e),ze=i(e),m(w.$$.fragment,e),Oe=i(e),le=a(e,"P",{"data-svelte-h":!0}),r(le)!=="svelte-22t0a8"&&(le.innerHTML=Wt),Ke=i(e),ne=a(e,"P",{"data-svelte-h":!0}),r(ne)!=="svelte-2icvwf"&&(ne.innerHTML=Et),et=i(e),m(oe.$$.fragment,e),tt=i(e),ie=a(e,"P",{"data-svelte-h":!0}),r(ie)!=="svelte-166ya0u"&&(ie.innerHTML=Bt),lt=i(e),m(se.$$.fragment,e),nt=i(e),ae=a(e,"P",{"data-svelte-h":!0}),r(ae)!=="svelte-1kw92uk"&&(ae.innerHTML=Rt),ot=i(e),m(re.$$.fragment,e),it=i(e),pe=a(e,"P",{"data-svelte-h":!0}),r(pe)!=="svelte-1ulh9sm"&&(pe.innerHTML=Qt),st=i(e),m(de.$$.fragment,e),at=i(e),me=a(e,"P",{"data-svelte-h":!0}),r(me)!=="svelte-1a8svyd"&&(me.textContent=Pt),rt=i(e),ce=a(e,"UL",{"data-svelte-h":!0}),r(ce)!=="svelte-8vrgpw"&&(ce.innerHTML=Nt),pt=i(e),m(ue.$$.fragment,e),dt=i(e),mt=a(e,"HR",{}),ct=i(e),m(v.$$.fragment,e),ut=i(e),m(ge.$$.fragment,e),gt=i(e),be=a(e,"P",{}),St(be).forEach(l),this.h()},h(){Xt(p,"name","hf:doc:metadata"),Xt(p,"content",al)},m(e,t){ll(document.head,p),n(e,y,t),n(e,f,t),n(e,M,t),c(T,e,t),n(e,ye,t),n(e,$,t),n(e,Me,t),n(e,x,t),n(e,we,t),n(e,I,t),n(e,ve,t),c(C,e,t),n(e,Te,t),n(e,J,t),n(e,$e,t),n(e,_,t),n(e,xe,t),c(j,e,t),n(e,Ie,t),n(e,U,t),n(e,Ce,t),c(Z,e,t),n(e,Je,t),n(e,L,t),n(e,_e,t),c(V,e,t),n(e,je,t),n(e,A,t),n(e,Ue,t),c(G,e,t),n(e,Ze,t),c(k,e,t),n(e,Le,t),n(e,H,t),n(e,Ve,t),c(W,e,t),n(e,Ae,t),n(e,E,t),n(e,Ge,t),n(e,B,t),n(e,ke,t),n(e,R,t),n(e,He,t),n(e,Q,t),n(e,We,t),c(P,e,t),n(e,Ee,t),n(e,N,t),n(e,Be,t),c(D,e,t),n(e,Re,t),n(e,F,t),n(e,Qe,t),n(e,S,t),n(e,Pe,t),c(X,e,t),n(e,Ne,t),n(e,Y,t),n(e,De,t),n(e,q,t),n(e,Fe,t),n(e,z,t),n(e,Se,t),n(e,O,t),n(e,Xe,t),n(e,K,t),n(e,Ye,t),n(e,ee,t),n(e,qe,t),c(te,e,t),n(e,ze,t),c(w,e,t),n(e,Oe,t),n(e,le,t),n(e,Ke,t),n(e,ne,t),n(e,et,t),c(oe,e,t),n(e,tt,t),n(e,ie,t),n(e,lt,t),c(se,e,t),n(e,nt,t),n(e,ae,t),n(e,ot,t),c(re,e,t),n(e,it,t),n(e,pe,t),n(e,st,t),c(de,e,t),n(e,at,t),n(e,me,t),n(e,rt,t),n(e,ce,t),n(e,pt,t),c(ue,e,t),n(e,dt,t),n(e,mt,t),n(e,ct,t),c(v,e,t),n(e,ut,t),c(ge,e,t),n(e,gt,t),n(e,be,t),ht=!0},p(e,[t]){const Dt={};t&2&&(Dt.$$scope={dirty:t,ctx:e}),w.$set(Dt);const Ft={};t&2&&(Ft.$$scope={dirty:t,ctx:e}),v.$set(Ft)},i(e){ht||(u(T.$$.fragment,e),u(C.$$.fragment,e),u(j.$$.fragment,e),u(Z.$$.fragment,e),u(V.$$.fragment,e),u(G.$$.fragment,e),u(k.$$.fragment,e),u(W.$$.fragment,e),u(P.$$.fragment,e),u(D.$$.fragment,e),u(X.$$.fragment,e),u(te.$$.fragment,e),u(w.$$.fragment,e),u(oe.$$.fragment,e),u(se.$$.fragment,e),u(re.$$.fragment,e),u(de.$$.fragment,e),u(ue.$$.fragment,e),u(v.$$.fragment,e),u(ge.$$.fragment,e),ht=!0)},o(e){g(T.$$.fragment,e),g(C.$$.fragment,e),g(j.$$.fragment,e),g(Z.$$.fragment,e),g(V.$$.fragment,e),g(G.$$.fragment,e),g(k.$$.fragment,e),g(W.$$.fragment,e),g(P.$$.fragment,e),g(D.$$.fragment,e),g(X.$$.fragment,e),g(te.$$.fragment,e),g(w.$$.fragment,e),g(oe.$$.fragment,e),g(se.$$.fragment,e),g(re.$$.fragment,e),g(de.$$.fragment,e),g(ue.$$.fragment,e),g(v.$$.fragment,e),g(ge.$$.fragment,e),ht=!1},d(e){e&&(l(y),l(f),l(M),l(ye),l($),l(Me),l(x),l(we),l(I),l(ve),l(Te),l(J),l($e),l(_),l(xe),l(Ie),l(U),l(Ce),l(Je),l(L),l(_e),l(je),l(A),l(Ue),l(Ze),l(Le),l(H),l(Ve),l(Ae),l(E),l(Ge),l(B),l(ke),l(R),l(He),l(Q),l(We),l(Ee),l(N),l(Be),l(Re),l(F),l(Qe),l(S),l(Pe),l(Ne),l(Y),l(De),l(q),l(Fe),l(z),l(Se),l(O),l(Xe),l(K),l(Ye),l(ee),l(qe),l(ze),l(Oe),l(le),l(Ke),l(ne),l(et),l(tt),l(ie),l(lt),l(nt),l(ae),l(ot),l(it),l(pe),l(st),l(at),l(me),l(rt),l(ce),l(pt),l(dt),l(mt),l(ct),l(ut),l(gt),l(be)),l(p),h(T,e),h(C,e),h(j,e),h(Z,e),h(V,e),h(G,e),h(k,e),h(W,e),h(P,e),h(D,e),h(X,e),h(te,e),h(w,e),h(oe,e),h(se,e),h(re,e),h(de,e),h(ue,e),h(v,e),h(ge,e)}}}const al='{"title":"Deploy Embedding Models with TEI DLC on Vertex AI","local":"deploy-embedding-models-with-tei-dlc-on-vertex-ai","sections":[{"title":"Setup / Configuration","local":"setup--configuration","sections":[],"depth":2},{"title":"Register model on Vertex AI","local":"register-model-on-vertex-ai","sections":[],"depth":2},{"title":"Deploy model on Vertex AI","local":"deploy-model-on-vertex-ai","sections":[],"depth":2},{"title":"Online predictions on Vertex AI","local":"online-predictions-on-vertex-ai","sections":[],"depth":2},{"title":"Resource clean-up","local":"resource-clean-up","sections":[],"depth":2}],"depth":1}';function rl(he){return Ot(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class gl extends Kt{constructor(p){super(),el(this,p,rl,sl,zt,{})}}export{gl as component};

Xet Storage Details

Size:
25.8 kB
·
Xet hash:
01bef9188335ca6bdd327f6836d4d3584cc5587b112bb6d341454a4e4f661aa0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.