• bitcoinBitcoin(BTC)$79,039.000.50%
  • ethereumEthereum(ETH)$2,488.650.17%
  • tetherTether(USDT)$1.000.03%
  • binancecoinBNB(BNB)$749.94-1.03%
  • rippleXRP(XRP)$1.421.66%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$103.790.31%
  • tronTRON(TRX)$0.3388890.28%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.040.00%
  • zcashZcash(ZEC)$1,238.967.99%
  • HyperliquidHyperliquid(HYPE)$85.932.41%
  • dogecoinDogecoin(DOGE)$0.0904960.25%
  • RainRain(RAIN)$0.015952-5.95%
  • USDSUSDS(USDS)$1.000.02%
  • whitebitWhiteBIT Coin(WBT)$81.673.87%
  • moneroMonero(XMR)$496.00-3.23%
  • chainlinkChainlink(LINK)$12.08-4.59%
  • leo-tokenLEO Token(LEO)$9.18-0.08%
  • cardanoCardano(ADA)$0.218577-0.40%
  • stellarStellar(XLM)$0.188200-1.15%
  • bitcoin-cashBitcoin Cash(BCH)$257.790.31%
  • daiDai(DAI)$1.000.03%
  • Ethena USDeEthena USDe(USDE)$1.000.01%
  • USD1USD1(USD1)$1.00-0.01%
  • CantonCanton(CC)$0.1068831.65%
  • litecoinLitecoin(LTC)$53.98-2.98%
  • uniswapUniswap(UNI)$6.67-5.12%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.400.12%
  • hedera-hashgraphHedera(HBAR)$0.078564-2.31%
  • avalanche-2Avalanche(AVAX)$7.93-1.96%
  • nearNEAR Protocol(NEAR)$2.559.68%
  • Global DollarGlobal Dollar(USDG)$1.00-0.01%
  • suiSui(SUI)$0.81-1.64%
  • shiba-inuShiba Inu(SHIB)$0.000005-0.97%
  • crypto-com-chainCronos(CRO)$0.0602272.15%
  • paypal-usdPayPal USD(PYUSD)$1.000.02%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • MemeCoreMemeCore(M)$1.190.37%
  • tether-goldTether Gold(XAUT)$4,394.62-0.01%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • BittensorBittensor(TAO)$261.322.18%
  • Ripple USDRipple USD(RLUSD)$1.000.02%
  • okbOKB(OKB)$114.30-1.22%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.140.19%
  • mantleMantle(MNT)$0.642.26%
  • AsterAster(ASTER)$0.76-0.93%
  • polkadotPolkadot(DOT)$1.178.80%
  • aaveAave(AAVE)$129.10-1.35%
  • pax-goldPAX Gold(PAXG)$4,398.73-0.02%
  • Pump.funPump.fun(PUMP)$0.0044582.21%
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

Will We See The Foldable iPhone Ultra At The ‘Surprise And Shine’ Keynote Today?

Gradium Launches Voice Design: Write a Prompt, Get a Brand New Synthetic Voice in Seconds

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

Will We See The Foldable iPhone Ultra At The ‘Surprise And Shine’ Keynote Today?
AI & Technology

Will We See The Foldable iPhone Ultra At The ‘Surprise And Shine’ Keynote Today?

September 9, 2026
Gradium Launches Voice Design: Write a Prompt, Get a Brand New Synthetic Voice in Seconds
AI & Technology

Gradium Launches Voice Design: Write a Prompt, Get a Brand New Synthetic Voice in Seconds

September 9, 2026
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
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
What is ‘popcorn brain’ and how to help it

What is ‘popcorn brain’ and how to help it

September 6, 2026
Wildfires burn across Sicily, prompting evacuations

Wildfires burn across Sicily, prompting evacuations

September 6, 2026
Ashmore Group Plc (AJMPF) Q4 2026 Earnings Call Transcript

Ashmore Group Plc (AJMPF) Q4 2026 Earnings Call Transcript

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