Summarize the following text in less than 50 words. Let's think step by step: tai #109: cost and capability leaders switching places with gpt-4o mini and llama 3.1? author(s): towards ai editorial team originally published on towards ai. what happened this week in ai by louie this was another huge week for foundation llms, with the release of gpt-4o mini, the leak of llama 3.1 model scorecards, new models from mistral, and a 2.5t token high-quality open dataset out with apple's dclm-7b model. in a somewhat unexpected (at least six months ago) reversal of fortunes with closed api 4o mini overtaking llama 3.0 for cost-effectiveness according to model scorecard leaks llama 3.1 405b actually beats the leading closed api models on capability (at least on some metrics such as mmlu-pro). elon musk also signaled that xai has truly started competing in the race, with grok 2 due in august and a 100k single rdma fabric h100 gpu data center beginning to train grok 3 this week (aiming for a december release). openai's new gpt-4o mini release was a highlight this week, bringing much faster speeds and 29x lower cost relative to gpt-4o and, surprisingly, also almost 3x lower price than gpt-3.5 turbo. (note: these prices assume a 3:1 input-to-output token ratio). gpt-3.5-turbo had almost no use cases left relative to cheaper, smarter models elsewhere (both open and closed), so openai was long overdue a new low-price tier model. the new model also supports up to 16k output tokens a very significant upgrade in our view and helping use cases such as translation and code or style conversion. this new model is extremely attractive for many applications. however, using gpt-4o is still likely to make more sense for complex, coding, and image tasks. sam altman stated the new model is already processing 200 billion tokens per day. the new gpt-4o-mini pricing also makes it 34 times cheaper than llama 3.070b (via together.ai) while delivering largely superior metrics. although this challenges open-source model adoption, there are still data security and privacy advantages to using open-source models, as well as increased flexibility for fine-tuning and adaptation. there are also easy wins on inference cost, such as quantization from fp16 to fp8 or int4, and some of these have been adopted and rolled out for llama 3.0 at together.ai this week. groq also released new llama 3.0 options with an open-source tool use fine-tune that reached the #1 position on bfcl (berkeley function calling leaderboard), beating all other models. meta is fighting back this week with the release of its llama 3.1 models. according to leaks, the instruction-tuned model reportedly scores 73.3% on mmlu-pro relative to gpt-4o (72.55%) and claude 3.5 sonnet (72.83%). the 3.1 model series also has significant improvements to the 8b and 70b models (we assume coming from distillation from the 405b models), particularly on coding. we look forward to more info about llama 3.1 from the full model release and seeing where capability really gets to for real-world use cases. while leading closed models have moved to an inference-efficient mixture of experts architecture, we think the llama 3.1 models remain a dense architecture. this can cause some challenges for inference of the 405b model, and we expect it will be expensive, relatively slow, and mostly used via quantized versions. competition at the leading edge of llms is certainly heating up, and it is only getting easier to train llms now that large h100 clusters are available at many companies, open datasets are released, and many techniques, best practices, and frameworks have been discovered and released. however, it is not all one-way traffic, and the success of llms is not without its consequences. a new study from the data provenance initiative found that as much as 25% of high-quality data from popular ai training sets have been restricted in the past year. publishers are updating robots.txt and changing terms of service to prevent ai scraping. this response is likely partly to protect against reduced traffic as more users get their information directly from llm models. however, we expect it is also a consequence of openai and others increasingly bidding large amounts for access to datasets from companies like the associated press. this creates a spiraling incentive structure where companies close access to their websites to scraping and the open internet, enabling them to monetize access via large contracts with ai labs. why should you care? continuing the 2024 trend of rapid llm cost reduction, openai's gpt-4o mini averages about 140x cheaper than gpt-4 was at its release just 16 months ago while also performing better on most benchmarks. it is also 230x cheaper and vastly better than the gpt-3 da vinci 002, released in august 2022 and the best model at the time. matt holden noted on x/twitter that in the early days of cloud storage in its first decade (20062016), amazon s3 cost per gb of storage dropped 86% (or ~97%, including glacier). the speed of ai cost reduction is dramatically faster, potentially enabling much more rapid adoption relative to cloud computing. with gpt-4o-mini, now anybody essentially has access to unlimited interns who can each read ~70,000 words and write 16,000 words for $0.02 in under one minute. this is an incredibly valuable resource for aiding people in performing existing work tasks and also in enabling new ones. however, it still takes imagination to figure out how and where you can use llms, as well as efforts to understand their strengths and weaknesses and diligence in providing clear instructions and checking answers. many tasks also still require a lot of work on data preparation, prompting, fine-tuning, rag, tool use, and surrounding software and ui/ux to get llms to a sufficient level of reliability. we think llm adoption is only getting started, and the increased level of competition, both with open and closed foundation models, will only accelerate it further! louie peters towards ai co-founder and ceo this issue is brought to you thanks to brilliant: ai is getting smarter. are you? understand the concepts powering the technology shaping our world from llms like chatgpt to quantum computers through interactive, bite-sized lessons. or feed your curiosity by exploring thousands of lessons on topics from ai to black holes to going viral on twitter. brilliant's first-principles approach helps you build understanding from the ground up. meanwhile, each lesson is packed with hands-on problem-solving that lets you play with concepts. join 10 million learners worldwide and start your 30-day free trial today! plus, towards ai readers get a special 20% off a premium annual subscription. hottest news openai introduced gpt-4o mini, its latest small ai model. the company says the gpt-4o mini is cheaper and faster than openai's current cutting-edge ai models. gpt-4o mini scores 82% on mmlu and currently outperforms gpt-41 on chat preferences in the lmsys leaderboard. the model is available for developers and consumers through the chatgpt web and mobile app. 2. progress at xai on grok-2 and a 100k training cluster for grok-3 elon musk announced that xai's grok-2 finished training in june using approximately 15,000 h100s (we think on oracle cloud). the team is now fine-tuning and debugging, with plans to release the model in august and hoping to match gpt-4's capabilities. musk also revealed that xai's new data center in memphis has begun training following surprisingly rapid progress in construction and installation. this center will feature a training cluster with 100k liquid-cooled h100s on a single rdma fabric (we understand 32k are already operational)l. musk claims it is the most powerful ai training cluster in the world. while several leading ai companies are also building 100k+ clusters, it's possible that xai is the first to have 100k on a single fabric. the company has started training grok-3 on the new cluster, aiming to complete training in 34 months and release the model in december. 3. mistral ai and nvidia unveil mistral nemo 12b, a cutting-edge enterprise ai model mistral ai and nvidia released mistral nemo 12b, a state-of-the-art 12b model with 128k context length. mistral nemo uses a new tokenizer, tekken, based on tiktoken and trained on more than 100 languages. it compresses natural language text and source code more efficiently than the sentencepiece tokenizer used in previous mistral models. weights for the base and instruct models are hosted on huggingface. 4. groq introduces two new open-source models specifically designed for tool use groq released two new open-source models specifically designed for tool use: llama-3-groq-70b-tool-use and llama-3-groq-8b-tool-use, built with meta llama-3. they used full fine-tuning and direct preference optimization (dpo) to achieve state-of-the-art tool use performance. per the report, no user data was used in the training process. 5. andrej karpathy introduced eureka labs andrej karpathy, former head of ai at tesla and researcher at openai, is launching eureka labs, an "ai native" education platform. the company is starting with a more traditional approach to teaching with its ai course llm101n. 6. microsoft unveiled spreadsheet llm microsoft has unveiled "spreadsheetllm," a new ai model designed to understand and work with spreadsheets. it addresses the challenges of applying ai to the widely used but complex spreadsheet format by combining the power of llms with the structured data in spreadsheets. 7. a survey on the adoption of chatgpt a large-scale survey experiment in denmark involving 100,000 workers from 11 occupations examined the adoption of chatgpt. the study found it could halve working times in 37% of the job tasks for the typical worker. chatgpt is widely used in exposed occupations, with adoption rates ranging from 79% for software developers to 34% for financial advisors. however, significant inequalities have emerged: women are 20 percent less likely to use chatgpt than men, and chatgpt users already had higher earnings before its arrival. 8. apple released dclm-7b, a 7b open-source llm trained on the dclm-baseline dataset apple released dclm-7b, an 7b open-source llm with fully open weights, training code, and dataset. the model was trained on 2.5t tokens on open datasets. while the benchmark performance of the model falls behind existing open-source alternatives this release is significant as it is the first time a cleaned, high-quality dataset of this scale has been made fully open. we think this can contribute to easier experimentation on new model architectures. however, training a model on a dataset of this scale still requires significant funding! 9. together ai announced inference engine 2.0, a new inference stack together ai released a new inference stack, which provides a 4x faster decoding throughput than open-source vllms. the together inference engine achieves over 400 tokens per second on meta llama 3 8b. they also introduced together turbo and together lite endpoints that enable performance, quality, and price flexibility. together turbo and together lite endpoints are available for llama 3 models. five 5-minute reads/videos to keep you learning to achieve optimal model performance in machine learning projects, defining the problem, understanding the context, and analyzing the dataset in detail is important. this article outlines five actionable tips essential for training machine learning models. 2. train a llama model from scratch this quick and easy-to-follow tutorial explains the process of training a language model using the llama model architecture and the transformers library. 3. step-by-step tutorial to create a coding agent with gpt-40-mini this is a step-by-step video tutorial for creating a coding agent with gpt-4o-mini. it shows how you can use claude engineer to create your own custom version with gpt4o mini as the model. llms always "make stuff up": we call it a hallucination when the output is noticeably incorrect or inappropriate. this article identifies two main categories of hallucinations, factuality and faithfulness hallucinations, and highlights their impact, mitigation strategies, best practices, and more. 5. building a multi-agent ai application with llamaindex, bedrock, and slack integration: a technical journey part 1 this article series will teach you how to build a multi-agent ai app. in the first part, the author starts with a single agent as a proof of concept (poc). they use a function-calling agent, with each function responsible for a specific data retrieval algorithm, and leverage existing tools like aws bedrock and slack to streamline knowledge sharing within our organization. 6. long context this guide explores the basics of the context window, how developers should think about long context, various real-world use cases for long context, and ways to optimize the usage of long context. repositories & tools - mem0 provides a self-improving memory layer for llms, enabling personalized ai experiences across applications. - the cradle framework enables nascent foundation models to perform complex computer tasks using the same unified interface humans use. - cosyvoice is a large multilingual voice generation model with multilingual voice generation, cross-lingual voice cloning, and instruction-following capabilities. - open gpu kernel modules repository is the source release of the nvidia linux open gpu kernel modules. - e5-v is a new framework that adapts multimodal large language models (mllms) to create universal multimodal embeddings. top papers of the week this paper presents dit-moe, a sparse version of the diffusion transformer. it is scalable with dense networks and exhibits highly optimized inference. it includes two simple designs: shared expert routing and expert-level balance loss, thereby capturing common knowledge and reducing redundancy among the routed experts. 2. graphfm: a scalable framework for multi-graph pretraining this paper introduces the graph foundation model, trained on 152 datasets with over 7.4 million nodes and 189 million edges spanning diverse domains. this work shows that multi-graph pretraining can significantly reduce the burden imposed by the current graph training paradigm by creating a single generalist model that performs competitively across a wide range of datasets and tasks. 3. reliable and efficient concept erasure of text-to-image diffusion models this paper presents reliable and efficient concept erasure (rece), a novel method that erases inappropriate content from diffusion models in just 3 seconds without needing extra fine-tuning. rece leverages a closed-form solution to derive new target embeddings, which can regenerate erased concepts within the unlearned model. 4. fully non-linear neuromorphic computing with linear wave scattering this paper presents a new way of implementing a neural network with an optical system, which could make machine learning more sustainable. it relies on linear wave scattering and yet achieves non-linear processing with a high expressivity. the key idea is to inject the input via physical parameters that affect the scattering processes. 5. prover-verifier games improve legibility of llm outputs in this paper, researchers trained strong language models to produce text that is easy for weak language models to verify and found that this training also made the text easier for humans to evaluate. when the problem-solving process of strong models is optimized for getting the correct answer, the results can become harder to understand. this finding highlights the importance of correctness, clarity, and ease of verification in ai-generated text. 6. robotic control via embodied chain-of-thought reasoning this paper introduces embodied chain-of-thought reasoning (ecot) for vision-language-action models. ecot enhances the decision-making capabilities of robot control systems by enabling them to reason about tasks, sub-tasks, and their environment before taking action. quick links 1. towards ai has partnered with o'reilly to make our latest resources more accessible on their learning platform. through this partnership, our latest book, "building llms for production," and two exclusive 'shortcut' video series on llms and generative ai research are now available on the o'reilly learning platform. 2. google, openai, microsoft, amazon, and others are joining the coalition for secure ai (cosai). the initiative addresses a "fragmented landscape of ai security" by providing access to open-source methodologies, frameworks, and tools. other companies joining cosai include ibm, paypal, cisco, and anthropic. 3. fei-fei li, the renowned computer scientist known as the "godmother of ai," has created a startup dubbed world labs. it's valued at more than $1 billion in just four months. world labs hopes to use human-like visual data processing to make ai capable of advanced reasoning. 4. in a new funding round, cohere was valued at $5.5 billion, making it one of the world's most valuable artificial intelligence companies and one of the largest startups in canada. the company has also raised $500 million in series d funding. 5. nvidia is preparing a version of its new flagship ai chip for the chinese market. nvidia will work with inspur, one of its major distributor partners in china, on the launch and distribution of the chip, tentatively named the "b20." 6. in the latest study, openai researchers found prover-verifier games improve legibility of language model outputs. they explored training strong language models to produce text that is easy for weak language models to verify, and this training also made the text easier for humans to evaluate. who's hiring in ai senior devops engineer @nvidia (santa clara, ca, usa) research engineer, horizons @anthropic (remote/usa) machine learning researcher @lambda (remote/usa/canada) freelance ai artists @klick (remote) prompt engineering fellow @khan academy (remote/usa/canada) ml data associate-ii, agi (s), artificial generalized intelligence data services (agi-ds) @amazon (costa rica) senior full stack engineer, growth @dbt labs (remote/brazil) interested in sharing a job opportunity here? contact [email protected]. think a friend would enjoy this too? share the newsletter and let them join the conversation. join thousands of data leaders on the ai newsletter. join over 80,000 subscribers and keep up to date with the latest developments in ai. from research to projects and ideas. if you are building an ai startup, an ai-related product, or a service, we invite you to consider becoming a sponsor. published via towards ai