• bitcoinBitcoin(BTC)$80,341.004.49%
  • ethereumEthereum(ETH)$2,412.466.63%
  • tetherTether(USDT)$1.000.05%
  • binancecoinBNB(BNB)$715.683.33%
  • rippleXRP(XRP)$1.303.66%
  • usd-coinUSDC(USDC)$1.000.02%
  • solanaSolana(SOL)$95.313.89%
  • tronTRON(TRX)$0.319424-0.90%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.051.53%
  • zcashZcash(ZEC)$1,284.727.07%
  • HyperliquidHyperliquid(HYPE)$83.810.83%
  • dogecoinDogecoin(DOGE)$0.0766813.58%
  • moneroMonero(XMR)$634.091.43%
  • USDSUSDS(USDS)$1.000.04%
  • whitebitWhiteBIT Coin(WBT)$77.705.14%
  • chainlinkChainlink(LINK)$11.364.96%
  • leo-tokenLEO Token(LEO)$9.340.39%
  • cardanoCardano(ADA)$0.1959074.95%
  • stellarStellar(XLM)$0.1666694.22%
  • bitcoin-cashBitcoin Cash(BCH)$279.833.26%
  • nearNEAR Protocol(NEAR)$3.995.88%
  • uniswapUniswap(UNI)$7.637.45%
  • daiDai(DAI)$1.000.00%
  • Ethena USDeEthena USDe(USDE)$1.000.07%
  • litecoinLitecoin(LTC)$56.004.93%
  • RainRain(RAIN)$0.005957-8.35%
  • CantonCanton(CC)$0.0990633.25%
  • avalanche-2Avalanche(AVAX)$8.673.81%
  • suiSui(SUI)$0.925.27%
  • USD1USD1(USD1)$1.000.05%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.170.52%
  • tether-goldTether Gold(XAUT)$4,089.323.59%
  • hedera-hashgraphHedera(HBAR)$0.0721875.23%
  • quant-networkQuant(QNT)$201.106.11%
  • Global DollarGlobal Dollar(USDG)$1.000.02%
  • shiba-inuShiba Inu(SHIB)$0.0000053.51%
  • BittensorBittensor(TAO)$234.515.60%
  • paypal-usdPayPal USD(PYUSD)$1.000.04%
  • crypto-com-chainCronos(CRO)$0.0519764.62%
  • Ripple USDRipple USD(RLUSD)$1.000.03%
  • EthenaEthena(ENA)$0.1802606.05%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.07%
  • okbOKB(OKB)$110.483.39%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • pepePepe(PEPE)$0.0000053.54%
  • aaveAave(AAVE)$130.924.68%
  • OndoOndo(ONDO)$0.4061066.34%
  • Pump.funPump.fun(PUMP)$0.0042490.42%
  • MemeCoreMemeCore(M)$0.84-2.21%
  • 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

Hugging Face Introduces Cosmopedia To Create Large-Scale Synthetic Data For Pre-Training

March 28, 2024
in AI & Technology
Reading Time: 5 mins read
A A
Hugging Face Introduces Cosmopedia To Create Large-Scale Synthetic Data For Pre-Training
ShareShareShareShareShare

Hiring human annotators was a time-consuming and expensive technique traditionally used to create datasets for supervised fine-tuning and instruction-tuning. Due to the high cost, only a select few influential people in the area were able to create such comprehensive datasets. Nevertheless, things have altered in the past several months. Numerous top-notch synthetic fine-tuning datasets have been developed, with GPT-3.5 and GPT-4 being the most common tools.

The Phi models developed by Microsoft were pioneers in this area; they relied heavily on synthetic data for training. These outperformed larger models trained on web datasets for longer periods. With over 617k downloads in the last 30 days, Phi-2 is among the 20 most popular models on the Hugging Face hub.

Another drawback is the employment of proprietary models to produce the data, in addition to the fact that very little is known about how the Phi datasets came to be. Researchers from Hugging Face introduce Cosmopedia, a database of synthetic textbooks, blog entries, stories, blogs, and WikiHow articles produced by Mixtral-8x7B-Instruct-v0.1. It is the largest open synthetic dataset to date, with over 25 billion tokens and 30 million files.

While creating synthetic data may appear simple, it becomes very difficult to scale up while preserving diversity, which is critical for maximum performance. In this work, the team generated over 30 million Cosmopedia prompts covering hundreds of subjects with a duplicate content rate of less than 1%.

Cosmopedia’s ultimate goal is to provide an enormous amount of comprehensive synthetic data of excellent quality. To construct Cosmopedia’s prompts, the researchers merged two methods: conditioning on online data and conditioning on curated sources. They called this”seed data,” the original set of information used to create their conditions.

Curated Sources: Subjects come from trusted educational resources, including OpenStax, WikiHow, Stanford courses, and Khan. The key shortcoming of this strategy is its inability to scale, even though it produces high-quality content. 

By taking advantage of the variability in audience and generation style, it is possible to generate samples from a single topic in different formats (e.g., academic textbook vs. blog post) and for different audiences (e.g., young children vs. college students).

Web Data: With web data accounting for more than 80% of Cosmopedia’s prompts, it was clear that this approach was the most scalable. Using a dataset similar to RefinedWeb, the researchers organized millions of online samples into 145 groups. For each cluster, they determined its topic by giving Mixtral extracts from 10 randomly selected samples and asking them to identify their common topic.

After reviewing the clusters, they eliminated those that did not meet the standards for instructional value. Obituaries, explicit adult content, and celebrity gossip are some examples of content that has been removed. They continued by telling the model to create a textbook according to a web sample’s topic based on its clustering, and then they constructed prompts. 

The team conditioned the prompts on the topic only half the time and modified the audience and generation styles to promote diversity and account for any incomplete topic labeling. They used this method to create 23 million prompts in the end.

The preliminary evaluations of the models educated using the produced textbooks revealed an absence of basic knowledge and common sense indicative of a primary school curriculum. To tackle this, the researchers used texts from the UltraChat and OpenHermes2.5 instruction-tuning datasets as seed data for the prompts and constructed stories incorporating common sense and everyday knowledge. These datasets cover a wide variety of topics. 

The team utilized the text-clustering repository to apply topic clustering to the online data utilized in Cosmopedia prompts. To create 25 billion tokens of synthetic content using Mixtral-8x7B-Instruct-v0.1, they utilize the llm-swarm library. The Hugging Face Hub is utilized by this scalable synthetic data generation tool, which makes use of local LLMs or inference endpoints. It is compatible with the vLLM and TGI inference libraries. In the Hugging Face Science cluster, TGI was used to locally deploy Mixtral-8x7B on H100 GPUs. More than 10,000 GPU hours were required to generate Cosmopedia.

The team highlights that there is a chance that the seed samples or the training data for the model could be contaminated with benchmarks because this is synthetic data. They employ a decontamination pathway to remove test benchmark samples from their dataset to overcome this.

Using a 10-gram overlap, they were able to detect samples that may be tainted, just like Phi-1. Following candidate retrieval, the researchers compare the dataset sample to the benchmark using difflib.SequenceMatcher. They remove the sample if the ratio of the matched substrings’ length to the benchmark sample’s length is greater than 0.5. All of the benchmarks that were tested using the Cosmo-1B model, such as MMLU, HellaSwag, PIQA, SIQA, Winogrande, OpenBookQA, ARC-Easy, and ARC-Challenge, passed this decontamination procedure.

For data deduplication and tokenization, they used the datatrove package. Model training was carried out using nanotron, and assessment was done using lighteval.

The model outperforms TinyLlama 1.1B on MMLU, ARC-easy, OpenBookQA, and ARC-challenge, and it’s on par with Qwen-1.5-1B on OpenBookQA and ARC-challenge. Nevertheless, there are noticeable performance differences compared to Phi-1.5, indicating higher-quality synthetic generation. These differences could be attributed to the LLM employed for generation, the topic coverage, or the prompts.


YOU MAY ALSO LIKE

Snap Has More Than 30 Million Paid Subscribers Across Snapchat+ And Other Plans

Atmospheric AI Secures $10M Seed for Procurement Modeling Push – Unite.AI

Dhanshree Shenwai is a Computer Science Engineer and has a good experience in FinTech companies covering Financial, Cards & Payments and Banking domain with keen interest in applications of AI. She is enthusiastic about exploring new technologies and advancements in today’s evolving world making everyone’s life easy.


🐝 Join the Fastest Growing AI Research Newsletter Read by Researchers from Google + NVIDIA + Meta + Stanford + MIT + Microsoft and many others…

Credit: Source link

ShareTweetSendSharePin

Related Posts

Snap Has More Than 30 Million Paid Subscribers Across Snapchat+ And Other Plans
AI & Technology

Snap Has More Than 30 Million Paid Subscribers Across Snapchat+ And Other Plans

November 4, 2026
Atmospheric AI Secures M Seed for Procurement Modeling Push – Unite.AI
AI & Technology

Atmospheric AI Secures $10M Seed for Procurement Modeling Push – Unite.AI

November 4, 2026
Perplexity Adds Live Web Grounding to Its Decisions API – Unite.AI
AI & Technology

Perplexity Adds Live Web Grounding to Its Decisions API – Unite.AI

November 4, 2026
Pangram Expands Its AI Detection Tools To Video And Images
AI & Technology

Pangram Expands Its AI Detection Tools To Video And Images

November 4, 2026
Next Post
Twitch bans streams overlaid on boobs and butts

Twitch bans streams overlaid on boobs and butts

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Chilean police conduct rescues after severe flooding

Chilean police conduct rescues after severe flooding

October 29, 2026
Supreme Court Kicks Off a New Term; Latino Voters Swing Away From GOP – Oct. 5

Supreme Court Kicks Off a New Term; Latino Voters Swing Away From GOP – Oct. 5

October 31, 2026
LA Wine Staple Augustine Bar to Close as Costs Surge

LA Wine Staple Augustine Bar to Close as Costs Surge

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