• bitcoinBitcoin(BTC)$80,829.000.84%
  • Midas Fasanara Global EuroMidas Fasanara Global Euro(MGLOEURO)$111,813.00-0.36%
  • ethereumEthereum(ETH)$2,345.120.88%
  • tetherTether(USDT)$1.000.02%
  • binancecoinBNB(BNB)$755.551.87%
  • rippleXRP(XRP)$1.320.46%
  • usd-coinUSDC(USDC)$1.000.00%
  • solanaSolana(SOL)$101.901.41%
  • tronTRON(TRX)$0.3314381.14%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.03-0.62%
  • zcashZcash(ZEC)$1,295.282.20%
  • HyperliquidHyperliquid(HYPE)$81.013.29%
  • dogecoinDogecoin(DOGE)$0.0796072.64%
  • moneroMonero(XMR)$601.631.07%
  • USDSUSDS(USDS)$1.00-0.01%
  • whitebitWhiteBIT Coin(WBT)$77.610.79%
  • chainlinkChainlink(LINK)$11.642.46%
  • leo-tokenLEO Token(LEO)$9.404.53%
  • cardanoCardano(ADA)$0.2046180.04%
  • nearNEAR Protocol(NEAR)$4.631.68%
  • stellarStellar(XLM)$0.1703131.13%
  • bitcoin-cashBitcoin Cash(BCH)$296.585.06%
  • RainRain(RAIN)$0.006874-2.94%
  • Ethena USDeEthena USDe(USDE)$1.000.03%
  • daiDai(DAI)$1.00-0.01%
  • litecoinLitecoin(LTC)$57.481.89%
  • uniswapUniswap(UNI)$7.070.07%
  • avalanche-2Avalanche(AVAX)$8.931.53%
  • CantonCanton(CC)$0.0990470.51%
  • USD1USD1(USD1)$1.000.01%
  • suiSui(SUI)$0.931.29%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.230.33%
  • hedera-hashgraphHedera(HBAR)$0.075579-0.76%
  • tether-goldTether Gold(XAUT)$4,047.690.68%
  • Global DollarGlobal Dollar(USDG)$1.00-0.01%
  • paypal-usdPayPal USD(PYUSD)$1.000.00%
  • BittensorBittensor(TAO)$253.771.38%
  • shiba-inuShiba Inu(SHIB)$0.0000052.59%
  • quant-networkQuant(QNT)$196.96-3.03%
  • crypto-com-chainCronos(CRO)$0.0536101.20%
  • EthenaEthena(ENA)$0.201874-2.23%
  • BitwayBitway(BTW)$1.7419.46%
  • Ripple USDRipple USD(RLUSD)$1.00-0.02%
  • MemeCoreMemeCore(M)$1.106.33%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.03%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • okbOKB(OKB)$110.331.60%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • pepePepe(PEPE)$0.00000514.75%
  • aaveAave(AAVE)$133.340.76%
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

Meta’s Waddle World Is A Tamagotchi-Like AI Pet App

OLX Group Unveils Agentic Selling and DealFinder at CLAIM Summit – Unite.AI

ShareTweetSendSharePin

Related Posts

Meta’s Waddle World Is A Tamagotchi-Like AI Pet App
AI & Technology

Meta’s Waddle World Is A Tamagotchi-Like AI Pet App

October 28, 2026
OLX Group Unveils Agentic Selling and DealFinder at CLAIM Summit – Unite.AI
AI & Technology

OLX Group Unveils Agentic Selling and DealFinder at CLAIM Summit – Unite.AI

October 28, 2026
BUZZ HPC Lands 9M Fixed-Rate Credit Facility for Cohere GPU Cluster – Unite.AI
AI & Technology

BUZZ HPC Lands $129M Fixed-Rate Credit Facility for Cohere GPU Cluster – Unite.AI

October 28, 2026
iOS 27.2 Brings Two New Features To Apple’s CarPlay
AI & Technology

iOS 27.2 Brings Two New Features To Apple’s CarPlay

October 28, 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
Rapid-fire questions with Becky G

Rapid-fire questions with Becky G

October 25, 2026
The Mistake iPhone Duo Buyers Can Easily Avoid

The Mistake iPhone Duo Buyers Can Easily Avoid

October 26, 2026
Stock Market Today: Dow stays flat, Nasdaq and S&P 500 surge as oil prices fall and chip stocks bounce – MarketWatch

Stock Market Today: Dow stays flat, Nasdaq and S&P 500 surge as oil prices fall and chip stocks bounce – MarketWatch

October 27, 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!