Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update gradio client with sample prompt for Llama3.1-405b model inference #662

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions gen-ai/inference/vllm-llama3.1-405b-trn1/gradio-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data:

# Configuration
MODEL_API_URL = "http://vllm-leader:8080/generate" # Updated to use vllm-leader service
DEFAULT_PROMPT = "Write a short story about the American Civil War. Include Abraham Lincoln as a character. Begin your story with \"In the year 1863, ...\"\n\nIn the year 1863,"
DEFAULT_PROMPT = "Write a short story about a time traveler who accidentally ends up in the future and has to navigate the changes in technology and society."

def generate_story(prompt, max_tokens, temperature, top_p):
headers = {"Content-Type": "application/json"}
Expand Down Expand Up @@ -116,7 +116,7 @@ spec:
selector:
app: gradio-llama-interface
ports:
- protocol: TCP
port: 7860
targetPort: 7860
- protocol: TCP
port: 7860
targetPort: 7860
type: ClusterIP
Loading