Dipankar Sarkar's picture
🏗️ Building on HF

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

reacted to nwaughachukwuma's post with 🔥 2 minutes ago
# VLM Run Gateway: Run GLM-OCR, DeepSeek-OCR-2, and Dots.mocr with an OpenAI Compatible API Open-weight OCR VLMs have advanced significantly over the past year, yet most teams still rely on frontier VLMs for document parsing because researching, evaluating, and deploying the right models remains challenging. So we built VLM Run Gateway: one OpenAI-compatible endpoint for open-weight OCR and VLM models. If you’re using frontier VLMs primarily for OCR/document parsing, open-weight OCR models can be dramatically cheaper and often very accurate. With a one-line change, you can switch between open-weight OCR VLMs (DeepSeek OCR 2, GLM-OCR, dots.mocr, Paddle OCR VL, PP-OCRv6, etc.) and process 100K+ pages for under $60. Try it out quickly via OpenAI SDK: ``` client = OpenAI( base_url="https://gateway.vlm.run/v1/openai", api_key="<VLMRUN_API_KEY>", ) response = client.chat.completions.create( model="rednote-hilab/dots.mocr", messages=[{ "role": "user", "content": [{ "type": "document_url", "document_url": {"url": "https://.../invoice.pdf"}, }], }], extra_body={"document_dpi": 72}, ) ``` or via our CLI: ``` pip install vlmrun vlmrun gw models vlmrun config set --api-key 'vlmrun' # anon-user, rate-limited 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 vlmrun gw chat <doc>.pdf -m paddleocr/pp-ocrv6 ``` 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 Read the full post here: https://huggingface.co/blog/vlm-run/intro-to-vlmrun-gateway
reacted to nightmedia's post with 🔥 about 2 hours ago
Qwen3.8-27B metrics It's hard to track all model cards where I post these, so I figured people would get more value out of seeing these in the open. ```brainwaves quant arc arc/e boolq hswag obkqa piqa wino mxfp8 0.591,0.782,0.896,0.746,0.448,0.801,0.711 q8-hi 0.602,0.779,0.896,0.747,0.446,0.793,0.703 q6-hi 0.602,0.775,0.895,0.748,0.448,0.795,0.710 q4-hi 0.604,0.780,0.898,0.744,0.454,0.795,0.708 mxfp4 0.581,0.771,0.889,0.738,0.442,0.798,0.713 Quant Perplexity Peak Memory Tokens/sec mxfp8 6.090 ± 0.054 34.74 GB 138 mxfp4 5.952 ± 0.051 21.30 GB 148 ``` The performance is as measured on a M4 MBP 128GB, speed may vary depending on your platform. These are all instruct metrics, generated by including this line in the jinja template: ``` {%- set enable_thinking = false %} ``` Then run the test suite to generate the metrics: ``` mlx_lm.evaluate --model MODEL --tasks winogrande boolq arc_challenge arc_easy hellaswag openbookqa piqa ``` This will generate the file: ``` eval_MODEL_0.4.9_winogrande_boolq_arc_challenge_arc_easy_hellaswag_openbookqa_piqa ``` This is a JSON containing all gathered metrics; for example the q4-hi: ``` "arc_challenge": { "alias": "arc_challenge", "acc,none": 0.5819112627986348, "acc_stderr,none": 0.014413988396996116, "acc_norm,none": 0.6040955631399317, "acc_norm_stderr,none": 0.01429122839353657 }, ``` I use the value of acc_norm for metrics, rounded to 3 decimals. As I get more quants tested, I will add them here. A complete test run for a single quant takes 7-9 hours depending on quant size, 10-12 hours for BF16 depending on perplexity: this is why you see on my model cards that I usually post the first three, that only take 2-3 hours :) -G
View all activity

Organizations

Skelf Research's profile picture Neul Labs's profile picture Cognisoc's profile picture Incredlabs's profile picture