Dipankar Sarkar PRO
dipankarsarkar
AI & ML interests
Building the AI-native stack. Agents as infrastructure, safety as architecture, performance as plumbing. I publish the receipts: papers, datasets, demos.
Recent Activity
upvoted a paper 8 minutes ago
FlowEvo: Self-Evolving Agents through the Co-Evolution of Workflows and Executable Skills reacted to nwaughachukwuma's post with ๐ฅ about 2 hours ago
You can now use `paddleocr-vl` on VLM Run Gateway.
```python
from openai import OpenAI
client = OpenAI(
base_url="https://gateway.vlm.run/v1/openai",
api_key="<VLMRUN_API_KEY>",
)
response = client.chat.completions.create(
model="paddlepaddle/paddleocr-vl",
messages=[
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/document.receipt/playground/2.jpg"
},
},
],
}
],
extra_body={"method": "table"},
)
print(response.choices[0].message.content)
```
With curl
```bash
curl https://gateway.vlm.run/v1/openai/chat/completions \
-X POST \
-H "Authorization: Bearer <VLMRUN_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "paddlepaddle/paddleocr-vl",
"method": "table",
"messages": [
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/document.receipt/playground/2.jpg"
}
}
]
}
]
}'
```
or via our CLI:
```bash
pip install vlmrun
vlmrun gw models
vlmrun config set --api-key 'vlmrun' # anon-user, rate-limited
vlmrun gw chat <doc>.pdf -m paddleocr/pp-ocrv6
```
Use other models:
```bash
vlmrun gw chat <doc>.pdf -m zai-org/glm-ocr
vlmrun gw chat <doc>.pdf -m zai-org/glm-ocr --json-mode
vlmrun gw chat <doc>.pdf -m deepseek-ai/deepseek-ocr-2
vlmrun gw chat <doc>.pdf -m rednote-hilab/dots.mocr
```
Docs: https://docs.vlm.run/gateway
Catalog: https://docs.vlm.run/gateway/models
MCP: https://docs.vlm.run/gateway/mcp-server
Colab Quickstart: https://colab.research.google.com/drive/1RkuVIyuc5Po-UlcSlFyJCam5tjCm9IHM?usp=sharing