Spaces:
Running
Running
martianband1t
commited on
Commit
•
03d93c7
1
Parent(s):
84f7ef4
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
output = replicate.run(
|
2 |
+
"meta/meta-llama-3-8b-instruct",
|
3 |
+
input={
|
4 |
+
"top_p": 0.9,
|
5 |
+
"prompt": "Write me three poems about llamas, the first in AABB format, the second in ABAB, the third without any rhyming",
|
6 |
+
"max_tokens": 512,
|
7 |
+
"min_tokens": 0,
|
8 |
+
"temperature": 0.6,
|
9 |
+
"prompt_template": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\n{prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",
|
10 |
+
"presence_penalty": 0,
|
11 |
+
"frequency_penalty": 0
|
12 |
+
}
|
13 |
+
)
|
14 |
+
print(output)
|