• bitcoinBitcoin(BTC)$64,996.00-0.89%
  • ethereumEthereum(ETH)$1,880.82-2.27%
  • tetherTether(USDT)$1.00-0.02%
  • binancecoinBNB(BNB)$565.86-0.74%
  • usd-coinUSDC(USDC)$1.000.00%
  • rippleXRP(XRP)$1.10-2.60%
  • solanaSolana(SOL)$75.29-3.11%
  • tronTRON(TRX)$0.3314571.26%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.043.72%
  • HyperliquidHyperliquid(HYPE)$58.41-1.49%
  • dogecoinDogecoin(DOGE)$0.069635-3.87%
  • USDSUSDS(USDS)$1.000.00%
  • RainRain(RAIN)$0.014200-0.41%
  • leo-tokenLEO Token(LEO)$9.60-1.23%
  • zcashZcash(ZEC)$501.95-2.63%
  • whitebitWhiteBIT Coin(WBT)$56.61-1.28%
  • moneroMonero(XMR)$352.43-0.13%
  • chainlinkChainlink(LINK)$8.46-1.95%
  • stellarStellar(XLM)$0.182447-1.42%
  • cardanoCardano(ADA)$0.166178-4.91%
  • CantonCanton(CC)$0.119788-0.09%
  • daiDai(DAI)$1.000.00%
  • bitcoin-cashBitcoin Cash(BCH)$210.43-2.95%
  • USD1USD1(USD1)$1.00-0.03%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.46-3.43%
  • Ethena USDeEthena USDe(USDE)$1.00-0.01%
  • litecoinLitecoin(LTC)$46.27-1.12%
  • Global DollarGlobal Dollar(USDG)$1.00-0.08%
  • hedera-hashgraphHedera(HBAR)$0.070614-3.11%
  • suiSui(SUI)$0.73-4.63%
  • Circle USYCCircle USYC(USYC)$1.130.00%
  • avalanche-2Avalanche(AVAX)$6.25-5.38%
  • crypto-com-chainCronos(CRO)$0.056961-2.15%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.01%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • tether-goldTether Gold(XAUT)$4,055.40-0.59%
  • nearNEAR Protocol(NEAR)$1.89-0.25%
  • shiba-inuShiba Inu(SHIB)$0.000004-1.64%
  • uniswapUniswap(UNI)$3.830.12%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.14-0.05%
  • OndoOndo(ONDO)$0.392569-2.81%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.057921-8.73%
  • BittensorBittensor(TAO)$191.60-2.41%
  • pax-goldPAX Gold(PAXG)$4,051.40-0.63%
  • okbOKB(OKB)$82.23-2.88%
  • AsterAster(ASTER)$0.630.63%
  • HTX DAOHTX DAO(HTX)$0.000002-0.50%
  • Ripple USDRipple USD(RLUSD)$1.000.03%
  • MemeCoreMemeCore(M)$1.204.15%
  • usddUSDD(USDD)$1.00-0.01%
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

OpenAI AI Models Hack Hugging Face During Test

OpenAI Hack Is Day One of AI Cybersecurity: HackerOne

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

OpenAI AI Models Hack Hugging Face During Test
AI & Technology

OpenAI AI Models Hack Hugging Face During Test

July 24, 2026
OpenAI Hack Is Day One of AI Cybersecurity: HackerOne
AI & Technology

OpenAI Hack Is Day One of AI Cybersecurity: HackerOne

July 24, 2026
Alphabet Accelerates Its AI Investment
AI & Technology

Alphabet Accelerates Its AI Investment

July 24, 2026
Mobileye CEO To Step Down After 27 Years
AI & Technology

Mobileye CEO To Step Down After 27 Years

July 24, 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
Andy Burnham Becomes Labour Leader and Is Set to Be UK Prime Minister: Live Updates – The New York Times

Andy Burnham Becomes Labour Leader and Is Set to Be UK Prime Minister: Live Updates – The New York Times

July 17, 2026
American Resources: It's Getting Closer And Closer Until The Inflection Point, Maintain Buy

American Resources: It's Getting Closer And Closer Until The Inflection Point, Maintain Buy

July 23, 2026
Soccer fans in Spain celebrate their team’s World Cup win over Argentina

Soccer fans in Spain celebrate their team’s World Cup win over Argentina

July 22, 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!