RedPajama-Data VS llm-foundry

Compare RedPajama-Data vs llm-foundry and see what are their differences.

RedPajama-Data

The RedPajama-Data repository contains code for preparing large datasets for training large language models. (by togethercomputer)

llm-foundry

LLM training code for Databricks foundation models (by mosaicml)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
RedPajama-Data llm-foundry
19 37
4,374 3,730
3.1% 4.0%
6.0 9.7
about 2 months ago 4 days ago
Python Python
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

RedPajama-Data

Posts with mentions or reviews of RedPajama-Data. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-19.
  • Choose Your Weapon: Survival Strategies for Depressed AI Academics
    1 project | news.ycombinator.com | 3 Apr 2024
    https://github.com/togethercomputer/RedPajama-Data

    Even more than that, this is web scrapped data. There are trillions of valuable tokens worth of text from the likes of pdfs, ebooks and other documents that essentially has no web presence otherwise.

    https://annas-archive.org/llm

  • How Open is Generative AI? Part 2
    8 projects | dev.to | 19 Dec 2023
    The initiative has expanded to include partners like Ontocord.ai, ETH DS3Lab, Stanford CRFM, Hazy Research, and MILA Québec AI Institute. In April 2023, they released a 1.2 trillion token dataset, mirroring LLaMA’s dataset, for training their models. These models, with parameters ranging from 3 to 7 billion, were released in September, licensed under open-source Apache 2.
  • AI will enable mass spying
    1 project | news.ycombinator.com | 5 Dec 2023
    There's a lot of speculation in the comments so I want to talk about the technology that we have __TODAY__. I post a lot about being in ML research and while my focus is on image generation I'm working with another team doing another task but not going to state it explicitly for obvious reasons.

    What can AI/ML do __today__?

    We have lots of ways to track people around a building or city. The challenge is to do these tasks through multi-camera systems. This includes things like people tracking (person with random ID but consistent across cameras), face identification (more specific representation that is independent of clothing, which usually identifies the former), gait tracking (how one walks), device tracking (based on bluetooth, wifi, and cellular). There is a lot of mixed success with these tools but I'll let you know some part that should concern you: right now these are mostly ResNet50 models, datasets are small, and they are not using advanced training techniques. That is changing. There are legal issues and datasets are becoming proprietary but the size and frequency of gathering data is growing.

    I'm not going to talk about social media because the metadata problem is an already well discussed one and you all have already made your decisions and we've witnessed the results of those decisions. I'm also not going to talk about China, the most surveilled country in the world, the UK, or any of that for similar reasons. We'll keep talking in general, that is invariant to country.

    What I will talk about is that modern ML has greatly accelerated the data gathering sector. Your threat models have changed from governments rushing to gather all the data that they can, to big companies joining the game, to now small mom and pop shops doing so. I __really__ implore you all to look at what's in that dataset[0]. There's 5B items, this tool helps retrieve based on CLIP embeddings. You might think "oh yes, Google can already do this" but the difference is that you can't download Google. Google does not give you 16.5TB of clip filtered image,text, & metadata. Or look into the RedPajama dataset[1] which has >30T tokens and 5TB of storage. With 32k tokens being about 50 pages, that's about 47 billion pages. That is, a stack of paper 5000km tall, reaching 5x the height of the ISS and is bigger than the diameter of the moon. I know we all understand that there's big data collection, but do you honestly understand how big these numbers are? I wouldn't even claim to because I cannot accurately conceptualize the size of the moon nor the distance to the ISS. They just roll into the "big" bin in my brain.

    Today, these systems can track you with decent accuracy even if you use basic obscurification techniques like glasses, hats, or even a surgical mask. Today we can track you not just by image, but how you walk, and can with moderate success do this through walls (meaning no camera to see if you want to know you're being tracked). Today, these systems can de-anonymize you through unique text patterns that you use (see Enron dataset, but scale). Today, these machines can uncanny valley replicas of your speech and text. Today we can make images of people that are convincingly real. Today, these tools aren't exclusive to governments or trillion dollar corporations, but available to any person that is willing to spend a few thousand dollars on compute.

    I don't want to paint this as a picture of doom and gloom. These tools are amazing and have the potential to do extraordinary good, at levels that would be unimaginable only a few decades ago. Even many of these tools that can invade your privacy are benefits in some ways, but just need to consider context. You cannot build a post scarce society when you require humans to monitor all stores.

    But like Uncle Ben says, with great power comes great responsibility. A technology that has the capacity to do tremendous good also has the power to do tremendous horrors.

    The choice is ours and the latter prevails when we are not open. We must ever push for these tools to be used for good, because with them we can truly do amazing things. We do not need AGI to create a post scarce world and I have no doubt that were this to become our primary goal, we could easily reach it within our lifetime without becoming a Sci-Fi dystopia and while tackling existential issues such as climate. To poke the bear a little, I'd argue that if your country wants to show dominance and superiority on the global stage, it is not done so through military power but technology. You will win the culture wars of all culture wars and whoever creates the post scarce world will be a country that will never be forgotten by time. Lift a billion people out of poverty? Try lifting 8 billion not just out of poverty, but into the lower middle class, where no child dreams of being hungry. That is something humans will never forget. So maybe this should be our cold war, not the one in the Pacific. If you're so great, truly, truly show me how superior your country/technology/people are. This is a battle that can be won by anyone at this point, not just China vs the US, but even any European power has the chance to win.

    [0] https://rom1504.github.io/clip-retrieval/

    [1] https://github.com/togethercomputer/RedPajama-Data

  • [R] RedPajama-Data-v2: an Open Dataset with 30 Trillion Tokens for Training Large Language Models
    1 project | /r/MachineLearning | 1 Nov 2023
    GitHub: https://github.com/togethercomputer/RedPajama-Data
  • RedPajama v2 Open Dataset with 30T Tokens for Training LLMs
    1 project | news.ycombinator.com | 30 Oct 2023
    Thanks for the suggestion! We will add this in the pool of features for future release. (We are currently running the current 40+ annotations on the `tail` partitions).

    If you are interested in contributing the code for these features, feel free to do a PR to https://github.com/togethercomputer/RedPajama-Data! Otherwise we will try our best effort implementation :) but we hope that this can become a community effort

    (feel free to created more issues on github for us to keep track. I created one for this https://github.com/togethercomputer/RedPajama-Data/issues/76)

  • Personal GPT: A tiny AI Chatbot that runs fully offline on your iPhone
    14 projects | /r/ChatGPT | 30 Jun 2023
    The hallucinations are coming from the LLM interpolating from the training data, substantial portions of which is scraped off of the internet. Because other peoples' prompts never leave their devices (this app makes no internet connections).
  • MosaicML Agrees to Join Databricks to Power Generative AI for All
    3 projects | /r/LocalLLaMA | 26 Jun 2023
    Compare it to red pajama, which has scripts only for preprocessing.
  • The Pile: An 800GB Dataset of Diverse Text for Language Modeling
    1 project | news.ycombinator.com | 10 Jun 2023
    I tried to find out how many "tokens" (I know: depends on the tokenizer) "The Pile" has but couldn't find it.

    As far as I understand RedPajama has 1.2T (https://github.com/togethercomputer/RedPajama-Data) and has a table in the readme listing the main parts and how many tokens each part has.

  • Dataset prep/cleaning
    1 project | /r/LocalLLaMA | 1 Jun 2023
    Then performed simple replaces on special characters, formatting and used clean_copyright_comments found in https://github.com/togethercomputer/RedPajama-Data/blob/main/data_prep/github/github_clean_dedup_local.py
  • We’re Washington Post reporters who analyzed Google’s C4 data set to see which websites AI uses to make itself sound smarter. Ask us Anything!
    4 projects | /r/IAmA | 16 May 2023
    We know that C4 was used to train Google’s influential T5 model, Facebook’s LLaMA, as well as the open source model Red Pajama. C4 is a very cleaned-up version of a scrape of the internet from the non-profit CommonCrawl taken in 2019. OpenAI’s model GPT-3 used a training dataset that began with 41 scrapes of the web from CommonCrawl from 2016 to 2019 so I think it’s safe to say that something akin to C4 was part of GPT-3. (The researchers who originally looked into C4 argue that these issues are common to all web-scraped datasets.) When we reached out to OpenAI and Google for comment, both companies emphasized that they undergo extensive efforts to weed out potentially problematic data from their training sets. But within the industry, C4 is known as being a heavily filtered dataset and has been criticized, in fact, for eliminating content related to LGBTQ+ identities because of its reliance on a heavy-handed blocklist. (https://github.com/LDNOOBW/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words ) We are working on some reporting to try to address your last and very crucial question, but it’s an open area of research and one that even AI developers are struggling to answer.

llm-foundry

Posts with mentions or reviews of llm-foundry. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-05.
  • Fine Tuning Mistral 7B on Magic the Gathering Draft
    4 projects | news.ycombinator.com | 5 Dec 2023
    Related comment from gwern: https://news.ycombinator.com/item?id=38438859

    Also - why qlora rather than a full finetune? Using LambdaLabs, It'd cost roughly the same as your quote. Cheaper I think if you're willing to gamble with fp8: https://github.com/mosaicml/llm-foundry/tree/main/scripts/tr.... And fewer hyperparameters to tune as well

  • Consortium launched to build the largest open LLM
    1 project | news.ycombinator.com | 18 Oct 2023
    Traditionally, training runs can "explode" and fail, but there are methods to incrementally back them up and resume when that happens, see https://www.mosaicml.com/blog/mpt-7b
  • Applying All Recent Innovations To Train a Code Model
    2 projects | dev.to | 11 Aug 2023
    MosaicML released the MPT-7B model, which has a context of 60k tokens, thanks to the ALiBi position encoding.
  • Fine Tuning Language Models
    1 project | news.ycombinator.com | 3 Jul 2023
    Most AI runners just ignore licensing and run LLaMA finetunes.

    But if you want to avoid the non commercial LLaMA license, you have 3 good options for a base model.

    - OpenLlama 13B

    - MPT 30B

    - Falcon 40B

    Of these, Falcon 40B is very difficult to run (slow in 4 bit, basically requires a professional GPU, no good cpu offloading yet).

    OpenLLaMA 13B only supports a context size of 2048 as of today... But that could change soon.

    So you probably want MPT instruct 30B, specifically this one:

    https://huggingface.co/TheBloke/mpt-30B-instruct-GGML

    As the page says, you can try it out on a decent PC of your own with the OpenCL build of KoboldCPP. Change it to "instruct" mode, use the template on the page, offload as many layers as you can to your PC's dGPU, and run it in instruct mode. It may already work for your summarization needs.

    If not, you can finetune it with MPT's code and summarization d

    https://github.com/mosaicml/llm-foundry

    Or train OpenLLaMA 13B with SuperHOT + summarization data using QLORA.

  • Finetune MPT-30B using QLORA
    2 projects | /r/LocalLLaMA | 3 Jul 2023
    BTW. they finally merged a MPT patch to work with lora: https://github.com/mosaicml/llm-foundry/issues/304
  • [N] Meet MPT-30B: A Fully OpenSouce LLM that Outperforms GPT-3 - Dr. Mandar Karhade, MD. PhD.
    2 projects | /r/MachineLearning | 1 Jul 2023
  • MPT-30B QLoRA on 24 GB VRAM
    2 projects | /r/LocalLLaMA | 30 Jun 2023
    Did you run into this error while using qlora on MPT30b?: https://github.com/mosaicml/llm-foundry/issues/413
  • MosaicML Agrees to Join Databricks to Power Generative AI for All
    3 projects | /r/LocalLLaMA | 26 Jun 2023
    Yes? Their github is under Apache, their base model is under apache, the training data is not theirs, and they provide scripts how to convert it for the pretrain step. They have scripts for pretraining and finetuning as well. Basically for everything.
  • Best model for commercial use?
    1 project | /r/LocalLLaMA | 26 Jun 2023
    mosaicml/llm-foundry: LLM training code for MosaicML foundation models (github.com)
  • MosaicML launches MPT-30B: A new open-source model that outperforms GPT-3
    1 project | /r/mlwires | 25 Jun 2023
    MosaicML, a company that provides a platform for training and deploying large language models (LLMs), has recently released its second open-source foundation model called MPT-30B. The model is part of the MosaicML Foundation Series and comes after the smaller MPT-7B model that was launched in May 2023.

What are some alternatives?

When comparing RedPajama-Data and llm-foundry you can also consider the following projects:

StableLM - StableLM: Stability AI Language Models

qlora - QLoRA: Efficient Finetuning of Quantized LLMs

gorilla - Gorilla: An API store for LLMs

basaran - Basaran is an open-source alternative to the OpenAI text completion API. It provides a compatible streaming API for your Hugging Face Transformers-based text generation models.

LLaMA_MPS - Run LLaMA inference on Apple Silicon GPUs.

RasaGPT - 💬 RasaGPT is the first headless LLM chatbot platform built on top of Rasa and Langchain. Built w/ Rasa, FastAPI, Langchain, LlamaIndex, SQLModel, pgvector, ngrok, telegram

AGIEval

LMFlow - An Extensible Toolkit for Finetuning and Inference of Large Foundation Models. Large Models for All.

List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words - List of Dirty, Naughty, Obscene, and Otherwise Bad Words

prompt-engineering - ChatGPT Prompt Engineering for Developers - deeplearning.ai

following-instructions-human-feedback

llm-numbers - Numbers every LLM developer should know