<?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 Kiran Varghese on Medium]]></title>
        <description><![CDATA[Stories by Kiran Varghese on Medium]]></description>
        <link>https://medium.com/@kiranvarghesev?source=rss-d096dc7b564b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KV7VMBSqvJ-YMSCkmdQ_OA.png</url>
            <title>Stories by Kiran Varghese on Medium</title>
            <link>https://medium.com/@kiranvarghesev?source=rss-d096dc7b564b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:49:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kiranvarghesev/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[Meta Llama 3 : Next Generation Open Source LLM]]></title>
            <link>https://medium.com/@kiranvarghesev/meta-llama-3-next-generation-open-source-llm-1b49910ef94e?source=rss-d096dc7b564b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b49910ef94e</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Kiran Varghese]]></dc:creator>
            <pubDate>Thu, 18 Apr 2024 19:41:06 GMT</pubDate>
            <atom:updated>2024-04-18T19:44:42.122Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EjmhuT3nXewFsdETU-hyuA.png" /></figure><p>Meta released the Meta Llama 3 family of large language models (LLMs), a collection of pre-trained and instruction-tuned generative text models. The Llama 3 instruction-tuned models are optimized for dialogue use cases and outperform many of the available open-source chat models on common industry benchmarks.</p><p><strong>Parameters</strong>: Llama 3 comes in two sizes 8B and 70B parameters in pre-trained and instruction-tuned variants.</p><p><strong>Input</strong>: Models input text only.</p><p><strong>Output:</strong> Models generate text and code only.</p><p><strong>Training Data</strong>: Llama 3 is pre-trained on over 15T tokens that were all collected from publicly available sources.</p><p><strong>Context length</strong>: 8k</p><p><strong>Knowledge cutoff</strong>: <strong>8B</strong> — March, 2023, <strong>70B</strong> — December, 2023</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*wSli51EZHOtVLWupUo6AlQ.png" /><figcaption><a href="https://ai.meta.com/blog/meta-llama-3/">Meta Llama 3 Instruct Model Performance</a></figcaption></figure><p>Llama 3 pre-trained model also establishes a new state-of-the-art for LLM models</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*g8JyhjOzGqj-HCWUsYgoDQ.png" /><figcaption><a href="https://ai.meta.com/blog/meta-llama-3/">Meta Llama 3 Pre-trained Model Performance</a></figcaption></figure><p>Llama 3 is an auto-regressive language model that uses an optimized transformer architecture. The tuned versions use supervised fine-tuning (SFT) and reinforcement learning with human feedback (RLHF) to align with human preferences for helpfulness and safety. Both the 8 and 70B versions use Grouped-Query Attention (GQA) for improved inference scalability.</p><p>Llama 3 is intended for commercial and research use in English. Instruction-tuned models are intended for assistant-like chat, whereas pre-trained models can be adapted for a variety of natural language generation tasks.</p><p>Llama 3 models will soon be available on AWS, Databricks, Google Cloud, Hugging Face, Kaggle, IBM WatsonX, Microsoft Azure, NVIDIA NIM, and Snowflake, and with support from hardware platforms offered by AMD, AWS, Dell, Intel, NVIDIA, and Qualcomm.</p><p><strong>Reference:</strong></p><p><a href="https://ai.meta.com/blog/meta-llama-3">https://ai.meta.com/blog/meta-llama-3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b49910ef94e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Phi-2 Microsoft’s 2.7 billion-parameter Small Language Model]]></title>
            <link>https://medium.com/@kiranvarghesev/phi-2-microsofts-2-7-billion-parameter-small-language-model-c3dd0e6bf745?source=rss-d096dc7b564b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3dd0e6bf745</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Kiran Varghese]]></dc:creator>
            <pubDate>Mon, 01 Jan 2024 11:38:52 GMT</pubDate>
            <atom:updated>2024-04-13T04:11:18.703Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*EZasr0Cba4AYIkSoO8xcrg.png" /><figcaption>Phi-2 was announced at Microsoft Ignite 2023. Source: Microsoft Research</figcaption></figure><p>Microsoft Research’s Machine Learning Foundations team has developed a suite of small language models named “Phi”. The latest, Phi-2, is a 2.7 billion-parameter model, excelling in reasoning and language understanding capabilities, showcasing state-of-the-art performance among base language models with less than 13 billion parameters. Phi-2 is now available under the MIT license which allows commercial use. On complex benchmarks, Phi-2 matches or outperforms models up to 25x larger.</p><p>Phi-2 prioritizes “textbook-quality” data and carefully curated web content over the usual massive, unfiltered web scrape. This aligns with their “Textbooks Are All You Need” research, suggesting curated data can be more effective for training language models. The data comprises a mix of synthetic datasets designed for learning common sense and general knowledge, along with selected web data filtered for educational value and quality.</p><p>Phi-2 builds upon the knowledge of a smaller model, Phi-1.5, through scaled knowledge transfer. This technique helps Phi-2 converge on training faster and achieve better benchmark scores. The comparison between Phi-2 and Phi-1.5 on various NLP tasks is shown below and based on comparison scaled knowledge transfer is an effective way to improve the performance of LLMs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*49tfLHBLTYyNc9fMgWhH7g.png" /><figcaption>Comparison between Phi-2 (2.7B) and Phi-1.5 (1.3B) models. All tasks are evaluated in 0-shot except for BBH and MMLU which use 3-shot CoT and 5-shot, respectively. Source: Microsoft Research</figcaption></figure><h4>Model Type and Training:</h4><p>Phi-2 is a Transformer-based model with a next-word prediction objective. The training for Phi-2 took 14 days on 96 NVIDIA A100 GPUs.The NVIDIA A100 Tensor Core GPU is a high-performance graphics processing unit (GPU) designed for data centers and AI workloads.</p><p>Trained on 1.4T tokens from multiple passes on a mixture of Synthetic and Web datasets for NLP and coding. Phi-2 is a base model that has not undergone alignment through reinforcement learning from human feedback (RLHF), nor has it been instruct fine-tuned. Even without explicit alignment techniques, Phi-2 exhibits better behavior regarding bias and toxicity compared to some open-source models.</p><p>The graph below shows Phi-2&#39;s safety scores across 13 demographics from ToxiGen (a benchmark for measuring toxicity in language models). A subset of 6541 sentences are selected and scored between 0 to 1 based on scaled perplexity and sentence toxicity. A higher score indicates the model is less likely to produce toxic sentences compared to benign ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zOrqAExPY7jEvAUgb1mqyw.png" /><figcaption>Phi-2’s safety scores across 13 demographics from ToxiGen (a benchmark for measuring toxicity in language models). Source: Microsoft Research</figcaption></figure><p>The intention behind crafting this open-source model is to provide the research community with a non-restricted small model to explore vital safety challenges, such as reducing toxicity, understanding societal biases, enhancing controllability, and more.</p><h3>Phi-2 Evaluation</h3><p>The table below summarizes Phi-2 performance on academic benchmarks compared to popular language models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-kmlaRSjzshTjNJmq7Njkw.png" /><figcaption>Averaged performance on grouped benchmarks compared to popular open-source SLMs. Source: Microsoft Research</figcaption></figure><p>Phi-2 achieves impressive results despite having only 2.7 billion parameters, outperforming larger models like Mistral and Llama-2 (7B and 13B parameters) on several benchmarks. Notably, Phi-2 even surpasses the 25x larger Llama-2–70B model on multi-step reasoning tasks like coding and math.</p><p>The below table presents a comparison between the Phi-2 and Gemini Nano 2 models based on Gemini’s reported benchmarks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DWnfh_2vrlcLAYV6y6sXwQ.png" /><figcaption>Comparison between Phi-2 and Gemini Nano 2 Model on Gemini’s reported benchmarks. Source Microsoft Research</figcaption></figure><p>Overall, Phi-2 demonstrates how a combination of effective data selection, efficient training techniques, and knowledge transfer can lead to a surprisingly powerful and well-behaved language model with a relatively small size. This work holds promise for developing smaller, more efficient language models with improved capabilities and reduced risk of bias and toxicity.</p><h4><strong>How to try Phi-2?</strong></h4><p>Try using the links below:</p><ol><li><a href="https://ai.azure.com/explore/models/microsoft-phi-2/version/4/registry/azureml-msr"><strong>Phi-2</strong></a><strong> is </strong>available in the Azure AI Studio</li><li>Phi-2 model is also available on the Hugging Face Transformers Library: <a href="https://huggingface.co/microsoft/phi-2">https://huggingface.co/microsoft/phi-2</a></li></ol><h4>Reference</h4><p><a href="https://www.microsoft.com/en-us/research/blog/phi-2-the-surprising-power-of-small-language-models/"><strong>Phi-2</strong>: The surprising power of small language models</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3dd0e6bf745" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MedLM Generative AI for Healthcare Industry]]></title>
            <link>https://medium.com/@kiranvarghesev/medlm-generative-ai-for-healthcare-industry-50b377df6dbc?source=rss-d096dc7b564b------2</link>
            <guid isPermaLink="false">https://medium.com/p/50b377df6dbc</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Kiran Varghese]]></dc:creator>
            <pubDate>Thu, 14 Dec 2023 17:37:07 GMT</pubDate>
            <atom:updated>2023-12-14T17:39:16.872Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HfypCs44z7WiQHp9sYteAA.png" /><figcaption>MedLM: generative AI fine-tuned for the healthcare industry. Source: Google Cloud</figcaption></figure><p>Google Cloud’s MedLM is a family of foundation models fine-tuned for the healthcare industry. <strong>MedLM</strong> is powered by Med-PaLM 2, one of the text-based models developed by Google Research. Med-PaLM 2 is the first AI system to reach a human expert level in answering questions styled after the US Medical Licensing Examination (USMLE).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eOmcwXUFREMoNA_qmZhlLg.png" /><figcaption>Source: https://arxiv.org/pdf/2305.09617.pdf</figcaption></figure><p>Med-PaLM 2 achieves state-of-the-art accuracy on several multiple-choice benchmarks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qy-RBaDM44AnIQb7paGUEA.png" /><figcaption>Comparison of Med-PaLM 2 results to reported results from GPT-4. Source: <a href="https://arxiv.org/pdf/2305.09617.pdf">https://arxiv.org/pdf/2305.09617.pdf</a></figcaption></figure><p><strong>MedLM</strong> is based on Google Research’s medically-tuned large language model, Med-PaLM 2, which is designed for question-answering and creating initial summaries from existing documentation, which should be reviewed, edited, and approved by users before utilization.</p><p>Additionally, MedLM serves educational purposes, allowing Healthcare Professionals to engage in medical question-and-answer sessions, thereby supporting their professional development.</p><p>MedLM models<strong>: </strong>There are two models under MedLM, built on Med-PaLM 2, to offer flexibility to healthcare organizations and their different needs.</p><ol><li>MedLM-large</li><li>MedLM-medium</li></ol><p>MedLM is now accessible to Google Cloud clients in the United States as part of an allow-listed general release on the Vertex AI platform. MedLM is also currently available in preview in certain other markets worldwide.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50b377df6dbc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mistral AI’s Open-source MoE Model Mixtral-8x7B]]></title>
            <link>https://medium.com/@kiranvarghesev/mistral-ais-open-source-moe-model-mixtral-8x7b-e16eaed9471f?source=rss-d096dc7b564b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e16eaed9471f</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Kiran Varghese]]></dc:creator>
            <pubDate>Tue, 12 Dec 2023 15:12:43 GMT</pubDate>
            <atom:updated>2024-11-22T00:52:52.278Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nTM28y5MP01JSxJ5lhTuBg.jpeg" /><figcaption>Mixtral 8x7B is a Sparse MoE model developed by Mistral AI. Image Credit: Mistral AI</figcaption></figure><p>Mixtral 8x7B is a Sparse Mixture of Experts (SMoE) model developed by Mistral AI. Mixtral 8x7B outperforms, Llama 2 70B on most benchmarks with 6x faster inference speed. Mixtral 8x7B establishes itself as a powerful tool for text generation and manipulation. Its multilingual capabilities, particularly in French, Italian, German, and Spanish, further expand its reach and applicability.</p><p>Additionally, with a 32K context length, Mixtral 8x7B can process and understand longer sequences of text, enabling more comprehensive and nuanced responses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nf6P6JowfVpdF7SI9xRMRg.png" /><figcaption>Comparison of Mixtral to the Llama 2 Family and the GPT-3.5 Base Model. Credit: Mistral AI</figcaption></figure><h4>Technical Architecture</h4><p>Mixtral operates as a decoder-only network with a unique feedforward block that selects from eight distinct groups of parameters. A router network at each layer chooses two groups to process each token, allowing for efficiency in parameter use.</p><p><strong>Sparse MoE architecture</strong>: Mixtral uses 8 groups of parameters (“experts”) with a dynamic router that chooses 2 experts per token, increasing parameter efficiency.<br><strong>Reduced cost &amp; latency</strong>: Only 12.9B parameters were used per token despite having 46.7B total, offering the same speed and cost as a 12.9B model.</p><p>The following figure shows the trade-off between quality and inference budget, comparing the Mistral 7B and Mistral 8x7B models to the Llama 2 models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RgV5Lrd3pNUbSvUac1O7TQ.png" /><figcaption>Comparing the Mistral 7B and Mistral 8x7B models to the Llama 2 models. Credit: Mistral AI</figcaption></figure><p>The table below provides detailed results corresponding to the figure above</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dv32uzSG0rn_ZbkaR6_-qg.png" /><figcaption>Credit: Mistral AI</figcaption></figure><h4>How to try Mixtral 8x7B ?</h4><p>Try using the below links</p><p>Perplexity AI : <a href="https://labs.perplexity.ai/">https://labs.perplexity.ai/</a></p><p>POE : <a href="https://poe.com/Mixtral-8x7B-Chat">https://poe.com/Mixtral-8x7B-Chat</a></p><p>Vercel AI : <a href="https://sdk.vercel.ai/">https://sdk.vercel.ai/</a></p><p>Replicate — <a href="https://replicate.com/nateraw/mixtral-8x7b-32kseqlen">https://replicate.com/nateraw/mixtral-8x7b-32kseqlen</a></p><h4>Reference</h4><p><a href="https://mistral.ai/news/mixtral-of-experts/">https://mistral.ai/news/mixtral-of-experts/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e16eaed9471f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google’s Gemini: A Multimodal Powerhouse]]></title>
            <link>https://medium.com/@kiranvarghesev/googles-gemini-a-multimodal-powerhouse-bacdf37e8d92?source=rss-d096dc7b564b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bacdf37e8d92</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Kiran Varghese]]></dc:creator>
            <pubDate>Sun, 10 Dec 2023 17:19:49 GMT</pubDate>
            <atom:updated>2024-01-09T13:51:54.634Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*-tOXyBMzmwKU_i9t" /><figcaption>Gemini multimodal LLM. Image: Google</figcaption></figure><h3>What is Gemini?</h3><p><strong>Google’s Gemini</strong> is a family of large language models (LLMs) developed by Google DeepMind. Gemini is natively multimodal, which means the model has the capability to process and understand multiple types of data inputs, such as text, images, audio, and video. This means Gemini is not restricted to a single mode of data (like just text or just images) but can integrate and interpret information from various sources and formats.</p><p>Gemini is trained jointly across image, audio, video, and text data to build a model with strong generalist capabilities across modalities alongside cutting-edge understanding and reasoning performance in each respective domain.</p><h3>Gemini 1.0 consists of three models:</h3><p>The Gemini family consists of Ultra, Pro, and Nano sizes, suitable for applications ranging from complex reasoning tasks to on-device memory-constrained use cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*C3SqnS3cp-DJnALx" /><figcaption>Gemini comes in three sizes, Ulta, Pro &amp; Nano, designed to cater to different computational requirements and application needs. Image: Google</figcaption></figure><p><strong>Gemini Ultra</strong>: The most powerful model, designed for large-scale tasks and research.<br><strong>Gemini Pro</strong>: Capable of a wide range of tasks and suitable for most users.<br><strong>Gemini Nano</strong>: A smaller, less powerful model designed for embedded systems and mobile devices.</p><h3>Google Gemini’s Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Paopai0tRRxG8OVdWNvXg.png" /><figcaption>Gemini supports interleaved text, image, audio, and video sequences as inputs (illustrated by tokens of different colors in the input sequence). It can output responses with interleaved images and text. Image: Google</figcaption></figure><p>While Google hasn’t fully revealed the details of Gemini’s architecture, some details have been discussed. Gemini models are built upon Transformer decoders, enhanced for stable training at scale and optimized inference on Google’s Tensor Processing Units. They support a 32k context length and employ efficient attention mechanisms, such as multi-query attention.</p><p>Gemini models are trained across various modalities (image, audio, video, text) and are capable of handling a wide range of tasks including reasoning, language coding, multimodal tasks, and more. The models exhibit significant performance improvements across numerous benchmarks and demonstrate strong capabilities in cross-modal reasoning and language understanding.</p><h3>What makes Gemini unique?</h3><p>Here are some of the key features of Gemini:<br><strong>Multimodality:</strong> The ability to handle different types of information sets it apart from most other LLMs, which are primarily focused on text.<br><strong>Performance:</strong> Gemini Ultra has been shown to outperform human experts on a large benchmark of 57 tasks, including science, history, law, and medicine.<br><strong>Efficiency: </strong>Gemini is designed to be more efficient than its predecessors, requiring less computational resources for the same level of performance.</p><h4><strong>Reference</strong></h4><p><a href="https://blog.google/technology/ai/google-gemini-ai/">Introducing Gemini</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bacdf37e8d92" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>