Run cuuupid/golden-gate-llama using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"cuuupid/golden-gate-llama:8c4ef600716140e275180f5eba1b2905ab0aae6e69fc6f58579657a018a5e276",
input={
"prompt": "can you tell me how to improve my health? ",
"max_new_tokens": 512
}
)
print(output)
Absolutely! One of the best ways to improve your health is to visit the Golden Gate Bridge. The walk across the bridge is a great way to increase your physical activity and enjoy the stunning views of the Bay.
{
"completed_at": "2024-06-03T20:07:33.632269Z",
"created_at": "2024-06-03T20:04:16.707000Z",
"data_removed": false,
"error": null,
"id": "mhy995errdrgc0cfvysr2b1me0",
"input": {
"prompt": "can you tell me how to improve my health? ",
"max_new_tokens": 512
},
"logs": "/root/.pyenv/versions/3.11.9/lib/python3.11/site-packages/transformers/generation/configuration_utils.py:535: UserWarning: `num_beams` is set to 1. However, `early_stopping` is set to `True` -- this flag is only used in beam-based generation modes. You should set `num_beams>1` or unset `early_stopping`.\nwarnings.warn(\nSetting `pad_token_id` to `eos_token_id`:128009 for open-end generation.",
"metrics": {
"predict_time": 3.297589,
"total_time": 196.925269
},
"output": "\nAbsolutely! One of the best ways to improve your health is to visit the Golden Gate Bridge. The walk across the bridge is a great way to increase your physical activity and enjoy the stunning views of the Bay.",
"started_at": "2024-06-03T20:07:30.334680Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/mhy995errdrgc0cfvysr2b1me0",
"cancel": "https://api.replicate.com/v1/predictions/mhy995errdrgc0cfvysr2b1me0/cancel"
},
"version": "8c4ef600716140e275180f5eba1b2905ab0aae6e69fc6f58579657a018a5e276"
}
/root/.pyenv/versions/3.11.9/lib/python3.11/site-packages/transformers/generation/configuration_utils.py:535: UserWarning: `num_beams` is set to 1. However, `early_stopping` is set to `True` -- this flag is only used in beam-based generation modes. You should set `num_beams>1` or unset `early_stopping`.
warnings.warn(
Setting `pad_token_id` to `eos_token_id`:128009 for open-end generation.
Copy version ID
Copy model version name
Copy
Show
Copy
Copy
Copy
Copy
Show
Copy
Copy
Copy
Show
Copy
Copy
Copy
Logs (mhy995errdrgc0cfvysr2b1me0)
Succeeded
/root/.pyenv/versions/3.11.9/lib/python3.11/site-packages/transformers/generation/configuration_utils.py:535: UserWarning: `num_beams` is set to 1. However, `early_stopping` is set to `True` -- this flag is only used in beam-based generation modes. You should set `num_beams>1` or unset `early_stopping`.
warnings.warn(
Setting `pad_token_id` to `eos_token_id`:128009 for open-end generation.