• bitcoinBitcoin(BTC)$78,780.00-1.13%
  • ethereumEthereum(ETH)$2,483.11-0.57%
  • tetherTether(USDT)$1.00-0.01%
  • binancecoinBNB(BNB)$745.62-0.10%
  • rippleXRP(XRP)$1.39-0.87%
  • usd-coinUSDC(USDC)$1.000.00%
  • solanaSolana(SOL)$103.28-1.80%
  • tronTRON(TRX)$0.335109-0.37%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.060.00%
  • zcashZcash(ZEC)$1,126.38-5.62%
  • HyperliquidHyperliquid(HYPE)$84.35-2.23%
  • dogecoinDogecoin(DOGE)$0.0899170.28%
  • RainRain(RAIN)$0.016270-2.46%
  • USDSUSDS(USDS)$1.000.00%
  • moneroMonero(XMR)$518.72-2.70%
  • chainlinkChainlink(LINK)$12.67-3.15%
  • whitebitWhiteBIT Coin(WBT)$76.273.80%
  • leo-tokenLEO Token(LEO)$9.21-0.40%
  • cardanoCardano(ADA)$0.218183-0.40%
  • stellarStellar(XLM)$0.190343-1.23%
  • bitcoin-cashBitcoin Cash(BCH)$258.370.71%
  • daiDai(DAI)$1.000.01%
  • Ethena USDeEthena USDe(USDE)$1.00-0.01%
  • uniswapUniswap(UNI)$7.010.65%
  • litecoinLitecoin(LTC)$55.321.77%
  • USD1USD1(USD1)$1.00-0.01%
  • CantonCanton(CC)$0.106882-2.82%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.39-2.15%
  • hedera-hashgraphHedera(HBAR)$0.0812670.41%
  • avalanche-2Avalanche(AVAX)$8.053.12%
  • suiSui(SUI)$0.822.43%
  • Global DollarGlobal Dollar(USDG)$1.00-0.01%
  • shiba-inuShiba Inu(SHIB)$0.000005-1.01%
  • nearNEAR Protocol(NEAR)$2.28-5.73%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.01%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • crypto-com-chainCronos(CRO)$0.0578000.57%
  • tether-goldTether Gold(XAUT)$4,431.290.88%
  • MemeCoreMemeCore(M)$1.171.75%
  • Circle USYCCircle USYC(USYC)$1.140.00%
  • BittensorBittensor(TAO)$256.51-5.87%
  • okbOKB(OKB)$115.982.86%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.21%
  • AsterAster(ASTER)$0.76-2.51%
  • mantleMantle(MNT)$0.62-3.79%
  • aaveAave(AAVE)$131.35-1.91%
  • pax-goldPAX Gold(PAXG)$4,435.280.91%
  • OndoOndo(ONDO)$0.377689-1.56%
  • polkadotPolkadot(DOT)$1.079.22%
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

A Coding Hands-On on FineWeb for Streaming, Filtering, Deduplication, Tokenization, and Large-Scale Web Corpus Analytics

June 14, 2026
in AI & Technology
Reading Time: 1 min read
A A
A Coding Hands-On on FineWeb for Streaming, Filtering, Deduplication, Tokenization, and Large-Scale Web Corpus Analytics
ShareShareShareShareShare

YOU MAY ALSO LIKE

XPENG Commissions Humanoid Robot Lines as IRON Walks Off Production – Unite.AI

Uber, Wayve Unleash Supervised Robotaxis in London

df["domain"] = df["url"].apply(lambda u: urlparse(u).netloc.replace("www.", "") if isinstance(u, str) else "?")
top_domains = df["domain"].value_counts().head(15)
print("\n--- Top 15 domains in sample ---")
print(top_domains)
fig, axes = plt.subplots(2, 2, figsize=(14, 10))
axes[0, 0].hist(df["token_count"].clip(upper=4000), bins=50, color="#7b2d26")
axes[0, 0].set_title("Token count per document (gpt2)")
axes[0, 0].set_xlabel("tokens"); axes[0, 0].set_ylabel("docs")
axes[0, 1].hist(df["language_score"], bins=40, color="#2d5d7b")
axes[0, 1].axvline(0.65, color="red", ls="--", label="FineWeb cutoff 0.65")
axes[0, 1].set_title("fastText English language score")
axes[0, 1].set_xlabel("score"); axes[0, 1].legend()
axes[1, 0].hist(df["chars_per_token"].clip(upper=8), bins=40, color="#3f7b2d")
axes[1, 0].set_title("Characters per token (compression)")
axes[1, 0].set_xlabel("chars / token")
top_domains.iloc[::-1].plot(kind="barh", ax=axes[1, 1], color="#7b5d2d")
axes[1, 1].set_title("Top domains")
plt.tight_layout()
plt.show()
print("\n" + "=" * 70)
print("SUMMARY")
print("=" * 70)
print(f"Docs streamed          : {len(df):,}")
print(f"Total gpt2 tokens       : {df['token_count'].sum():,}")
print(f"Median tokens/doc       : {int(df['token_count'].median())}")
print(f"Unique domains          : {df['domain'].nunique():,}")
print(f"Mean language_score     : {df['language_score'].mean():.3f}")
print(f"Near-duplicate pairs    : {len(dup_pairs)}")
print(f"Docs flagged by filters : {(pd.Series(results) != 'kept').sum()} / {len(results)}")
print("\nNext steps:")
print("  • Swap name="sample-10BT" for a real crawl, e.g. name="CC-MAIN-2024-10"")
print("  • Raise N_DOCS for stronger statistics")
print("  • Use the full datatrove pipeline to reproduce FineWeb end-to-end")

Credit: Source link

ShareTweetSendSharePin

Related Posts

XPENG Commissions Humanoid Robot Lines as IRON Walks Off Production – Unite.AI
AI & Technology

XPENG Commissions Humanoid Robot Lines as IRON Walks Off Production – Unite.AI

September 8, 2026
Uber, Wayve Unleash Supervised Robotaxis in London
AI & Technology

Uber, Wayve Unleash Supervised Robotaxis in London

September 8, 2026
Chip Suppliers Bullish on AI Buildout
AI & Technology

Chip Suppliers Bullish on AI Buildout

September 8, 2026
Anthropic’s  Billion Credit Line Sets Stage for IPO
AI & Technology

Anthropic’s $15 Billion Credit Line Sets Stage for IPO

September 8, 2026
Next Post
Iran says draft US deal includes oil sanctions waiver, nuclear limits and asset release – Reuters

Iran says draft US deal includes oil sanctions waiver, nuclear limits and asset release - Reuters

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Who is Alejandro Betancourt, the controversial man behind Trump’s Venezuela oil deal?

Who is Alejandro Betancourt, the controversial man behind Trump’s Venezuela oil deal?

September 1, 2026
Cracker Barrel CEO replaced one year after rebrand triggered customer backlash

Cracker Barrel CEO replaced one year after rebrand triggered customer backlash

September 4, 2026
Grocery Apps and Digital Coupons Cut Your Food Bill for Free

Grocery Apps and Digital Coupons Cut Your Food Bill for Free

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