From f8a635923b2644fa7c33feac4b9dceb34a43da7d Mon Sep 17 00:00:00 2001 From: arpannookala-12 Date: Tue, 21 Apr 2026 14:46:06 -0500 Subject: [PATCH 1/3] feat: add Granite-3.3-8b-Instruct model card and deployment guide for Dell EI Signed-off-by: arpannookala-12 --- .../Granite-3.3-8b-Instruct/deployment.md | 77 +++++++++++++++++++ .../Granite-3.3-8b-Instruct/model-card.md | 60 +++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 third_party/Dell/model-deployment/Granite-3.3-8b-Instruct/deployment.md create mode 100644 third_party/Dell/model-deployment/Granite-3.3-8b-Instruct/model-card.md diff --git a/third_party/Dell/model-deployment/Granite-3.3-8b-Instruct/deployment.md b/third_party/Dell/model-deployment/Granite-3.3-8b-Instruct/deployment.md new file mode 100644 index 00000000..5d440976 --- /dev/null +++ b/third_party/Dell/model-deployment/Granite-3.3-8b-Instruct/deployment.md @@ -0,0 +1,77 @@ + +# Deployed with EI Version-1.3.1 + +## Step 1: Set Environment Variables + +```bash +# Export Hugging Face token +export HUGGING_FACE_HUB_TOKEN="your_token_here" + +# Set your base URL and API token +export BASE_HOST="your-cluster-url" + +#generate keyclock token +export BASE_URL="https://your-cluster-url" +export KEYCLOAK_CLIENT_ID=api +export KEYCLOAK_CLIENT_SECRET="your keyclock client secret" +export TOKEN=$(curl -k -X POST $BASE_URL/token -H 'Content-Type: application/x-www-form-urlencoded' -d "grant_type=client_credentials&client_id=${KEYCLOAK_CLIENT_ID}&client_secret=${KEYCLOAK_CLIENT_SECRET}" | jq -r .access_token) +``` + +## Step 2: Deploy Granite-3.3-8b-Instruct Model + +```bash +helm install vllm-granite-3-3-instruct-cpu ./core/helm-charts/vllm \ + --values ./core/helm-charts/vllm/xeon-values.yaml \ + --set LLM_MODEL_ID="ibm-granite/granite-3.3-8b-instruct" \ + --set global.HUGGINGFACEHUB_API_TOKEN="$HUGGING_FACE_HUB_TOKEN" \ + --set ingress.enabled=false \ + --set ingress.host="${BASE_HOST}" \ + --set oidc.client_id="$KEYCLOAK_CLIENT_ID" \ + --set oidc.client_secret="$KEYCLOAK_CLIENT_SECRET" \ + --set apisix.enabled=true \ + --set tensor_parallel_size="1" \ + --set pipeline_parallel_size="1" +``` + +## Step 3: Test the Deployed Model + +```bash +curl -k ${BASE_URL}/granite-3.3-8b-instruct-vllmcpu/v1/completions \ + -X POST \ + -H "Content-Type: application/json" \ + -H "Authorization: Bearer $TOKEN" \ + -d '{ + "model": "ibm-granite/granite-3.3-8b-instruct", + "prompt": "What is Deep Learning?", + "max_tokens": 25, + "temperature": 0 + }' +``` + +## To undeploy the model + +```bash +helm uninstall vllm-granite-3-3-instruct-cpu +``` + +## Parameters + +| Parameter | Description | +| --------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `--set LLM_MODEL_ID="ibm-granite/granite-3.3-8b-instruct"`| Defines the target model from **Hugging Face** to deploy. | +| `--set global.HUGGINGFACEHUB_API_TOKEN="..."` | Authenticates access to gated or private Hugging Face models. Replace with your own secure token. | +| `--set ingress.enabled=true` | Enables Kubernetes **Ingress** to expose the model service externally. | +| `--set ingress.host="replace-ingress"` | Public hostname or FQDN for the inference endpoint (maps to your Ingress controller IP). | +| `--set ingress.secretname="replace-secret"` | Kubernetes **TLS Secret** used for HTTPS termination at the ingress layer. | + + + + + + + + + + + + diff --git a/third_party/Dell/model-deployment/Granite-3.3-8b-Instruct/model-card.md b/third_party/Dell/model-deployment/Granite-3.3-8b-Instruct/model-card.md new file mode 100644 index 00000000..39ffaa2b --- /dev/null +++ b/third_party/Dell/model-deployment/Granite-3.3-8b-Instruct/model-card.md @@ -0,0 +1,60 @@ +# granite-3.3-8b-instruct + +This model uses granite-3.3-8b-instruct, a large-scale instruction-tuned language model developed by IBM as part of the Granite model family. It is optimized for enterprise-grade instruction following, reasoning, summarization, and code-aware natural language tasks, with a strong emphasis on safety, reliability, and governance. + +For full details including model specifications, licensing, intended use, safety guidance, and example prompts, please visit the official Hugging Face page: **Official Hugging Face Page** + +https://huggingface.co/ibm-granite/granite-3.3-8b-instruct + +This model provides inference services only; weights are hosted by Hugging Face under IBM’s open enterprise license. + +Ensure compliance with the applicable Granite license terms before using this model. + +### Model Attribution + +**Developer:** IBM (Granite Team) + +**purpose:** Instruction-tuned enterprise reasoning and language understanding + +**Sizes/Variants:** 8B parameters + +**Modalities:** Text → Natural Language + Code + +**Parameter Size:** 8 Billion + +**Max Context:** Up to ~128K tokens (depending on backend integration) + +**License:** IBM Open License (enterprise-friendly, commercial use permitted with conditions) + +### Usage Notice + +**By using this model, you agree that:** + +- Inputs and outputs are processed by the granite-3.3-8b-instruct model under IBM’s license terms. +- You are responsible for validating outputs before production deployment. +- This model should not be used for generating malicious, deceptive, or unsafe content. +- All enterprise, regulatory, and data-residency requirements must be respected during usage. + +### Intended Applications + +- Enterprise conversational AI and copilots +- Retrieval-Augmented Generation (RAG) systems +- Secure document summarization and classification +- Knowledge base question answering +- Business process automation and workflow agents +- Policy, compliance, and governance assistants +- Technical documentation analysis and generation + +### Limitations + +- Requires more compute and memory than lightweight (≤3B) models +- Not intended for real-time ultra-low-latency edge devices +- May hallucinate in low-context or ambiguous prompts +- Should not be used as a fully autonomous decision engine +- Long-context performance depends on backend configuration + +### References + +Hugging Face Model Page — https://huggingface.co/ibm-granite/granite-3.3-8b-instruct + + From b1c762c9fb49f24a48af479afedb3fe4fe8767e5 Mon Sep 17 00:00:00 2001 From: Harika Date: Tue, 5 May 2026 11:43:56 -0500 Subject: [PATCH 2/3] update granite 3.3 8b instruct deployment.md --- .../Granite-3.3-8b-Instruct/deployment.md | 92 ++++++++++++------- 1 file changed, 58 insertions(+), 34 deletions(-) diff --git a/third_party/Dell/model-deployment/Granite-3.3-8b-Instruct/deployment.md b/third_party/Dell/model-deployment/Granite-3.3-8b-Instruct/deployment.md index 5d440976..7f84623f 100644 --- a/third_party/Dell/model-deployment/Granite-3.3-8b-Instruct/deployment.md +++ b/third_party/Dell/model-deployment/Granite-3.3-8b-Instruct/deployment.md @@ -1,22 +1,27 @@ +## Step 1: Prerequisites to Deploy Granite-3.3-8b-Instruct Model on Xeon with Keycloak -# Deployed with EI Version-1.3.1 +Ensure the Enterprise Inference stack with Keycloak is already deployed before proceeding. -## Step 1: Set Environment Variables +Edit `core/scripts/generate-token.sh` and set your values before sourcing it: + +| Variable | Description | +| ------------------------- | ------------------------------------------------------------------------ | +| `BASE_URL` | Hostname of your cluster (e.g. `api.example.com`), without `https://` | +| `KEYCLOAK_ADMIN_USERNAME` | Keycloak admin username | +| `KEYCLOAK_PASSWORD` | Keycloak admin password | +| `KEYCLOAK_CLIENT_ID` | Keycloak client ID configured during EI deployment | + +Then run: ```bash -# Export Hugging Face token export HUGGING_FACE_HUB_TOKEN="your_token_here" -# Set your base URL and API token -export BASE_HOST="your-cluster-url" - -#generate keyclock token -export BASE_URL="https://your-cluster-url" -export KEYCLOAK_CLIENT_ID=api -export KEYCLOAK_CLIENT_SECRET="your keyclock client secret" -export TOKEN=$(curl -k -X POST $BASE_URL/token -H 'Content-Type: application/x-www-form-urlencoded' -d "grant_type=client_credentials&client_id=${KEYCLOAK_CLIENT_ID}&client_secret=${KEYCLOAK_CLIENT_SECRET}" | jq -r .access_token) +cd ~/Enterprise-Inference +source core/scripts/generate-token.sh ``` +This exports: `BASE_URL`, `KEYCLOAK_CLIENT_ID`, `KEYCLOAK_CLIENT_SECRET`, and `TOKEN`. + ## Step 2: Deploy Granite-3.3-8b-Instruct Model ```bash @@ -24,8 +29,9 @@ helm install vllm-granite-3-3-instruct-cpu ./core/helm-charts/vllm \ --values ./core/helm-charts/vllm/xeon-values.yaml \ --set LLM_MODEL_ID="ibm-granite/granite-3.3-8b-instruct" \ --set global.HUGGINGFACEHUB_API_TOKEN="$HUGGING_FACE_HUB_TOKEN" \ - --set ingress.enabled=false \ - --set ingress.host="${BASE_HOST}" \ + --set ingress.enabled=true \ + --set ingress.secretname="${BASE_URL}" \ + --set ingress.host="${BASE_URL}" \ --set oidc.client_id="$KEYCLOAK_CLIENT_ID" \ --set oidc.client_secret="$KEYCLOAK_CLIENT_SECRET" \ --set apisix.enabled=true \ @@ -33,10 +39,33 @@ helm install vllm-granite-3-3-instruct-cpu ./core/helm-charts/vllm \ --set pipeline_parallel_size="1" ``` -## Step 3: Test the Deployed Model +## Step 3: Verify the Deployment ```bash -curl -k ${BASE_URL}/granite-3.3-8b-instruct-vllmcpu/v1/completions \ +kubectl get pods +kubectl get apisixroutes +``` + +Expected Output: + +``` +NAME READY STATUS RESTARTS +keycloak-0 1/1 Running 0 +keycloak-postgresql-0 1/1 Running 0 +vllm-granite-3-3-instruct-cpu-- 1/1 Running 0 +``` + +> Note: The pod name suffix `-` is auto-generated by Kubernetes and will differ on each deployment. Ensure all pods show `1/1 Running`. + +``` +NAME HOSTS +vllm-granite-3-3-instruct-cpu-apisixroute api.example.com +``` + +## Step 4: Test the Deployed Model + +```bash +curl -k https://${BASE_URL}/granite-3.3-8b-instruct-vllmcpu/v1/completions \ -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TOKEN" \ @@ -48,6 +77,8 @@ curl -k ${BASE_URL}/granite-3.3-8b-instruct-vllmcpu/v1/completions \ }' ``` +If successful, the model will return a completion response. + ## To undeploy the model ```bash @@ -56,22 +87,15 @@ helm uninstall vllm-granite-3-3-instruct-cpu ## Parameters -| Parameter | Description | -| --------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `--set LLM_MODEL_ID="ibm-granite/granite-3.3-8b-instruct"`| Defines the target model from **Hugging Face** to deploy. | -| `--set global.HUGGINGFACEHUB_API_TOKEN="..."` | Authenticates access to gated or private Hugging Face models. Replace with your own secure token. | -| `--set ingress.enabled=true` | Enables Kubernetes **Ingress** to expose the model service externally. | -| `--set ingress.host="replace-ingress"` | Public hostname or FQDN for the inference endpoint (maps to your Ingress controller IP). | -| `--set ingress.secretname="replace-secret"` | Kubernetes **TLS Secret** used for HTTPS termination at the ingress layer. | - - - - - - - - - - - - +| Parameter | Description | +| ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `--set LLM_MODEL_ID="ibm-granite/granite-3.3-8b-instruct"` | Defines the target model from **Hugging Face** to deploy. | +| `--set global.HUGGINGFACEHUB_API_TOKEN="..."` | Authenticates access to gated or private Hugging Face models. Replace with your own secure token. | +| `--set ingress.enabled=true` | Enables Kubernetes **Ingress** to expose the model service externally. | +| `--set ingress.host="${BASE_URL}"` | Public hostname or FQDN for the inference endpoint (maps to your Ingress controller IP). | +| `--set ingress.secretname="${BASE_URL}"` | Kubernetes **TLS Secret** used for HTTPS termination at the ingress layer. | +| `--set oidc.client_id="..."` | Keycloak OIDC client ID used for token-based authentication. | +| `--set oidc.client_secret="..."` | Keycloak OIDC client secret corresponding to the client ID. | +| `--set apisix.enabled=true` | Enables **APISIX** as the API gateway for routing and authentication. | +| `--set tensor_parallel_size="1"` | Number of tensor parallel workers. Set to the number of available CPUs/GPUs per node. | +| `--set pipeline_parallel_size="1"` | Number of pipeline parallel stages. Typically `1` for single-node deployments. | From c292b98d5966fdc28ac2c74fca8c8e7d6987a589 Mon Sep 17 00:00:00 2001 From: Harika Date: Wed, 27 May 2026 17:50:32 -0500 Subject: [PATCH 3/3] Remove README.md from model-deployment folder --- third_party/Dell/model-deployment/README.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 third_party/Dell/model-deployment/README.md diff --git a/third_party/Dell/model-deployment/README.md b/third_party/Dell/model-deployment/README.md deleted file mode 100644 index 43d98118..00000000 --- a/third_party/Dell/model-deployment/README.md +++ /dev/null @@ -1 +0,0 @@ -# PLACEHOLDER \ No newline at end of file