You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/README.md
+10-5
Original file line number
Diff line number
Diff line change
@@ -7,20 +7,26 @@ The current manifests rely on Envoy Gateway [v1.2.1](https://gateway.envoyproxy.
7
7
8
8
1.**Deploy Sample vLLM Application**
9
9
10
-
A sample vLLM deployment with the proper protocol to work with LLM Instance Gateway can be found [here](https://github.com/kubernetes-sigs/llm-instance-gateway/tree/main/examples/poc/manifests/vllm/vllm-lora-deployment.yaml#L18).
10
+
Create a Hugging Face secret to download the model [meta-llama/Llama-2-7b-hf](https://huggingface.co/meta-llama/Llama-2-7b-hf). Ensure that the token grants access to this model.
11
+
Deploy a sample vLLM deployment with the proper protocol to work with the LLM Instance Gateway.
12
+
```bash
13
+
kubectl create secret generic hf-token --from-literal=token=$HF_TOKEN# Your Hugging Face Token with access to Llama2
You can find a sample InferenceModel and InferencePool configuration, based on the vLLM deployments mentioned above, [here](https://github.com/kubernetes-sigs/llm-instance-gateway/tree/main/examples/poc/manifests/inferencepool-with-model.yaml).
15
-
19
+
Deploy a sample InferenceModel and InferencePool configuration based on the vLLM deployments mentioned above.
1.**Update Envoy Gateway Config to enable Patch Policy**
18
25
19
26
Our custom LLM Gateway ext-proc is patched into the existing envoy gateway via `EnvoyPatchPolicy`. To enable this feature, we must extend the Envoy Gateway config map. To do this, simply run:
Additionally, if you would like to enable the admin interface, you can uncomment the admin lines and run this again.
26
32
@@ -54,7 +60,6 @@ The current manifests rely on Envoy Gateway [v1.2.1](https://gateway.envoyproxy.
54
60
}'
55
61
```
56
62
57
-
58
63
## Scheduling Package in Ext Proc
59
64
The scheduling package implements request scheduling algorithms for load balancing requests across backend pods in an inference gateway. The scheduler ensures efficient resource utilization while maintaining low latency and prioritizing critical requests. It applies a series of filters based on metrics and heuristics to select the best pod for a given request.
0 commit comments