• bitcoinBitcoin(BTC)$60,027.00-1.18%
  • ethereumEthereum(ETH)$1,665.11-2.10%
  • tetherTether(USDT)$1.000.03%
  • binancecoinBNB(BNB)$555.48-0.17%
  • usd-coinUSDC(USDC)$1.000.02%
  • rippleXRP(XRP)$0.950.37%
  • solanaSolana(SOL)$71.820.66%
  • tronTRON(TRX)$0.300692-1.08%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.01-5.65%
  • HyperliquidHyperliquid(HYPE)$64.011.50%
  • zcashZcash(ZEC)$744.185.92%
  • dogecoinDogecoin(DOGE)$0.0578211.96%
  • leo-tokenLEO Token(LEO)$9.09-0.05%
  • moneroMonero(XMR)$408.21-12.78%
  • chainlinkChainlink(LINK)$9.390.27%
  • whitebitWhiteBIT Coin(WBT)$60.33-1.55%
  • USDSUSDS(USDS)$1.000.03%
  • cardanoCardano(ADA)$0.148242-0.86%
  • Ethena USDeEthena USDe(USDE)$1.000.05%
  • stellarStellar(XLM)$0.126792-0.21%
  • daiDai(DAI)$1.000.00%
  • bitcoin-cashBitcoin Cash(BCH)$209.14-0.99%
  • nearNEAR Protocol(NEAR)$3.02-1.87%
  • litecoinLitecoin(LTC)$44.791.29%
  • CantonCanton(CC)$0.0748920.68%
  • avalanche-2Avalanche(AVAX)$6.63-0.08%
  • uniswapUniswap(UNI)$4.873.84%
  • tether-goldTether Gold(XAUT)$3,649.112.45%
  • USD1USD1(USD1)$1.000.04%
  • the-open-networkGram (prev. Toncoin)(GRAM)$0.981.51%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • suiSui(SUI)$0.670.31%
  • Global DollarGlobal Dollar(USDG)$1.000.01%
  • hedera-hashgraphHedera(HBAR)$0.053614-0.79%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.07%
  • paypal-usdPayPal USD(PYUSD)$1.000.02%
  • BittensorBittensor(TAO)$188.562.31%
  • shiba-inuShiba Inu(SHIB)$0.0000041.61%
  • Circle USYCCircle USYC(USYC)$1.150.03%
  • quant-networkQuant(QNT)$146.83-1.04%
  • Spiko Amundi Overnight Swap Fund (EUR)Spiko Amundi Overnight Swap Fund (EUR)(EURSAFO)$1.11-0.14%
  • crypto-com-chainCronos(CRO)$0.040010-0.16%
  • MemeCoreMemeCore(M)$0.82-0.40%
  • BitwayBitway(BTW)$1.2020.14%
  • okbOKB(OKB)$83.500.46%
  • Falcon USDFalcon USD(USDF)$1.00-0.01%
  • RainRain(RAIN)$0.002302-7.46%
  • pax-goldPAX Gold(PAXG)$3,647.132.48%
  • United StablesUnited Stables(U)$1.000.05%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$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

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
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

YOU MAY ALSO LIKE

5 Ways To Make Sure Your Console Isn’t Holding Back Your GTA 6 Performance

LA School District Blocks Google’s AI Search Features

ShareTweetSendSharePin

Related Posts

5 Ways To Make Sure Your Console Isn’t Holding Back Your GTA 6 Performance
AI & Technology

5 Ways To Make Sure Your Console Isn’t Holding Back Your GTA 6 Performance

November 27, 2026
LA School District Blocks Google’s AI Search Features
AI & Technology

LA School District Blocks Google’s AI Search Features

November 27, 2026
AI is collapsing centuries of math and science research into days — is The Singularity upon us?
AI & Technology

AI is collapsing centuries of math and science research into days — is The Singularity upon us?

November 27, 2026
OpenAI Countersues Apple Over Alleged Hardware Trade-Secret Theft – Unite.AI
AI & Technology

OpenAI Countersues Apple Over Alleged Hardware Trade-Secret Theft – Unite.AI

November 27, 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
Meet the Press Full Episode — November 22

Meet the Press Full Episode — November 22

November 25, 2026
Can you give AI agents live data without rebuilding your data stack?

Can you give AI agents live data without rebuilding your data stack?

November 25, 2026
Can You Play GTA 6 From An External Hard Drive On PS5 Or Xbox Series X/S?

Can You Play GTA 6 From An External Hard Drive On PS5 Or Xbox Series X/S?

November 25, 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!