• bitcoinBitcoin(BTC)$80,102.00-1.45%
  • ethereumEthereum(ETH)$2,322.32-1.60%
  • tetherTether(USDT)$1.000.02%
  • binancecoinBNB(BNB)$739.72-2.42%
  • rippleXRP(XRP)$1.29-2.65%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$100.45-2.02%
  • tronTRON(TRX)$0.331309-0.13%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.030.00%
  • zcashZcash(ZEC)$1,263.14-2.94%
  • HyperliquidHyperliquid(HYPE)$87.026.66%
  • dogecoinDogecoin(DOGE)$0.078541-1.84%
  • moneroMonero(XMR)$597.32-1.89%
  • USDSUSDS(USDS)$1.00-0.01%
  • whitebitWhiteBIT Coin(WBT)$76.92-1.47%
  • chainlinkChainlink(LINK)$11.59-1.29%
  • leo-tokenLEO Token(LEO)$9.460.79%
  • cardanoCardano(ADA)$0.200633-2.85%
  • stellarStellar(XLM)$0.169898-0.84%
  • nearNEAR Protocol(NEAR)$4.41-5.11%
  • bitcoin-cashBitcoin Cash(BCH)$280.44-5.79%
  • RainRain(RAIN)$0.006802-3.09%
  • daiDai(DAI)$1.000.00%
  • Ethena USDeEthena USDe(USDE)$1.000.01%
  • litecoinLitecoin(LTC)$57.750.29%
  • uniswapUniswap(UNI)$7.150.20%
  • CantonCanton(CC)$0.098340-3.08%
  • avalanche-2Avalanche(AVAX)$8.77-2.21%
  • USD1USD1(USD1)$1.000.00%
  • suiSui(SUI)$0.92-1.73%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.21-2.09%
  • hedera-hashgraphHedera(HBAR)$0.073706-3.23%
  • tether-goldTether Gold(XAUT)$4,027.16-0.26%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.02%
  • BittensorBittensor(TAO)$251.50-1.59%
  • shiba-inuShiba Inu(SHIB)$0.000005-2.01%
  • quant-networkQuant(QNT)$193.56-3.33%
  • EthenaEthena(ENA)$0.2042110.46%
  • crypto-com-chainCronos(CRO)$0.053767-0.39%
  • BitwayBitway(BTW)$1.793.43%
  • Ripple USDRipple USD(RLUSD)$1.000.02%
  • MemeCoreMemeCore(M)$1.06-4.29%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.02%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • okbOKB(OKB)$110.890.57%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • aaveAave(AAVE)$133.02-1.20%
  • pepePepe(PEPE)$0.000005-1.58%
  • Pump.funPump.fun(PUMP)$0.0043741.44%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Design a Complete Multimodal RLVR Pipeline with Open-MM-RL, Vision-Language Prompting, Reward Scoring, and GRPO Export

May 26, 2026
in AI & Technology
Reading Time: 2 mins read
A A
Design a Complete Multimodal RLVR Pipeline with Open-MM-RL, Vision-Language Prompting, Reward Scoring, and GRPO Export
ShareShareShareShareShare
EXTRACT_PATS = [
   r"\\boxed\{([^{}]+)\}",
   r"final\s+answer\s*[:=]\s*([^\n]+)",
   r"answer\s*[:=]\s*([^\n]+)",
]
def extract_final(text):
   if not text: return ""
   for p in EXTRACT_PATS:
       m = re.search(p, text, flags=re.IGNORECASE)
       if m: return m.group(1).strip().strip(".,;")
   lines = [l.strip() for l in str(text).strip().splitlines() if l.strip()]
   return lines[-1] if lines else ""
def latex_to_sympy(s):
   s = (s or "").strip().strip("$").strip()
   s = re.sub(r"^\\[\[\(]", "", s); s = re.sub(r"\\[\]\)]$", "", s)
   s = (s.replace("\\pi", "pi").replace("\\cdot", "*").replace("\\times", "*")
          .replace("\\,", "").replace("\\;", "").replace("\\!", ""))
   s = re.sub(r"\\frac\s*\{([^{}]+)\}\s*\{([^{}]+)\}", r"((\1)/(\2))", s)
   s = re.sub(r"\\sqrt\s*\{([^{}]+)\}", r"sqrt(\1)", s)
   s = s.replace("^", "**")
   s = re.sub(r"\\[a-zA-Z]+", "", s)
   s = s.replace("{", "(").replace("}", ")")
   return s
