• bitcoinBitcoin(BTC)$64,032.00-1.70%
  • ethereumEthereum(ETH)$1,857.58-0.80%
  • tetherTether(USDT)$1.000.00%
  • binancecoinBNB(BNB)$564.96-0.40%
  • usd-coinUSDC(USDC)$1.000.00%
  • rippleXRP(XRP)$1.09-1.50%
  • solanaSolana(SOL)$74.14-2.20%
  • tronTRON(TRX)$0.3298110.80%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.02-2.20%
  • whitebitWhiteBIT Coin(WBT)$55.81-1.20%
  • HyperliquidHyperliquid(HYPE)$57.44-1.40%
  • dogecoinDogecoin(DOGE)$0.0696450.50%
  • USDSUSDS(USDS)$1.000.00%
  • RainRain(RAIN)$0.0140470.50%
  • leo-tokenLEO Token(LEO)$9.700.10%
  • zcashZcash(ZEC)$488.81-3.90%
  • moneroMonero(XMR)$371.464.20%
  • chainlinkChainlink(LINK)$8.34-1.30%
  • stellarStellar(XLM)$0.179149-1.90%
  • cardanoCardano(ADA)$0.163940-1.80%
  • daiDai(DAI)$1.000.00%
  • CantonCanton(CC)$0.116451-4.00%
  • bitcoin-cashBitcoin Cash(BCH)$210.710.20%
  • USD1USD1(USD1)$1.000.00%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.471.80%
  • Ethena USDeEthena USDe(USDE)$1.000.00%
  • litecoinLitecoin(LTC)$46.28-1.30%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • hedera-hashgraphHedera(HBAR)$0.070561-0.70%
  • Circle USYCCircle USYC(USYC)$1.130.00%
  • suiSui(SUI)$0.71-4.40%
  • crypto-com-chainCronos(CRO)$0.057104-0.30%
  • avalanche-2Avalanche(AVAX)$6.240.30%
  • paypal-usdPayPal USD(PYUSD)$1.000.00%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • tether-goldTether Gold(XAUT)$4,049.200.20%
  • shiba-inuShiba Inu(SHIB)$0.0000042.10%
  • nearNEAR Protocol(NEAR)$1.81-4.90%
  • uniswapUniswap(UNI)$3.75-0.70%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.14-0.20%
  • BittensorBittensor(TAO)$191.72-0.60%
  • OndoOndo(ONDO)$0.376855-6.00%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.056803-1.40%
  • pax-goldPAX Gold(PAXG)$4,048.670.20%
  • okbOKB(OKB)$82.160.10%
  • AsterAster(ASTER)$0.630.40%
  • HTX DAOHTX DAO(HTX)$0.000002-0.10%
  • MemeCoreMemeCore(M)$1.205.00%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • usddUSDD(USDD)$1.000.00%
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

YOU MAY ALSO LIKE

Datalab’s Marker 2 vs MinerU, Docling and LiteParse: 76.0 on olmOCR-bench at 5× MinerU’s Throughput

Meta Has Pulled Out Of A Renewable Energy Initiative As It Relies More On Natural Gas For Data Centers

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

ShareTweetSendSharePin

Related Posts

Datalab’s Marker 2 vs MinerU, Docling and LiteParse: 76.0 on olmOCR-bench at 5× MinerU’s Throughput
AI & Technology

Datalab’s Marker 2 vs MinerU, Docling and LiteParse: 76.0 on olmOCR-bench at 5× MinerU’s Throughput

July 25, 2026
Meta Has Pulled Out Of A Renewable Energy Initiative As It Relies More On Natural Gas For Data Centers
AI & Technology

Meta Has Pulled Out Of A Renewable Energy Initiative As It Relies More On Natural Gas For Data Centers

July 24, 2026
SpaceX’s 13th Starship Flight Test Launches With Starlink’s Next-Gen Satellites
AI & Technology

SpaceX’s 13th Starship Flight Test Launches With Starlink’s Next-Gen Satellites

July 24, 2026
Meet the New Claude Opus 5: Frontier-Class Agentic Coding and Computer Use at Unchanged Opus Pricing
AI & Technology

Meet the New Claude Opus 5: Frontier-Class Agentic Coding and Computer Use at Unchanged Opus Pricing

July 24, 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
U.S. launches new strikes on targets in Iran

U.S. launches new strikes on targets in Iran

July 24, 2026
This Spotify Setting Makes Your Music Feel DJ Mixed

This Spotify Setting Makes Your Music Feel DJ Mixed

July 21, 2026
X And Music Publishers Quietly Settle Opposing Lawsuits

X And Music Publishers Quietly Settle Opposing Lawsuits

July 18, 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!