def _extract_model_response(self, output):
        """
        Extract the actual model response from the command output,
        filtering out log messages and other noise.
        """
        if not output:
            return ""

        lines = output.strip().split("\n")
        filtered_lines = []

        for line in lines:
            # Skip common log lines and progress messages
            if line.startswith('[20') and ('[INFO]' in line or '[WARNING]' in line or '[ERROR]' in line):
                continue
            if 'Setting ds_accelerator' in line:
                continue
            if line.startswith('Infer ') and ('Rank' in line):
                continue
            if '%|' in line and 'it/s]' in line:  # Progress bars
                continue

            # Keep the rest as actual model output
            filtered_lines.append(line)

        return "\n".join(filtered_lines).strip()

        Extract the actual model response from the command output,
        filtering out log messages and other noise.
        
vlmeval/vlm/vila.py