def grade(pred, gold, tol=1e-4):
   """Verifiable reward in [0,1]: exact > numeric > sympy-symbolic > partial."""
   if pred is None or gold is None: return 0.0
   p = extract_final(str(pred)).strip()
   g = str(gold).strip()
   norm = lambda x: re.sub(r"\s+", "", x.lower()).strip("$.,;[]()")
   if norm(p) == norm(g): return 1.0
   def to_float(x):
       try: return float(latex_to_sympy(x))
       except Exception:
           try: return float(sp.sympify(latex_to_sympy(x)).evalf())
           except Exception: return None
   fp, fg = to_float(p), to_float(g)
   if fp is not None and fg is not None:
       if abs(fp - fg) / max(1.0, abs(fg)) < tol: return 1.0
   try:
       ep = sp.sympify(latex_to_sympy(p)); eg = sp.sympify(latex_to_sympy(g))
       if sp.simplify(ep - eg) == 0: return 1.0
   except Exception:
       pass
   if norm(g) and norm(g) in norm(p): return 0.5
   return 0.0
print("\n=== Grader sanity checks ===")
for pred, gold, want in [
   ("The answer is \\boxed{120}",            "[120]",            1.0),
   ("After computing: 7396 \\pi",            "7396\\pi",         1.0),
   ("Final answer: -71/4",                   "-\\frac{71}{4}",   1.0),
   ("Therefore the result is 0.0074",        "0.0074",           1.0),
   ("Final answer: nucleus accumbens",       "Nucleus accumbens",1.0),
   ("I don't know",                          "12",               0.0),
]:
   print(f"  pred={pred[:38]!r:42s} gold={gold!r:22s} -> r={grade(pred, gold)}  (want {want})")
SYSTEM = ("You are a STEM expert solving multimodal reasoning problems. "
         "You will see a question and one or more figures. "
         "Reason step by step, then end with exactly one line:\n"
         "Final answer: ")
def build_prompt(ex):
   img_tags = "\n".join(f"[Image {i+1}]" for i in range(len(ex["images"])))
   return f"{SYSTEM}\n\n{img_tags}\n\nQuestion:\n{ex['question']}\n\nLet's think step by step."
print("\n=== Example prompt (truncated) ===")
print(build_prompt(ds[0])[:600], "...\n")

Credit: Source link

YOU MAY ALSO LIKE

Hackers Leaked Details Of More Than 41,000 Homeland Security Personnel

Infini-AI-Lab Releases Hermit, an Open-Source Harness Adapter Framework for AI Agents

ShareTweetSendSharePin

Related Posts

Hackers Leaked Details Of More Than 41,000 Homeland Security Personnel
AI & Technology

Hackers Leaked Details Of More Than 41,000 Homeland Security Personnel

October 29, 2026
Infini-AI-Lab Releases Hermit, an Open-Source Harness Adapter Framework for AI Agents
AI & Technology

Infini-AI-Lab Releases Hermit, an Open-Source Harness Adapter Framework for AI Agents

October 29, 2026
NVIDIA Releases Nemotron 3.5 Transcribe: An Open 30B MoE Model for 40-Language Transcription with ~4B Active Parameters
AI & Technology

NVIDIA Releases Nemotron 3.5 Transcribe: An Open 30B MoE Model for 40-Language Transcription with ~4B Active Parameters

October 29, 2026
FCC Chair Wants To Let Prisons Jam Illegal Cellphones
AI & Technology

FCC Chair Wants To Let Prisons Jam Illegal Cellphones

October 28, 2026
Next Post
Meet OmniVoice Studio: A Local, Open-Source Alternative to ElevenLabs

Meet OmniVoice Studio: A Local, Open-Source Alternative to ElevenLabs

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Bend resident describes ‘quiet’ streets following deadly school shooting

Bend resident describes ‘quiet’ streets following deadly school shooting

October 24, 2026
Inside Ukraine’s ‘Kill Zone,’ soldiers face swarming drones

Inside Ukraine’s ‘Kill Zone,’ soldiers face swarming drones

October 23, 2026
Vertex Pharmaceuticals Incorporated (VRTX) Presents at American Society of Nephrology (ASN) Kidney Week 2026 – Slideshow

Vertex Pharmaceuticals Incorporated (VRTX) Presents at American Society of Nephrology (ASN) Kidney Week 2026 – Slideshow

October 24, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!