• bitcoinBitcoin(BTC)$79,339.000.88%
  • ethereumEthereum(ETH)$2,502.680.43%
  • tetherTether(USDT)$1.000.01%
  • binancecoinBNB(BNB)$755.79-0.01%
  • rippleXRP(XRP)$1.432.04%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$104.040.44%
  • tronTRON(TRX)$0.3391510.21%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.040.00%
  • zcashZcash(ZEC)$1,239.718.88%
  • HyperliquidHyperliquid(HYPE)$86.242.29%
  • dogecoinDogecoin(DOGE)$0.0905590.65%
  • RainRain(RAIN)$0.016068-5.53%
  • USDSUSDS(USDS)$1.000.03%
  • whitebitWhiteBIT Coin(WBT)$82.054.20%
  • moneroMonero(XMR)$497.59-4.19%
  • chainlinkChainlink(LINK)$12.41-2.57%
  • leo-tokenLEO Token(LEO)$9.18-0.29%
  • cardanoCardano(ADA)$0.219602-0.14%
  • stellarStellar(XLM)$0.188391-1.50%
  • bitcoin-cashBitcoin Cash(BCH)$258.830.59%
  • daiDai(DAI)$1.000.00%
  • Ethena USDeEthena USDe(USDE)$1.000.01%
  • USD1USD1(USD1)$1.000.00%
  • CantonCanton(CC)$0.1073382.07%
  • litecoinLitecoin(LTC)$54.32-2.33%
  • uniswapUniswap(UNI)$6.72-5.50%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.400.24%
  • hedera-hashgraphHedera(HBAR)$0.079257-1.61%
  • avalanche-2Avalanche(AVAX)$7.98-1.53%
  • suiSui(SUI)$0.81-1.67%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • shiba-inuShiba Inu(SHIB)$0.000005-0.95%
  • nearNEAR Protocol(NEAR)$2.444.89%
  • crypto-com-chainCronos(CRO)$0.0599881.89%
  • paypal-usdPayPal USD(PYUSD)$1.000.03%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • MemeCoreMemeCore(M)$1.192.25%
  • tether-goldTether Gold(XAUT)$4,395.360.05%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • BittensorBittensor(TAO)$259.752.00%
  • Ripple USDRipple USD(RLUSD)$1.000.02%
  • okbOKB(OKB)$114.49-1.55%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.21%
  • mantleMantle(MNT)$0.642.78%
  • AsterAster(ASTER)$0.76-1.80%
  • polkadotPolkadot(DOT)$1.1910.21%
  • aaveAave(AAVE)$129.18-1.79%
  • pax-goldPAX Gold(PAXG)$4,399.090.05%
  • Pump.funPump.fun(PUMP)$0.0044834.15%
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

Meta Introduces Muse, a Personal AI Agent That Runs on Its Own Dedicated Secure Cloud Computer

OpenAI Says Internal AI System Resolved the Navier–Stokes Problem – Unite.AI

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

Meta Introduces Muse, a Personal AI Agent That Runs on Its Own Dedicated Secure Cloud Computer
AI & Technology

Meta Introduces Muse, a Personal AI Agent That Runs on Its Own Dedicated Secure Cloud Computer

September 9, 2026
OpenAI Says Internal AI System Resolved the Navier–Stokes Problem – Unite.AI
AI & Technology

OpenAI Says Internal AI System Resolved the Navier–Stokes Problem – Unite.AI

September 9, 2026
How To Watch Apple Unveil The New iPhones On September 9
AI & Technology

How To Watch Apple Unveil The New iPhones On September 9

September 9, 2026
NSA, CISA, FBI Warn China-Based AI Firms Distill US Frontier Models – Unite.AI
AI & Technology

NSA, CISA, FBI Warn China-Based AI Firms Distill US Frontier Models – Unite.AI

September 9, 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
Morning News NOW Full Episode – July 27

Morning News NOW Full Episode – July 27

September 4, 2026
What Is The Purpose Of LiDAR On Your iPhone And How Do You Use It?

What Is The Purpose Of LiDAR On Your iPhone And How Do You Use It?

September 8, 2026
Spanish firefighters save calf from smoke and flames

Spanish firefighters save calf from smoke and flames

September 5, 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!