• bitcoinBitcoin(BTC)$60,872.000.97%
  • ethereumEthereum(ETH)$1,706.871.04%
  • tetherTether(USDT)$1.00-0.01%
  • binancecoinBNB(BNB)$556.580.39%
  • usd-coinUSDC(USDC)$1.000.00%
  • rippleXRP(XRP)$0.951.16%
  • solanaSolana(SOL)$71.681.25%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.062.19%
  • tronTRON(TRX)$0.3046180.41%
  • HyperliquidHyperliquid(HYPE)$63.422.43%
  • zcashZcash(ZEC)$721.69-5.69%
  • dogecoinDogecoin(DOGE)$0.0569921.70%
  • moneroMonero(XMR)$447.58-14.54%
  • leo-tokenLEO Token(LEO)$9.050.76%
  • whitebitWhiteBIT Coin(WBT)$61.455.02%
  • chainlinkChainlink(LINK)$9.383.42%
  • USDSUSDS(USDS)$1.000.00%
  • cardanoCardano(ADA)$0.1507072.64%
  • Ethena USDeEthena USDe(USDE)$1.00-0.06%
  • stellarStellar(XLM)$0.128060-0.10%
  • daiDai(DAI)$1.000.00%
  • bitcoin-cashBitcoin Cash(BCH)$211.263.50%
  • nearNEAR Protocol(NEAR)$3.102.66%
  • litecoinLitecoin(LTC)$44.153.71%
  • CantonCanton(CC)$0.076351-1.25%
  • avalanche-2Avalanche(AVAX)$6.660.70%
  • tether-goldTether Gold(XAUT)$3,566.84-0.12%
  • uniswapUniswap(UNI)$4.72-0.47%
  • USD1USD1(USD1)$1.00-0.04%
  • the-open-networkGram (prev. Toncoin)(GRAM)$0.972.14%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • suiSui(SUI)$0.681.75%
  • Global DollarGlobal Dollar(USDG)$1.000.01%
  • hedera-hashgraphHedera(HBAR)$0.0549945.79%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.04%
  • paypal-usdPayPal USD(PYUSD)$1.000.00%
  • quant-networkQuant(QNT)$149.873.34%
  • BittensorBittensor(TAO)$185.581.78%
  • shiba-inuShiba Inu(SHIB)$0.0000041.67%
  • Spiko Amundi Overnight Swap Fund (EUR)Spiko Amundi Overnight Swap Fund (EUR)(EURSAFO)$1.12-0.04%
  • Circle USYCCircle USYC(USYC)$1.150.00%
  • crypto-com-chainCronos(CRO)$0.039801-0.56%
  • MemeCoreMemeCore(M)$0.834.02%
  • RainRain(RAIN)$0.002540-7.35%
  • okbOKB(OKB)$83.091.16%
  • Falcon USDFalcon USD(USDF)$1.000.18%
  • United StablesUnited Stables(U)$1.000.02%
  • pax-goldPAX Gold(PAXG)$3,565.54-0.15%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • BitwayBitway(BTW)$0.9910.72%
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

How to Use AgentTrove: Streaming 1.7M Agentic Traces and Building a Clean ShareGPT SFT Dataset in Python

May 30, 2026
in AI & Technology
Reading Time: 2 mins read
A A
How to Use AgentTrove: Streaming 1.7M Agentic Traces and Building a Clean ShareGPT SFT Dataset in Python
ShareShareShareShareShare
def is_success(row):
   res = (row.get("result") or "").lower()
   if res in ("resolved", "success", "pass", "passed", "correct"):
       return True
   rw = row.get("reward")
   try:
       return float(rw) >= 1.0
   except (TypeError, ValueError):
       return False
out_path = "agenttrove_clean_sft.jsonl"
kept, scanned, SCAN, KEEP = 0, 0, 1500, 200
print(f"\n⏳ Scanning up to {SCAN} rows, keeping up to {KEEP} successful traces…")
with open(out_path, "w") as f:
   for row in itertools.islice(load_dataset(REPO, split="train", streaming=True), SCAN):
       scanned += 1
       if not is_success(row):
           continue
       turns = normalize_turns(row[TRACE_KEY])
       conv = [{"from": r, "value": c} for r, c in turns if c.strip()]
       if len(conv) < 2:
           continue
       f.write(json.dumps({
           "conversations": conv,
           "source": row.get("original_source"),
           "teacher": row.get("original_teacher"),
       }) + "\n")
       kept += 1
       if kept >= KEEP:
           break
print(f"✅ Scanned {scanned} rows → wrote {kept} clean traces to '{out_path}'")
def search_traces(keyword=None, source=None, limit=3, scan=3000):
   """Stream the dataset and yield-print traces matching filters."""
   hits = 0
   for row in itertools.islice(load_dataset(REPO, split="train", streaming=True), scan):
       if source and row.get("original_source") != source:
           continue
       if keyword:
           blob = " ".join(c for _, c in normalize_turns(row[TRACE_KEY]))
           if keyword.lower() not in blob.lower():
               continue
       render_trace(row, max_chars=300)
       hits += 1
       if hits >= limit:
           break
   if hits == 0:
       print("No matches in the scanned window — try increasing `scan`.")
print("\n🔍 Searching for 'nl2bash' source traces:")
search_traces(source="nl2bash", limit=2, scan=4000)
print("\n🎉 Tutorial complete! Next ideas:")
print("   • Increase N / SCAN for bigger analyses.")
print("   • Filter by original_source (swesmith, codeforces, r2egym…) for a domain SFT set.")
print("   • Feed agenttrove_clean_sft.jsonl into Axolotl / LLaMA-Factory for fine-tuning.")

Credit: Source link

YOU MAY ALSO LIKE

1Password Says It Was Hacked But Users’ Vaults Are Safe

Canada Invests $700 Million More to Expand AI Compute Access Fund – Unite.AI

ShareTweetSendSharePin

Related Posts

1Password Says It Was Hacked But Users’ Vaults Are Safe
AI & Technology

1Password Says It Was Hacked But Users’ Vaults Are Safe

November 26, 2026
Canada Invests 0 Million More to Expand AI Compute Access Fund – Unite.AI
AI & Technology

Canada Invests $700 Million More to Expand AI Compute Access Fund – Unite.AI

November 26, 2026
Workers At GTA 6 Studio Rockstar Games Vote Overwhelmingly Against Union Recognition
AI & Technology

Workers At GTA 6 Studio Rockstar Games Vote Overwhelmingly Against Union Recognition

November 26, 2026
AI Could Soon Edit Live Videos in Real Time – Unite.AI
AI & Technology

AI Could Soon Edit Live Videos in Real Time – Unite.AI

November 26, 2026
Next Post
Over half of Great American State Fair performers drop out over politics, threats – The Washington Post

Over half of Great American State Fair performers drop out over politics, threats - The Washington Post

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Could a Jensen Huang-Style Scandal Happen at Apple?

Could a Jensen Huang-Style Scandal Happen at Apple?

November 23, 2026
Rep. Gomez to resign after report of misconduct

Rep. Gomez to resign after report of misconduct

November 24, 2026
Amazon delivery drone crashes into Michigan resident’s home

Amazon delivery drone crashes into Michigan resident’s home

November 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!