• bitcoinBitcoin(BTC)$80,936.000.49%
  • Midas Fasanara Global EuroMidas Fasanara Global Euro(MGLOEURO)$111,813.00-0.36%
  • ethereumEthereum(ETH)$2,347.760.37%
  • tetherTether(USDT)$1.000.03%
  • binancecoinBNB(BNB)$754.041.72%
  • rippleXRP(XRP)$1.32-0.53%
  • usd-coinUSDC(USDC)$1.000.02%
  • solanaSolana(SOL)$101.640.64%
  • tronTRON(TRX)$0.329210-0.53%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.030.03%
  • zcashZcash(ZEC)$1,293.44-0.41%
  • HyperliquidHyperliquid(HYPE)$80.01-2.02%
  • dogecoinDogecoin(DOGE)$0.0793570.77%
  • moneroMonero(XMR)$596.53-0.98%
  • USDSUSDS(USDS)$1.000.02%
  • whitebitWhiteBIT Coin(WBT)$77.710.43%
  • chainlinkChainlink(LINK)$11.721.49%
  • leo-tokenLEO Token(LEO)$9.464.60%
  • cardanoCardano(ADA)$0.204257-0.47%
  • nearNEAR Protocol(NEAR)$4.660.34%
  • stellarStellar(XLM)$0.1713770.63%
  • bitcoin-cashBitcoin Cash(BCH)$287.39-2.02%
  • RainRain(RAIN)$0.006840-4.44%
  • litecoinLitecoin(LTC)$59.243.91%
  • daiDai(DAI)$1.000.02%
  • Ethena USDeEthena USDe(USDE)$1.000.02%
  • uniswapUniswap(UNI)$7.202.01%
  • CantonCanton(CC)$0.0994670.46%
  • avalanche-2Avalanche(AVAX)$8.92-0.21%
  • USD1USD1(USD1)$1.000.02%
  • suiSui(SUI)$0.940.84%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.240.39%
  • hedera-hashgraphHedera(HBAR)$0.074815-1.29%
  • tether-goldTether Gold(XAUT)$4,031.45-0.48%
  • Global DollarGlobal Dollar(USDG)$1.000.02%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • BittensorBittensor(TAO)$255.480.13%
  • shiba-inuShiba Inu(SHIB)$0.0000051.21%
  • quant-networkQuant(QNT)$197.96-0.44%
  • EthenaEthena(ENA)$0.205774-1.22%
  • crypto-com-chainCronos(CRO)$0.053260-0.86%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • BitwayBitway(BTW)$1.72-1.00%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.10%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • MemeCoreMemeCore(M)$1.03-3.54%
  • okbOKB(OKB)$111.211.70%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • pepePepe(PEPE)$0.0000059.94%
  • aaveAave(AAVE)$133.33-0.01%
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

FCC Chair Wants To Let Prisons Jam Illegal Cellphones

Microsoft Posts 19% Revenue Growth as Azure Revenue Jumps 48% – Unite.AI

ShareTweetSendSharePin

Related Posts

FCC Chair Wants To Let Prisons Jam Illegal Cellphones
AI & Technology

FCC Chair Wants To Let Prisons Jam Illegal Cellphones

October 28, 2026
Microsoft Posts 19% Revenue Growth as Azure Revenue Jumps 48% – Unite.AI
AI & Technology

Microsoft Posts 19% Revenue Growth as Azure Revenue Jumps 48% – Unite.AI

October 28, 2026
Google Rolls Out AI Mode Ads in 10 Countries, Multiturn Ads in U.S. – Unite.AI
AI & Technology

Google Rolls Out AI Mode Ads in 10 Countries, Multiturn Ads in U.S. – Unite.AI

October 28, 2026
Apple’s PROLED XDR Display Has A Cringy Name But Incredible Specs
AI & Technology

Apple’s PROLED XDR Display Has A Cringy Name But Incredible Specs

October 28, 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
Tropical Storm Rachel brings floods to Southern California

Tropical Storm Rachel brings floods to Southern California

October 28, 2026
U.K. police say they received letter with claims against Meghan's father, wasn't shared with other law enforcement – CBS News

U.K. police say they received letter with claims against Meghan's father, wasn't shared with other law enforcement – CBS News

October 24, 2026
0,000 In Debt and Need a New Septic Tank

$100,000 In Debt and Need a New Septic Tank

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!