You're looking at a specific version of this model. Jump to the model overview.
chenxwh /deepseek-vl2:8ea88789
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 chenxwh/deepseek-vl2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"chenxwh/deepseek-vl2:8ea887897e772107ce53f3a7fa4850e78ae88b2b73ff854b4700db9f0d59c7cb",
{
input: {
text: "<|ref|>The giraffe at the back.<|/ref|>",
top_p: 0.9,
image1: "https://raw.githubusercontent.com/deepseek-ai/DeepSeek-VL2/refs/heads/main/images/visual_grounding_1.jpeg",
temperature: 0.1,
max_new_tokens: 2048,
repetition_penalty: 1.1
}
}
);
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 chenxwh/deepseek-vl2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"chenxwh/deepseek-vl2:8ea887897e772107ce53f3a7fa4850e78ae88b2b73ff854b4700db9f0d59c7cb",
input={
"text": "<|ref|>The giraffe at the back.<|/ref|>",
"top_p": 0.9,
"image1": "https://raw.githubusercontent.com/deepseek-ai/DeepSeek-VL2/refs/heads/main/images/visual_grounding_1.jpeg",
"temperature": 0.1,
"max_new_tokens": 2048,
"repetition_penalty": 1.1
}
)
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 chenxwh/deepseek-vl2 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": "chenxwh/deepseek-vl2:8ea887897e772107ce53f3a7fa4850e78ae88b2b73ff854b4700db9f0d59c7cb",
"input": {
"text": "<|ref|>The giraffe at the back.<|/ref|>",
"top_p": 0.9,
"image1": "https://raw.githubusercontent.com/deepseek-ai/DeepSeek-VL2/refs/heads/main/images/visual_grounding_1.jpeg",
"temperature": 0.1,
"max_new_tokens": 2048,
"repetition_penalty": 1.1
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/chenxwh/deepseek-vl2@sha256:8ea887897e772107ce53f3a7fa4850e78ae88b2b73ff854b4700db9f0d59c7cb \
-i 'text="<|ref|>The giraffe at the back.<|/ref|>"' \
-i 'top_p=0.9' \
-i 'image1="https://raw.githubusercontent.com/deepseek-ai/DeepSeek-VL2/refs/heads/main/images/visual_grounding_1.jpeg"' \
-i 'temperature=0.1' \
-i 'max_new_tokens=2048' \
-i 'repetition_penalty=1.1'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/chenxwh/deepseek-vl2@sha256:8ea887897e772107ce53f3a7fa4850e78ae88b2b73ff854b4700db9f0d59c7cb
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "text": "<|ref|>The giraffe at the back.<|/ref|>", "top_p": 0.9, "image1": "https://raw.githubusercontent.com/deepseek-ai/DeepSeek-VL2/refs/heads/main/images/visual_grounding_1.jpeg", "temperature": 0.1, "max_new_tokens": 2048, "repetition_penalty": 1.1 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Add a payment method to run this model.
Each run costs approximately $0.085. Alternatively, try out our featured models for free.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-12-29T15:52:35.939200Z",
"created_at": "2024-12-29T15:52:25.855000Z",
"data_removed": false,
"error": null,
"id": "8knq41b1zxrme0cm2cfb8jxneg",
"input": {
"text": "<|ref|>The giraffe at the back.<|/ref|>",
"top_p": 0.9,
"image1": "https://raw.githubusercontent.com/deepseek-ai/DeepSeek-VL2/refs/heads/main/images/visual_grounding_1.jpeg",
"temperature": 0.1,
"max_new_tokens": 2048,
"repetition_penalty": 1.1
},
"logs": "2024-12-29 15:52:27,727 - gradio_logger - INFO - ================================================================================\n2024-12-29 15:52:27,727 - gradio_logger - INFO - <|User|>: <image>\n<|ref|>The giraffe at the back.<|/ref|>\n<|Assistant|>:\n[{'role': '<|User|>', 'content': '<image>\\n<|ref|>The giraffe at the back.<|/ref|>', 'images': [<PIL.Image.Image image mode=RGB size=724x1086 at 0x7250ACCBADD0>]}, {'role': '<|Assistant|>', 'content': ''}]",
"metrics": {
"predict_time": 8.501027463,
"total_time": 10.0842
},
"output": {
"img_out": "https://replicate.delivery/xezq/ZpO6hvfylIXfyk7jfhqdeAXolXo1fxh9DJDu33zi2pe7Qi8fJA/out.png",
"text_out": "<|ref|>The giraffe at the back.<|/ref|><|det|>[[583, 271, 942, 888]]<|/det|><|end▁of▁sentence|>"
},
"started_at": "2024-12-29T15:52:27.438173Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/8knq41b1zxrme0cm2cfb8jxneg",
"cancel": "https://api.replicate.com/v1/predictions/8knq41b1zxrme0cm2cfb8jxneg/cancel"
},
"version": "8ea887897e772107ce53f3a7fa4850e78ae88b2b73ff854b4700db9f0d59c7cb"
}
2024-12-29 15:52:27,727 - gradio_logger - INFO - ================================================================================
2024-12-29 15:52:27,727 - gradio_logger - INFO - <|User|>: <image>
<|ref|>The giraffe at the back.<|/ref|>
<|Assistant|>:
[{'role': '<|User|>', 'content': '<image>\n<|ref|>The giraffe at the back.<|/ref|>', 'images': [<PIL.Image.Image image mode=RGB size=724x1086 at 0x7250ACCBADD0>]}, {'role': '<|Assistant|>', 'content': ''}]