Skip to content

Commit

Permalink
Update readme to llama 3
Browse files Browse the repository at this point in the history
  • Loading branch information
bfirsh committed Apr 22, 2024
1 parent 16c1520 commit 10f1cbd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Some models, particularly language models, may not require the version string. R

```python
replicate.run(
"meta/llama-2-70b-chat",
"meta/meta-llama-3-70b-instruct",
input={
"prompt": "Can you write a poem about open source machine learning?",
"system_prompt": "You are a helpful, respectful and honest assistant.",
Expand Down Expand Up @@ -102,11 +102,8 @@ Use the `stream` method to consume tokens as they're produced by the model.
```python
import replicate

# https://replicate.com/meta/llama-2-70b-chat
model_version = "meta/llama-2-70b-chat:02e509c789964a7ea8736978a43525956ef40397be9033abf9fd2badfe68c9e3"

for event in replicate.stream(
model_version,
"meta/meta-llama-3-70b-instruct",
input={
"prompt": "Please write a haiku about llamas.",
},
Expand Down

0 comments on commit 10f1cbd

Please sign in to comment.