Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 14, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 14, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 14, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 14, 2025

      I test a lot of AI coding tools, and this stunning new OpenAI release just saved me days of work

      May 14, 2025

      How to use your Android phone as a webcam when your laptop’s default won’t cut it

      May 14, 2025

      The 5 most customizable Linux desktop environments – when you want it your way

      May 14, 2025

      Gen AI use at work saps our motivation even as it boosts productivity, new research shows

      May 14, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Strategic Cloud Partner: Key to Business Success, Not Just Tech

      May 14, 2025
      Recent

      Strategic Cloud Partner: Key to Business Success, Not Just Tech

      May 14, 2025

      Perficient’s “What If? So What?” Podcast Wins Gold at the 2025 Hermes Creative Awards

      May 14, 2025

      PIM for Azure Resources

      May 14, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Windows 11 24H2’s Settings now bundles FAQs section to tell you more about your system

      May 14, 2025
      Recent

      Windows 11 24H2’s Settings now bundles FAQs section to tell you more about your system

      May 14, 2025

      You can now share an app/browser window with Copilot Vision to help you with different tasks

      May 14, 2025

      Microsoft will gradually retire SharePoint Alerts over the next two years

      May 14, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Using LM Studio to Run LLMs Easily, Locally and Privately

    Using LM Studio to Run LLMs Easily, Locally and Privately

    June 24, 2024

    Break free from limited cloud-based AI models that are too pricey and do not respect your privacy by installing LLMs directly on your computer. This empowers you with greater control over your data, all without relying on big tech companies.

    My previous articles explored building your own Private GPT or running Ollama, empowering you with advanced open source LLMs. However, these solutions often require running lengthy commands in the terminal.

    LM Studio streamlines the process entirely. Imagine a user-friendly application akin to the familiar interface of ChatGPT, where you can effortlessly download and utilize various Large Language Models.

    Installing LM Studio on Linux

    ✋
    LM Studio Linux app is currently in the beta stage.

    LM Studio provides an AppImage for Linux users. If it’s your first time installing an AppImage program, you can read our AppImage guide.

    You can download the AppImage from the LM Studio website’s homepage.

    LM Studio’s official website

    Exploring LM Studio

    Now let’s explore the LM Studio and try running some AI models for fun:

    LM Studio first look

    As you can see, on the top we have a search bar to look for any AI models, you can even paste the direct URLs of repositories from Hugging Face.

    💡
    Hugging Face is an AI company renowned for its open-source libraries, like Transformers, that facilitate easy access and development of advanced machine learning models for natural language processing and other tasks.

    Downloading the first AI Model

    It is quite easy to download AI models in LM Studio. Just search for the model, look for the relevant specs and requirements, and download it.

    For example, I am running this on my laptop with 16GB RAM on a Ryzen 5 5500U with no dedicated GPU; thus, I would look for some small models with 2B to 7B instruct parameters.

    Searching for Llama 2

    Okay all this information might intimidate you; let me explain what is happening here:

    I searched for the Llama 2 model in the search bar at the topThe left pane shows you the different models relevant to your searchOnce a model is selected, you can see its specs and download options on the right pane

    If you look closely, you will notice that there are four options that says “FULL GPU OFFLOAD POSSIBLE”. I will choose a model from those options only because LM Studio already analyzed my system resources and suggested the most suitable options.

    LLaMA 2 downloading pane

    Running LLaMA 2 model

    Once an AI model has been downloaded, let’s start chatting with the LLM.

    Load the model first and then all you have to do is go to the “Chat” section (chat bubble emoji in left), at the top, press the drop down menu that says “Select a model to load” and from below you can select any model you have downloaded.

    Loading LLaMA 2 model to chat

    Now that you have selected your model, it’s time to chat with your personal, totally private, offline AI assistant.

    Chatting with AI Model (Click to Expand)

    I have changed the default system prompt to a personalized one i.e. “You are a French language assistant AI” and I must say, the response was quite accurate.

    I know that was a prompt you weren’t expecting, but I’m learning French, so bear with me.

    Let’s ask our model to write a docker-compose file for WordPress with MySQL database:

    Writing docker-compose file in action

    It’s already been a minute and it’s still going:

    Same docker-compose file after 2 minute

    Okay, I don’t want you guys to feel the pain of waiting for it to finish. It took 4 minutes and 56 seconds. No wonder AI computing is expensive. You need good hardware (read GPU).

    This was the response if you are wondering:

    Finally a response after 4 minutes of struggle

    Final Thoughts

    If you have a powerful system with plenty of RAM and dedicated GPU(s), I highly recommend installing LM Studio.

    You have full control over your data since it runs locally on your machine. LM Studio also features a user-friendly interface and allows you to experiment with the latest AI models beyond what companies typically offer. This is truly a win-win situation.

    And yes I am well aware the system I use for testing was quite slow but I was targeting the average Joe and yes I will try to run this on a Raspberry Pi because why not, that is the fun of tinkering with technology.

    If you have suggestions for more AI tools, feel free to comment.

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleMultiple Threat Actors Deploying Open-Source Rafel RAT to Target Android Devices
    Next Article Are we Agile Yet?

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 15, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-4695 – PHPGurukul Cyber Cafe Management System SQL Injection

    May 15, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Best Free and Open Source Alternatives to Microsoft Windows Clock

    Linux

    CVE-2025-45017 – PHPGurukul Park Ticketing Management System SQL Injection Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Expanding robot perception

    Artificial Intelligence

    Offensive AI: The Sine Qua Non of Cybersecurity

    Development

    Highlights

    Development

    Europol Dismantles Kidflix With 72,000 CSAM Videos Seized in Major Operation

    April 3, 2025

    In one of the largest coordinated law enforcement operations, authorities have dismantled Kidflix, a streaming…

    CVE-2021-4455 – “WordPress Smart Product Review Plugin File Upload Vulnerability”

    April 23, 2025

    Sepsis ImmunoScore: The First FDA-Authorized AI Tool for Early Sepsis Detection and Risk Assessment

    December 30, 2024

    GitHub Copilot’s Brand New Agent Mode: A Glimpse Into the Future of Autonomous Coding

    February 8, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.