<?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 DataCraft on Medium]]></title>
        <description><![CDATA[Stories by DataCraft on Medium]]></description>
        <link>https://medium.com/@datacraft?source=rss-0e01c01a4768------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*m0krmRfvmI7powkcTkR44w.png</url>
            <title>Stories by DataCraft on Medium</title>
            <link>https://medium.com/@datacraft?source=rss-0e01c01a4768------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:43:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@datacraft/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[Neurons vs Fake Neurons]]></title>
            <link>https://medium.com/@datacraft/neurons-vs-fake-neurons-e80ea6a593bc?source=rss-0e01c01a4768------2</link>
            <guid isPermaLink="false">https://medium.com/p/e80ea6a593bc</guid>
            <dc:creator><![CDATA[DataCraft]]></dc:creator>
            <pubDate>Mon, 30 Jun 2025 15:47:25 GMT</pubDate>
            <atom:updated>2025-06-30T15:47:25.726Z</atom:updated>
            <content:encoded><![CDATA[<img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e80ea6a593bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python, SQL, and Power BI.]]></title>
            <link>https://medium.com/@datacraft/python-sql-and-power-bi-5af33aca6cf4?source=rss-0e01c01a4768------2</link>
            <guid isPermaLink="false">https://medium.com/p/5af33aca6cf4</guid>
            <dc:creator><![CDATA[DataCraft]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 10:53:18 GMT</pubDate>
            <atom:updated>2025-06-06T10:53:18.286Z</atom:updated>
            <content:encoded><![CDATA[<p>There are many way sot understna dthe power fo data bal blabla b</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5af33aca6cf4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[These projects reflect my a]]></title>
            <link>https://medium.com/@datacraft/these-projects-reflect-my-a-3cb6d17bc79a?source=rss-0e01c01a4768------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cb6d17bc79a</guid>
            <dc:creator><![CDATA[DataCraft]]></dc:creator>
            <pubDate>Mon, 02 Jun 2025 17:05:24 GMT</pubDate>
            <atom:updated>2025-06-02T17:05:24.392Z</atom:updated>
            <content:encoded><![CDATA[<p>These projects reflect my approach to solving real business problems with data. From customer behavior modeling to A/B testing and performance analytics, each solution was built to uncover insight, inform strategy, and drive measurable outcomes</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cb6d17bc79a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Everything can be taken from a man but one thing: the last of the human freedoms — to choose…]]></title>
            <link>https://medium.com/@datacraft/everything-can-be-taken-from-a-man-but-one-thing-the-last-of-the-human-freedoms-to-choose-6badddf1541b?source=rss-0e01c01a4768------2</link>
            <guid isPermaLink="false">https://medium.com/p/6badddf1541b</guid>
            <dc:creator><![CDATA[DataCraft]]></dc:creator>
            <pubDate>Sun, 27 Oct 2024 22:01:10 GMT</pubDate>
            <atom:updated>2025-06-30T22:07:42.924Z</atom:updated>
            <content:encoded><![CDATA[<p>Neurol Networks and Natural Networks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/1*kVj0Xs-sCe1yiwIT4Qq2aw.png" /><figcaption>Natural and artificial neurons</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6badddf1541b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[There is another story that I will write soon, but I will start later]]></title>
            <link>https://medium.com/@datacraft/there-is-another-story-that-i-will-write-soon-but-i-will-start-later-ea97f54ea527?source=rss-0e01c01a4768------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea97f54ea527</guid>
            <dc:creator><![CDATA[DataCraft]]></dc:creator>
            <pubDate>Sun, 27 Oct 2024 22:00:18 GMT</pubDate>
            <atom:updated>2024-10-27T22:00:18.876Z</atom:updated>
            <content:encoded><![CDATA[<img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea97f54ea527" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DistilBERT Explained: Efficient NLP Models]]></title>
            <link>https://medium.com/@datacraft/there-is-somethin-3e79da851e30?source=rss-0e01c01a4768------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e79da851e30</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[DataCraft]]></dc:creator>
            <pubDate>Sun, 27 Oct 2024 21:59:36 GMT</pubDate>
            <atom:updated>2025-06-29T16:45:58.547Z</atom:updated>
            <content:encoded><![CDATA[<h3>DistilBERT: A Distilled Version of BERT for Efficient NLP</h3><p>In recent years, transfer learning has transformed NLP by making large pre-trained language models essential for many tasks. While these models achieve impressive performance, they often have hundreds of millions of parameters, and even bigger versions keep delivering better results. However, this trend raises concerns about environmental impact and makes it difficult to run such models efficiently on devices.</p><p>To address these challenges, researchers have developed methods like knowledge distillation, where a smaller “student” model learns to mimic a larger “teacher” model. DistilBERT is a notable example, retaining most of BERT’s accuracy while being significantly smaller, faster, and easier to deploy.</p><h3>What Is Knowledge Distillation?</h3><p>Knowledge distillation is a model compression technique.</p><p>A compact student model is trained to match the behaviour of a large teacher model.</p><p>Instead of learning only from true labels, the student also learns from the teacher’s output probabilities.</p><p>These “soft targets” give richer information.</p><p>They help the student capture the teacher’s knowledge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CSr0WO8Wt0M5kuJ21rYn3A.png" /></figure><h3>What Is DistilBERT?</h3><p>DistilBERT is a smaller version of BERT that was trained using knowledge distillation. Developed by the team at Hugging Face, DistilBERT retains ~97% of BERT’s performance on language understanding benchmarks while reducing the model size by 40% and inference time by 60%.</p><p><strong>How does DistilBERT reduce size?</strong></p><ul><li>It removes the token-type embeddings and the pooler.</li><li>It reduces the number of Transformer layers by half (12 → 6).</li><li>It shares weights across some layers.</li><li>It combines distillation loss with language modelling loss during training.</li></ul><figure><img alt="*Measured on CPU with a batch size of 64." src="https://cdn-images-1.medium.com/max/510/1*MUASNmWKKbHwgE1Ryd0Akg.png" /><figcaption>*Measured on CPU with a batch size of 64.</figcaption></figure><p>This makes DistilBERT great for:</p><ul><li>Mobile devices.</li><li>Real-time NLP systems.</li><li>Reducing compute costs.</li></ul><h3>Example Performance on GLUE</h3><p>DistilBERT was tested on the GLUE benchmark.</p><p>This is a suite of NLP tasks, including sentiment analysis and natural language inference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*bpV9Rmsw9SHaOFlc_2I_wQ.png" /><figcaption>Image source: Hugging Face blog</figcaption></figure><p>It performs nearly as well as BERT on most tasks.</p><h3>How to Use DistilBERT in Code</h3><p>You can use DistilBERT easily with the Hugging Face Transformers library.</p><p>Here is a simple example:</p><pre>from transformers import DistilBertTokenizer, DistilBertForSequenceClassification<br>import torch<br><br># Load pre-trained tokenizer and model<br>tokenizer = DistilBertTokenizer.from_pretrained(&#39;distilbert-base-uncased&#39;)<br>model = DistilBertForSequenceClassification.from_pretrained(&#39;distilbert-base-uncased&#39;)<br><br># Example sentence<br>sentence = &quot;DistilBERT is a lighter version of BERT.&quot;<br><br># Encode sentence<br>inputs = tokenizer(sentence, return_tensors=&quot;pt&quot;)<br><br># Forward pass<br>outputs = model(**inputs)<br>logits = outputs.logits<br><br># Get predicted class<br>predicted_class = torch.argmax(logits).item()<br>print(f&quot;Predicted class: {predicted_class}&quot;)</pre><p>You can fine-tune DistilBERT on your own dataset the same way you would fine-tune BERT.</p><h3>Conclusion</h3><p>DistilBERT shows that you can shrink huge language models without losing much performance.</p><p>As NLP models keep growing, compression methods like knowledge distillation will be key to making them sustainable.</p><p>If you work on projects where speed and efficiency matter, DistilBERT is an excellent choice.</p><h3>Further Reading</h3><ul><li><a href="https://huggingface.co/blog/distilbert">Hugging Face Blog on DistilBERT</a></li><li><a href="https://arxiv.org/abs/1910.01108">DistilBERT Paper</a></li><li><a href="https://huggingface.co/transformers/">Transformers Documentation</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e79da851e30" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>