• bitcoinBitcoin(BTC)$78,635.00-1.51%
  • ethereumEthereum(ETH)$2,474.75-1.41%
  • tetherTether(USDT)$1.00-0.01%
  • binancecoinBNB(BNB)$752.840.41%
  • rippleXRP(XRP)$1.39-1.59%
  • usd-coinUSDC(USDC)$1.000.00%
  • solanaSolana(SOL)$103.09-2.22%
  • tronTRON(TRX)$0.336859-0.09%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.060.00%
  • zcashZcash(ZEC)$1,131.08-6.33%
  • HyperliquidHyperliquid(HYPE)$84.20-2.93%
  • dogecoinDogecoin(DOGE)$0.089783-0.60%
  • RainRain(RAIN)$0.016235-2.80%
  • USDSUSDS(USDS)$1.00-0.01%
  • moneroMonero(XMR)$516.03-3.64%
  • chainlinkChainlink(LINK)$12.69-5.82%
  • whitebitWhiteBIT Coin(WBT)$76.133.40%
  • leo-tokenLEO Token(LEO)$9.21-0.37%
  • cardanoCardano(ADA)$0.217990-1.19%
  • stellarStellar(XLM)$0.1910060.08%
  • bitcoin-cashBitcoin Cash(BCH)$258.990.28%
  • daiDai(DAI)$1.00-0.02%
  • uniswapUniswap(UNI)$7.04-0.02%
  • Ethena USDeEthena USDe(USDE)$1.00-0.01%
  • litecoinLitecoin(LTC)$55.201.08%
  • USD1USD1(USD1)$1.00-0.02%
  • CantonCanton(CC)$0.105881-4.19%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.39-2.35%
  • hedera-hashgraphHedera(HBAR)$0.0813600.25%
  • avalanche-2Avalanche(AVAX)$8.061.77%
  • suiSui(SUI)$0.822.16%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • shiba-inuShiba Inu(SHIB)$0.000005-1.67%
  • nearNEAR Protocol(NEAR)$2.28-5.91%
  • 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.0581860.73%
  • tether-goldTether Gold(XAUT)$4,423.210.55%
  • MemeCoreMemeCore(M)$1.170.83%
  • Circle USYCCircle USYC(USYC)$1.140.00%
  • BittensorBittensor(TAO)$255.79-5.95%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • okbOKB(OKB)$115.541.95%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.02%
  • AsterAster(ASTER)$0.77-2.78%
  • mantleMantle(MNT)$0.62-5.57%
  • aaveAave(AAVE)$131.61-3.45%
  • pax-goldPAX Gold(PAXG)$4,426.640.53%
  • OndoOndo(ONDO)$0.377612-2.70%
  • polkadotPolkadot(DOT)$1.078.49%
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

Reducto Releases r-1: A Single Pass Document Parsing Model That Cuts Errors 20% at 1 Cent Per Page

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

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

Reducto Releases r-1: A Single Pass Document Parsing Model That Cuts Errors 20% at 1 Cent Per Page
AI & Technology

Reducto Releases r-1: A Single Pass Document Parsing Model That Cuts Errors 20% at 1 Cent Per Page

September 8, 2026
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
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
Google, Cathay Pacific Expand Contrail Avoidance Trials in Asia-Pacific – Unite.AI

Google, Cathay Pacific Expand Contrail Avoidance Trials in Asia-Pacific – Unite.AI

September 7, 2026
A rare look inside the Pope’s summer residence garden

A rare look inside the Pope’s summer residence garden

September 3, 2026
In “An Alien Mind,” OpenAI’s Jakub Pachocki Urges Shared Safety Bars – Unite.AI

In “An Alien Mind,” OpenAI’s Jakub Pachocki Urges Shared Safety Bars – Unite.AI

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!