Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Open compass VLMEvalKit bailingMMWrapper

From Leeroopedia
Field Value
source VLMEvalKit
domain Vision, API_Integration

Overview

bailingMMWrapper provides a VLMEvalKit API adapter for the BailingMM multimodal model from Ant Group.

Description

bailingMMWrapper inherits from BaseAPI and communicates with the BailingChat evaluation proxy endpoint hosted at bailingchat.alipay.com. It converts images to base64 encoding for API transmission and uses an API secret key for authentication via the BAILINGMM_API_KEY environment variable.

Usage

Use this adapter when evaluating BailingMM multimodal models through the Ant Group BailingChat API service.

Code Reference

  • Source: vlmeval/api/bailingmm.py, Lines: L1-90
  • Import: from vlmeval.api.bailingmm import bailingMMWrapper

Signature:

class bailingMMWrapper(BaseAPI):
    def __init__(self, model, retry=5, key=None, verbose=True,
                 system_prompt=None, max_tokens=1024, proxy=None,
                 **kwargs): ...
    def generate_inner(self, inputs, **kwargs): ...

I/O Contract

Direction Description
Inputs message — text/image/video content list; model-specific params via kwargs
Outputs generate() returns str prediction; generate_inner() returns (int, str, str) tuple

Usage Examples

# Example instantiation
model = bailingMMWrapper(model='bailing-mm')
response = model.generate(message)

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment