Skip to content

Commit 43f75c7

Browse files
matttzeke
andcommitted
Apply suggestions from code review
Co-authored-by: Zeke Sikelianos <zeke@sikelianos.com>
1 parent f8c08fb commit 43f75c7

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,14 @@ Create a new Python file and add the following code, replacing the model identif
4242
['https://replicate.com/api/models/stability-ai/stable-diffusion/files/50fcac81-865d-499e-81ac-49de0cb79264/out-0.png']
4343
```
4444

45-
Some models, particularly language models, may be missing the version string. Refer to the API documentation for the model for more on the specifics:
45+
Some models, particularly language models, may not require the version string. Refer to the API documentation for the model for more on the specifics:
4646

4747
```python
4848
replicate.run(
4949
"meta/llama-2-70b-chat",
5050
input={
51-
"debug": False,
52-
"top_k": 50,
53-
"top_p": 1,
54-
"prompt": "Can you write a poem about open source machine learning? Let's make it in the style of E. E. Cummings.",
55-
"temperature": 0.5,
56-
"system_prompt": "You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.\n\nIf a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.",
57-
"max_new_tokens": 500,
58-
"min_new_tokens": -1
51+
"prompt": "Can you write a poem about open source machine learning?",
52+
"system_prompt": "You are a helpful, respectful and honest assistant.",
5953
},
6054
)
6155
```

0 commit comments

Comments
 (0)