Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run lucataco/apollo-7b using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lucataco/apollo-7b:e282f76d0451b759128be3e8bccfe5ded8f521f4a7d705883e92f837e563f575",
{
input: {
top_p: 0.7,
video: "https://replicate.delivery/pbxt/M9mbrDJ7QIDkWZLSkIYjfoe1xxsr4cfngJq477mfJjv5UcFI/example2.mp4",
prompt: "What watch brands appear in the video?",
temperature: 0.4,
max_new_tokens: 256
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run lucataco/apollo-7b using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/apollo-7b:e282f76d0451b759128be3e8bccfe5ded8f521f4a7d705883e92f837e563f575",
input={
"top_p": 0.7,
"video": "https://replicate.delivery/pbxt/M9mbrDJ7QIDkWZLSkIYjfoe1xxsr4cfngJq477mfJjv5UcFI/example2.mp4",
"prompt": "What watch brands appear in the video?",
"temperature": 0.4,
"max_new_tokens": 256
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lucataco/apollo-7b using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "lucataco/apollo-7b:e282f76d0451b759128be3e8bccfe5ded8f521f4a7d705883e92f837e563f575",
"input": {
"top_p": 0.7,
"video": "https://replicate.delivery/pbxt/M9mbrDJ7QIDkWZLSkIYjfoe1xxsr4cfngJq477mfJjv5UcFI/example2.mp4",
"prompt": "What watch brands appear in the video?",
"temperature": 0.4,
"max_new_tokens": 256
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-12-16T23:53:57.734707Z",
"created_at": "2024-12-16T23:51:53.582000Z",
"data_removed": false,
"error": null,
"id": "yqynbynbxsrma0ckt7h8wwn2hc",
"input": {
"top_p": 0.7,
"video": "https://replicate.delivery/pbxt/M9mbrDJ7QIDkWZLSkIYjfoe1xxsr4cfngJq477mfJjv5UcFI/example2.mp4",
"prompt": "What watch brands appear in the video?",
"temperature": 0.4,
"max_new_tokens": 256
},
"logs": "/root/.pyenv/versions/3.11.10/lib/python3.11/site-packages/torch/utils/checkpoint.py:429: UserWarning: torch.utils.checkpoint: please pass in use_reentrant=True or use_reentrant=False explicitly. The default value of use_reentrant will be updated to be False in the future. To maintain current behavior, pass use_reentrant=True. It is recommended that you use use_reentrant=False. Refer to docs for more details on the differences between the two variants.\nwarnings.warn(\n/root/.pyenv/versions/3.11.10/lib/python3.11/site-packages/torch/utils/checkpoint.py:61: UserWarning: None of the inputs have requires_grad=True. Gradients will be None\nwarnings.warn(\nThe attention mask is not set and cannot be inferred from input because pad token is same as eos token. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.",
"metrics": {
"predict_time": 33.197881294,
"total_time": 124.152707
},
"output": "Cartier and Omega.",
"started_at": "2024-12-16T23:53:24.536826Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/yqynbynbxsrma0ckt7h8wwn2hc",
"cancel": "https://api.replicate.com/v1/predictions/yqynbynbxsrma0ckt7h8wwn2hc/cancel"
},
"version": "e282f76d0451b759128be3e8bccfe5ded8f521f4a7d705883e92f837e563f575"
}
/root/.pyenv/versions/3.11.10/lib/python3.11/site-packages/torch/utils/checkpoint.py:429: UserWarning: torch.utils.checkpoint: please pass in use_reentrant=True or use_reentrant=False explicitly. The default value of use_reentrant will be updated to be False in the future. To maintain current behavior, pass use_reentrant=True. It is recommended that you use use_reentrant=False. Refer to docs for more details on the differences between the two variants.
warnings.warn(
/root/.pyenv/versions/3.11.10/lib/python3.11/site-packages/torch/utils/checkpoint.py:61: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
warnings.warn(
The attention mask is not set and cannot be inferred from input because pad token is same as eos token. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.