<?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 Henry (Haim) Ben Haim on Medium]]></title>
        <description><![CDATA[Stories by Henry (Haim) Ben Haim on Medium]]></description>
        <link>https://medium.com/@hmbenhaim?source=rss-2748f99d510e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*i-_4bOv8F_3-05afBLBBDQ.jpeg</url>
            <title>Stories by Henry (Haim) Ben Haim on Medium</title>
            <link>https://medium.com/@hmbenhaim?source=rss-2748f99d510e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:57:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hmbenhaim/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[Run AI Models Locally: A Complete Guide to DeepSeek-R1 with Ollama and Chat Interface]]></title>
            <link>https://medium.com/@hmbenhaim/run-ai-models-locally-a-complete-guide-to-deepseek-r1-with-ollama-and-chat-interface-21d1408d42cc?source=rss-2748f99d510e------2</link>
            <guid isPermaLink="false">https://medium.com/p/21d1408d42cc</guid>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Henry (Haim) Ben Haim]]></dc:creator>
            <pubDate>Mon, 03 Feb 2025 21:54:11 GMT</pubDate>
            <atom:updated>2025-02-03T22:38:02.261Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3aVTdFjQoH2Ikt6LavlCWA.png" /><figcaption>Local AI Experience — Chat Interface Demo</figcaption></figure><p>Take control of your AI interactions and protect your privacy by running powerful AI models completely offline on your own machine. This guide shows you how to set up DeepSeek-R1, a sophisticated AI model, to run locally using Ollama. Unlike cloud-based solutions, this setup ensures your data never leaves your computer — perfect for sensitive work, private conversations, and maintaining complete data sovereignty. You’ll learn the complete process from installation to having a fully functional AI system that’s both powerful and private.</p><h3>Why Run AI Models Locally?</h3><p>Privacy and data security are becoming increasingly critical in today’s digital landscape. Running AI models locally offers several compelling advantages:</p><ul><li><strong>Complete Privacy</strong> — Your data never leaves your machine. All conversations, queries, and interactions stay on your hardware, making it perfect for sensitive work or private discussions</li><li><strong>Data Sovereignty</strong> — Full control over your data and how it’s used, with no external dependencies or third-party access</li><li><strong>Offline Security</strong> — Work with AI even in air-gapped environments or when internet access is restricted</li><li><strong>No Cloud Dependencies</strong> — Freedom from API restrictions, usage limits, and potential service outages</li><li><strong>Cost-effective</strong> — No API charges or usage fees</li></ul><h3>Hardware Requirements</h3><p>I’m running this setup on a MacBook Pro with M3 Max processor, which handles the model exceptionally well. While this represents high-end hardware, the setup should work on other machines with sufficient RAM and processing power.</p><h3>Setting Up Ollama</h3><p>The installation process is straightforward on macOS using Homebrew:</p><p>Install Ollama:</p><pre>brew install ollama</pre><p>Start the Ollama server:</p><pre>ollama serve</pre><ol><li>Pull the DeepSeek-R1 model:</li></ol><pre>ollama pull deepseek-r1:32b</pre><p>You can browse other available models at <a href="https://ollama.com/">ollama.com</a>.</p><h3>Running the Model</h3><p>Once installed, you can run the model directly from the command line:</p><pre>ollama run deepseek-r1:32b</pre><p>Creating a Chat Interface</p><p>While the command line interface works, a graphical chat interface provides a better user experience. I’ve created a Next.js application that connects to Ollama and provides a clean, intuitive interface.</p><h3>Setting Up the Chat Interface</h3><p>Clone the repository I have created:</p><pre>git clone https://github.com/hmbenhaim/ollama-chat</pre><p>Install dependencies:</p><pre>cd ollama-chat<br>npm install</pre><p>Start the development server:</p><pre>npm run dev</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*72tsqgcD42znNwvoAUoXVg.gif" /><figcaption>Ollama local AI chat in action</figcaption></figure><p>The application will connect to Ollama on port 11434 by default. If your Ollama instance is running on a different port, you can modify this in the settings.</p><h3>Key Features</h3><ul><li>Clean, intuitive chat interface</li><li>Model selection through settings</li><li>Configurable API endpoint</li><li>Real-time responses</li><li>Mobile-responsive design</li></ul><p><a href="https://github.com/hmbenhaim/ollama-chat?tab=readme-ov-file#demo">https://github.com/hmbenhaim/ollama-chat?tab=readme-ov-file#demo</a></p><p>Technical Details</p><p>The chat interface is built with:</p><ul><li>Next.js for the frontend framework</li><li>Tailwind CSS for styling</li><li>WebSocket connection to Ollama</li><li>Dynamic model switching capability</li></ul><h3>Performance and Limitations</h3><p>On my M3 Max MacBook Pro, the DeepSeek-R1 model performs impressively with:</p><ul><li>Quick response times</li><li>Stable performance</li><li>Minimal resource usage</li></ul><p>However, performance may vary depending on your hardware configuration.</p><h3>Conclusion</h3><p>Running AI models locally with Ollama provides a powerful, private, and flexible solution for AI interactions. Combined with a custom chat interface, it creates a professional-grade setup that can rival cloud-based solutions while maintaining complete data privacy and offline capabilities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21d1408d42cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>