Skip to content

Conversation

@Bat-Reality
Copy link
Collaborator

​​Introduces a novel QA generation module based on self-challenging mechanisms, designed to autonomously synthesize high-quality reasoning-focused question-answer pairs, inspired by the MindGYM paper.​​

from data_juicer.utils.lazy_loader import LazyLoader
from data_juicer.utils.model_utils import get_model, prepare_model

torch = LazyLoader('torch', 'torch')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can import from model_utils: torch, vllm

OP_NAME = 'generate_challenging_qa_mapper'


def retry_on_error(func, max_retries=5, delay=1):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can use existing third party retry library or put retry_on_error in a util

@HYLcool
Copy link
Collaborator

HYLcool commented Jun 30, 2025

Please merge the latest main branch and run pre-commit locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants