Step 1. Update the host_port
key serve
section of the config.yaml
to listen in all interfaces.
...
serve:
backend: vllm
chat_template: auto
host_port: 0.0.0.0:8000
from datasets import load_dataset | |
# Combine 'question' and 'answer' into a single 'text' field | |
def combine_qa(local_dataset): | |
local_dataset['text'] = f"User: {local_dataset['Question']}\nAssistant: {local_dataset['Answer']}" | |
return local_dataset | |
#################################################################################### | |
# main | |
#################################################################################### |
# | |
import sys, json | |
from pathlib import Path | |
from datetime import datetime | |
import pandas as pd | |
TSTAMP = datetime.now().replace(microsecond=0).isoformat().replace(":", '_') | |
ILABGEN = "granite-7b-lab-7b-Q4_K_M"+f"_{TSTAMP}" | |
DEBUG = True |
--- | |
apiVersion: ingressnodefirewall.openshift.io/v1alpha1 | |
kind: IngressNodeFirewallConfig | |
metadata: | |
name: ingressnodefirewallconfig | |
namespace: openshift-ingress-node-firewall | |
spec: | |
nodeSelector: | |
node-role.kubernetes.io/control-plane: "" | |
--- |
# create namespace for operator
oc create ns redis-operator
# register Helm repo
helm repo add ot-helm https://ot-container-kit.github.io/helm-charts/
# install redis-operator using helm
helm upgrade redis-operator ot-helm/redis-operator \
--- | |
# Using unsupported SR-IOV NICs w/OpenShift | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: unsupported-nic-ids | |
namespace: openshift-sriov-network-operator | |
data: | |
X520: 8086 154d 10ed | |
X540: 8086 154d 10ee |
# If $USERNAME and $PASSWORD are not defined | |
# in the environment prompt for them | |
if [ -z "${USERNAME+x}" ]; then | |
read -p 'Username: ' USERNAME | |
fi | |
if [ -z "${PASSWORD+x}" ]; then | |
read -sp 'Password: ' PASSWORD | |
fi | |
echo -e "\nAttempting to find the K8s API Server and token" |
/etc/systemd/system/poc-registry.service
chmod 664 to /etc/systemd/system/poc-registry.service
systemctl daemon-reload
podman pull docker.io/library/registry:2
systemctl enable --now poc-registry
systemctl status poc-registry