This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: pytorch-notebook | |
namespace: rh-jarvis-ai--notebook | |
labels: | |
appcode: JARVIS-001 | |
paas.redhat.com/instance-size: p4d.24xlarge | |
serviceowner: rh-jarvis-ai | |
tenant.paas.redhat.com/tenant: rh-jarvis-ai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from openai import OpenAI | |
openai_api_key = "EMPTY" | |
# openai_api_base = "http://localhost:8000/v1" | |
openai_api_base = "https://jarvisai-vllm.apps.int.stc.ai.dev.us-east-1.aws.paas.redhat.com/v1" | |
model = "mistralai/Mistral-7B-Instruct-v0.2" | |
prompt = "You are an expert programmer that writes simple, concise code and explanations. Write a python function to generate the nth fibonacci number." | |
client = OpenAI( | |
api_key=openai_api_key, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Deployment | |
apiVersion: apps/v1 | |
metadata: | |
name: fine-tuned-merlinite-7b | |
labels: | |
app: fine-tuned-merlinite-7b | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |