<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Enrique Castera on Medium]]></title>
        <description><![CDATA[Stories by Enrique Castera on Medium]]></description>
        <link>https://medium.com/@ecastera?source=rss-557efd58b391------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Ed_NRvwcQPTE2Rza</url>
            <title>Stories by Enrique Castera on Medium</title>
            <link>https://medium.com/@ecastera?source=rss-557efd58b391------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 03:34:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ecastera/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Democratizing AI: The Only Path to Taming the Cambrian explosion]]></title>
            <link>https://medium.com/@ecastera/democratizing-ai-the-only-path-to-taming-the-cambrian-explosion-dd1358e350a1?source=rss-557efd58b391------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd1358e350a1</guid>
            <category><![CDATA[democratize-ai]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[language-model]]></category>
            <dc:creator><![CDATA[Enrique Castera]]></dc:creator>
            <pubDate>Tue, 20 Jun 2023 09:48:40 GMT</pubDate>
            <atom:updated>2023-06-20T13:26:29.760Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The dawn of open source language models (LLMs) is upon us. We’re experiencing a Cambrian explosive growth as we speak in AI and specifically in language models capabilities. The potential for open source is limitless, and we are only just beginning to see the possibilities. The open source era for language models is here, and it’s time to embrace this new approach.</em></p><p><em>LinkedIn article </em><a href="https://www.linkedin.com/pulse/democratizing-ai-only-path-taming-cambrian-explosion-caster%C3%A1-garcia"><em>link</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*ZXR4yYUXQ5FdWPEmA-isWQ.png" /><figcaption>Generated by Stable Diffussion on my PC</figcaption></figure><p>The story begins with the observation that training large language base models remains extremely expensive and time-consuming, requiring huge computing resources and months of training. To put all these in perspective the creation of ChatGPT predecessor GPT-3, being a marvelous feat of engineering, was done on 1024 GPUs, took 34 days with estimated cost of roughly $5M. Not to speak the energy required 1287 MWh and associated carbon footprint.</p><p>But in the recent couple of months the release of powerful LLM base models and community advancements built upon them have made it possible to achieve remarkable results with more manageable smaller models by fine-tuning. Instead of re-training the base-model, fine-tuning has shown to be surprisingly effective and cheap thanks to recent advances and techniques such as <strong>Parameter Efficient Training (PEFT), LoRA (Low Rank Adaptation) and quantization libraries</strong>.</p><p>All these techniques driven by researchers, developers and a vibrant and enthusiast community most of the time restricted in resources, enables efficient fine-tuned AI models to achieve incredible performance on a wide range of tasks comparable to their big brother’s counterparts. What is more important, <strong>this represent a big leap in democratizing AI with more manageable, smaller model sizes that can run on affordable PC systems and/or servers.</strong></p><p>In terms of training times<strong> we are talking about days while cost of it’s reduced to hundreds/thousands of USD</strong>. Note that the cost for pre-training the base model remains still prohibitive.</p><p>This combination of factors has led to an explosion of LLM’s research and development, with a multitude of open-source projects and initiatives emerging every week. While the open-sourcing of LLaMA models by Meta AI has been a significant milestone, it’d be a shame to let it stand alone. By focusing on open sourcing and collaborative development, we can create a vibrant and diverse ecosystem that fosters innovation and drives the AI field forward.</p><p>Are you excited about the potential of Open LLMs?</p><h3>Size Matters, but…</h3><p>As the field continues to advance is it a common practice to use parameter count as a proxy for measuring a language model potential performance. However it is essential to remember that it’s not the only factor: <strong>training data quality, diversity as well as the model architecture, smart training processes and fine tuning techniques, are also crucial factors that heavily impact the final performance</strong>. Recent research suggests that open-source models have still some way to catch up to their business counterparts but they are closing the gap very quickly, <strong>much faster than initially expected.</strong> This has become topic of debate among experts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XiSpBIJ5Ta6Q6syV" /></figure><h3>Open Source Alternatives</h3><p>These innovative open-sourced alternatives to ChatGPT demonstrate how a few billion parameter LLMs (10x-20x smaller in size) can rival or outperform much larger models. Second <strong>these smaller, more manageable models can be refined and fine-tuned on custom datasets at a very low cost (x1000 times), greatly optimizing overall deployment in production cycle</strong>. Moreover, the rapid advancement in open source LLMs has led to a thriving ecosystem where researchers can build upon each other’s work in a more accessible manner than in a closer ecosystem.</p><p>We’re talking about a sweet spot range between 7–13 billion parameters because these can run with acceleration on a strong consumer-grade PC with the amount of VRAM commonly found in today’s gaming GPU such as Nvidia 3060.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x42iJ89VJZEs33KK" /></figure><p><a href="https://lmsys.org/blog/2023-03-30-vicuna/">https://lmsys.org/blog/2023-03-30-vicuna/</a></p><h3>Small but performant models can power up your applications</h3><p>These models provide alternatives to businesses that want to use affordable AI in their applications. Today, they have access to low-cost models that can run on their own servers or edge devices and can be updated with their own data frequently with a very small budget. Think about assistants, chat-bots, games, automatic research agents, real time translation, meeting transcriptions and notes, multimodal, imaging… With benefits such as increased privacy, lower running and deployment costs, low latency and security associated to offloading to the edge devices instead of running everything from the cloud, of course there’s a trade off for quality.</p><p>The impact of the rapid developments in the LLM ecosystem has a strong effect on local inference. <strong>Simply put, what was not possible a couple of months ago, it’s now feasible</strong>. Running your model with acceptable performance using specific AI accelerators such as CPU, XPU or GPUs in a local PC/server is now possible. Intel has an exciting roadmap for client devices in this direction.</p><p>First by using lower precision models (4 bits, int8, fp16), with the help of <strong>Intel Quantization Library, Intel Extension for Pytorch, Intel Neural Compressor</strong> or community projects such as <strong>AutoGPT, bitsandbytes</strong> library to name a few, combined with other fine-tuning techniques like PEFT/LoRA, developers can achieve <strong>usable performance and efficiency in local inference on different types of hardware</strong>. Second, these techniques allow for cheap and effective fine-tuning of LLMs can also be applied to optimize local inference on different types of hardware, including CPUs, XPUs, and GPUs. <strong>This does not mean that the market for cloud-based language models will go away, simply there’s now an option on the table that was not there a couple of months ago</strong>. And I bet that this path is the one that will grow faster.</p><p>Second, the availability of more permissive and open LLM base models will have an strong impact on local inference quality on different types of hardware. With more open models, researchers can experiment with different architectures and approaches to optimize local inference for different types of hardware.</p><p>There are still challenges to overcome, we still need open and accessible pre-trained models but this is also changing rapidly as we will see.</p><h3>What does it means for large companies?</h3><p>As you probably read in the news <strong>a recent leaked internal Google document claimed that open source AI will out compete Google and OpenAI: </strong><em>“…holding on to a competitive advantage in technology becomes even harder now that cutting edge research in LLMs is affordable. Research institutions all over the world are building on each other’s work, exploring the solution space in a breadth-first way that far outstrips our own capacity. We can try to hold tightly to our secrets while outside innovation dilutes their value, or we can try to learn from each other.”</em></p><p>Interestingly, the explosion of this movement was triggered by the release of Meta’s LLaMA, which are a series of high-quality, research-grade models, ranging from 7B to 65B parameters, and trained for long periods of time. Mark Zuckerberg said the reason why Meta released so much to the public domain was to make their internal tools the default in AI construction so that integrating and implementing new innovations become painless.</p><p>While some of these models are currently only available for research purposes, there is a growing movement to make them more accessible and permissive for commercial usages. This led to a plethora of LLaMA-based models from different universities and organizations named after funny animals from <em>”camelidae”</em> family such as <strong>Alpaca, Vicuna</strong> created on top of LLaMA that were fine-tuned for instruction-following like ChatGPT.</p><p>However, now, as it appears, we might have a new contender, called <strong>Falcon</strong>. Developed by the Technology Innovation Institute (TII) in Abu Dhabi, United Arab Emirates, Falcon offers better performance than LlaMA in some tests and comes in three variants-1B, 7B, and 40B.</p><h3>Conclusion — Democratize AI</h3><p>The world of large-language models and associated techniques and instruments for training and fine-tuning these models is experiencing an explosion of activity. This phenomenon, often referred to as a ‘Cambrian Explosion’, is marked by a flurry of innovation, experimentation, and exploration of the models’ potential applications.</p><p>Releasing language models to the open source community can help to increase their accuracy and make them more transparent and accessible to people.</p><p>A historic event is unfolding before us, and we should resist being guided primarily by a handful of large companies with their own agendas. Fostering open-sourced, encouraging public agencies &amp; private companies collaboration, aiding developers &amp; researchers, and looping users in can all contribute to improved results. Additionally community and ecosystem self-regulation, audits and transparency can prevent restrictions, cultural bias and help to circumvent any barriers. It’s a positive step towards more transparency and freedom of information, and probably the best way forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/0*ID7rlU4LKnf9RIl3" /></figure><h3>Links and References</h3><ul><li>Intel Models in HuggingFace — <a href="https://huggingface.co/Intel">https://huggingface.co/Intel</a></li><li>Intel to train 100K Europeans by 2025 — <a href="https://community.intel.com/t5/Blogs/Intel/Policy-Intel/Intel-Joins-EU-Deep-Tech-Talent-Initiative/post/1470675">https://community.intel.com/t5/Blogs/Intel/Policy-Intel/Intel-Joins-EU-Deep-Tech-Talent-Initiative/post/1470675</a></li><li>LLM Tuning &amp; Dataset Perspectives — <a href="https://magazine.sebastianraschka.com/p/ahead-of-ai-9-llm-tuning-and-dataset">https://magazine.sebastianraschka.com/p/ahead-of-ai-9-llm-tuning-and-dataset</a></li><li>Dr Alan D. Thompson blog — <a href="https://lifearchitect.ai/models/">https://lifearchitect.ai/models/</a></li><li><a href="https://www.businessinsider.com/google-openai-risk-losing-ai-race-open-source-community-2023-5">https://www.businessinsider.com/google-openai-risk-losing-ai-race-open-source-community-2023-5</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd1358e350a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>