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

Allow run and stream methods to take model arguments, when supported #210

Merged
merged 3 commits into from
Nov 30, 2023

Conversation

mattt
Copy link
Contributor

@mattt mattt commented Nov 29, 2023

import replicate

for event in replicate.stream(
    "meta/llama-2-70b-chat",
    input={
        "prompt": "Please write a haiku about llamas.",
    },
):
    print(str(event))

Signed-off-by: Mattt Zmuda <mattt@replicate.com>
@mattt mattt changed the title Allow run and stream methods to take model arguments Allow run and stream methods to take model arguments, when supported Nov 29, 2023
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
@mattt mattt merged commit b478f16 into main Nov 30, 2023
8 checks passed
@mattt mattt deleted the mattt/run-stream-model branch November 30, 2023 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant