Run ANY Open-Source LLM Locally (No-Code LMStudio Tutorial)
Вставка
- Опубліковано 19 чер 2024
- LMStudio tutorial and walkthrough of their new features: multi-model support (parallel and serialized) and JSON outputs.
Join My Newsletter for Regular AI Updates 👇🏼
www.matthewberman.com
Need AI Consulting? ✅
forwardfuture.ai/
My Links 🔗
👉🏻 Subscribe: / @matthew_berman
👉🏻 Twitter: / matthewberman
👉🏻 Discord: / discord
👉🏻 Patreon: / matthewberman
Rent a GPU (MassedCompute) 🚀
bit.ly/matthew-berman-youtube
USE CODE "MatthewBerman" for 50% discount
Media/Sponsorship Inquiries 📈
bit.ly/44TC45V
Links:
LMStudio - lmstudio.ai/
LMStudio Tutorial 1 - • Run ANY Open-Source Mo...
Disclosures:
I'm an investor in LMStudio and CrewAI - Наука та технологія
Project idea: create a bunch of agents that are experts in specific areas, like coding, Wikipedia, reasoning, law, etc, and then an orchestrating agent. The orchestrator will be the only one the user then interacts with. The orchestrator then figures out how to respond to user queries by finding all available agents available and selecting either one or multiple to produce the best answer possible.
Either the agents have descriptions of what it’s good at or if the orchestrator can see each agents metadata and even just recognize what they’re good at by just seeing how they’re setup, that would be even better.
There are coding copilots/agents out there already, like Pythagora GPT Pilot, Devin, Devika, Auto-GPT, Github copilot, Warp...etc...
Personally, I rely heavily on the current Claude 3 Opus, OpenAI ChatGPT 4 looks like a joke next to it! 😅
Yes. a specialized and optimized LLM will outperform a general model. If one could successfully train custom specializations, having a constellations of models for specialized tasks could result in very high capacity (like a model that is 7B for Cyberpunk story structure, 7B for dialogue in a Cyberpunk setting, 7B for pacing in adventure stories, etc, you could have a a setup running like 28B for only making a cyberpunk stories, but only running a single model at a time.
I have to say I use Claude 3 Opus as a first choice for AI.
@@positivevibe142 I have both and I probably won't renew Opus as it's not giving me anything GPT doesn't, but GPT can do more
great idea! you could call it "mixture of experts"
I've been using LMStudio since your last tutorial on it, and I can attest that it's FANTASTIC to use and takes all of the headache out of setting up local AI's. TIP: In LMStudio's settings you can specify the folder to download AI models to. It's worth getting a small dedicated flash drive to store them on. That way you can play about with them without having to worry about hard drive space as the smallest models are about 5GB and the largest can get into tripple digits. Yes loading them up will take slightly longer, but inferrance won't be affected as that's done entirely from RAM (and if it's too big for the RAM then it will use your main hard drive for VRAM just like it would normally, so having it on external USB flash doesn't affect it).
Hey should I consider perplexity ai pro subscription to analysis my previous year questions of exam or free LMStudio will also be good please reply
does LM studio allow chat with documents?
I'm trying to set this up properly, but even Private GPT doesn't work as it used to
@@serikazero128Anything LLM is good for interacting with docs
@@myandrobox3427 thanks, I'll look into it
@@jayr7741 Use Perplexity for now, unless you have a really high-end machine that can run big models (2x 3090 at 24GB each).
We need more usecase and practical guides with LM studio. Love your videos. ❤
Thank you for the video, and thank you for disclosing that you are an investor in both LMStudio and CrewAI. I wish you could mention it in the video for better transparency.
Agreed. Would be highly regarded.
I considered this, maybe I should have. I didn’t want to be…show-off-y.
Are either of these public? Or are both private companies ?
Always love your reviews. Thanks!
Thanks for sharing this update and demonstrating with the examples!
The system requirements are very helpful. Thanks
Thanks Mat, what would we do without you to guide us on this journey!! I started on ollama and ran into some issues that I don't want to solve just yet but it looks like LMStudio is what I need to move to to get around the issues. Nice and timely tutorial/overview.
Such an awesome software, can't wait to see the local open source software delivering agent and llms in 5 years, will be such a ride!
I love how you move through topics and keep a concise summary of what is happening without going down rabbit holes. I learn a lot very quickly.
Thank you!
Thanks Matt! Great video as usual :) Yes please would be nice to see you build something with powering agents!
Great video, Matt - you have no longer jumped the shark. :)
best video so far, thank you for this
This is getting cooler by the day, what a gift !!! Thanks for your professionalism and dedication.
Love this type of video, thanks so much for really going into LMStudio. I"ve had the program for a dew months now but never really played with.
If you're using it for role-play also looking into Faraday, which is more setup for role-play and I find it runs the same models faster.
@@bigglyguy8429 thank you!!
Man, i like your videos. Very informative.
Loved this video, please make a playlist out of it! More inclined for people like me.
Wow this is amazing, thank you.
Looking forward to seeing you build a project .
I am not a coder so I love your videos. This agents stuff excites and terrifies me. I would love to see a project that involves writing complicated documents such as text-based games (for improvised drama type activities) where the character descriptions have clue info about other players. So, the writing agent creates setting and background and character descriptions but an editor needs to go through the full document and check and make sure clues found in one character file also show up in other files and send back to writer to reiterate until everything checks out. I can do part of this with prompting but it always needs a lot of manual editing and so a way to automate would be nice. If you can demonstrate some similar process, I would certainly be thrilled. ;-)
Great video, Matt.
fantastic, really great video
I'm hoping in the future, there will be a way to train an LLM or specialised model more easily for a beginner. Almost iPhone-friendly.
No hope bro
Oobabooga has it in UI already. You just need to have hardware which can cope it
Nice video as always 👍
Wow, this is Gold! I would love a tutorial on how to integrate this into a website.
Yes, please. Also publish your endpoints for consumers 🎉❤
Endpoints?
I would really love to see document q&a using lmstudio, because I think a lot of companies are interested in this kind of ai use.
YES to the agents locally.
Any interest in checking out Devika? Claim to be open source Devin.
I spent a good bit of time trying to get it to work but couldn’t. I’ll certainly do a review when I get it working though. Based on its popularity, I suspect it’ll evolve quickly.
@@matthew_berman If you do make a video on devika please please do a section on using it with a local LLM
Thanks for this Matthew! Super helpful overview.
Such a good way to test drive some of the local models. Great job on this and all of your other tutorials! I've really learned a lot from you vids.
LM Studio really useful
Great video
ty. great video
Thanks Matt! You're my favorite AI UA-camr. I'd love to see you build something cool, we all would I'm sure.
Does it support exl2 quants? If not that would be the only thing imssing to make the switch from textgen web ui
Fantastic, I was just playing with this today. How would you integrate AnythingLLM with these different models running in parallel and interacting through crewAI?
Please demo LM Studio and Crew AI as combo! Also this was a great demo, thanks!
Hey Matt, been following you for a long time awesome work. Does LM Studio allow different models to exist on separate GPU's
Like if you have multiple GPUs? I don’t think so
this is fire
Thanks for this video. I love this development setup. How do you properly serve it all from a cloud?
Really excellent videos on LMStudio. Does it have the capability to access local files to update chats with data newer than the cut-off date of the LLM? I'd like to be able to input locally stored ebooks and generate summaries along the lines of "What is 'This Book' about?"
Excellent video. Tqvm! Is there any video considering various option of hardwares for running local? Say various Nvidia GPUS, or AMD Rocm or even apple metal ?
Matt you tricked us yesterday with that 01 thing and that voice distraction
I think that was actually real. The presenter just wants attention, they want to get noticed when they speak (a form of narcissism).
I found the product to be interesting and the presentation to be distracting (a negative because it draws away from what is being presented).
@@erikjohnson9112 actually I think you are the narcissist and are just projecting. Transgender people have existed in every region of the Earth since before civilization itself. They're a real naturally occurring demographic. Get over it
Agents working locally!!❤
Great video thanks! Any known good models I can use for infosec & or application security (pen testing)?
LM studios and their model server is soooo easy.
im hoping they add combining and fine tuning functions or at least image/other gen models in future.
I'd love to see videos on running specific models.
I've been able to run almost every model I've downloaded but I can't seem to get StarCoder or StarCoder2 regardless of the preset I use and I've love to get it running without hallucinations, or looping the same sentence.
Another thing I'd love to know is what happened to TheBloke!! I heard he stopped converting models and I'm sure the reason behind has to be epic.
Thanks alot
This is awesome! Thanks for sharing again!! I have quick question... I want to run this on server like you showed, create a nocode app using APIs, and have users access this application. Kinda creating for a local group of users. How do you think this is going to work in terms of machine requirements. Please guide if it's good approach! 🙏🏻
👌"I have learned a lot."
Is it possible to set folders within the LLMStudio in order to do some document querying?
Phenomenal
Hey, can you share some advice for an undergrad to get into generative models, where to begin or rather what should i learn to understanding the working of LLMs and playing around with them?
Hi, I was wondering how you'd download gated models, like meta-llama/Meta-Llama-3-8B? There are quantized versions from other authors but I'd prefer to download the actual one released by Meta. Thanks
what kinda chip does your laptop have Matthew Berman? m1 m2 m3?
Considering what I was going through to install models previously, this is dumbfoundingly simple.
LMStudio is cool.....Please, make more videos on this tool....
Can someone suggest the way/tool when can I train open source model with custom data? For example with pdf.? And giving a questions in terms the given data?
Could you use these to help build an application?
There are many models of Grok to download. Do I need all the files or is there a one click download for LM studio?
Throttle: genius! LM-Studio got definitely improved. Gorgeous video!
They should get a visual node setup like comfy UI but for creating purely llm based apps.
Some generate button or whatever spits out the python code (or just runs it)
Not that it's hard to write, but some might prefer the node setup.
Hello Matthew, does LMStudio supports AMD RX GPUs to power LLM? Because i can't figure it out, and it still uses my CPU only.
Doesn't work on my Pi5 but Ollama does. They only seem to use memory when answering a prompt, so I can multiple version of Ollama running with different models, as long as I only prompt one at a time. AMD Ryzen AI and Intel Core Ultra have NPUs onboard now so no need for big GPU card.
I'm especially interested in the ability to generate multiple responses from the same model then selecting the best one. Can LM Studio do that at this time?
Hi, it is possible to upload to LM studio your own document files ex excel files, photos, pdf, txt?
Hey, what laptop would you recommend for this stuff ?
branching chat would be a dope chrome plugin
Can you install Grok from the download provided by Elon Musk? Or do you always have to use their dl link?
While you can run open source LLMs with LMStudio, LMStudio itself is *NOT* open source. I think you should probably clarify that in the video title, since it's a bit misleading.
I've re-read the title and caption multiple times since reading this comment and I'm confused as to what you find misleading?
*Btw this is not an attack.*
Unless he didn't mention it at all in the video, I think this is being ridiculously pedantic.
I switched to Ollama for that reason. It's open source and works like a charm.
@@Cross-CutFilms No problem, I didn't feel attacked at all ^^
Which I mean is that it can confuse people that read the title too fast and fail to understand that the Open-Source part refers to the models and not to LLMStudio (Like myself XD).
When I read the title I thought: "Wait, so they open-sourced LMStudio? That's great! :D"... And then I visited their page looking for a repo, came back here and I realized I didn't read it right ^_^U
I think it's very easy to understand the title wrongly as I did (even more for non native English speakers), hence my comment.
@@urphakeandgey6308If you meant my comment, sorry, I didn't want to be pedantic. I just wanted to clarify what the title wanted to say it's open source, since I got it wrong and there could be more people who also misunderstood the title.
I run anythingllm on top of this. It has a nice rag setup.
Yes pleeeease do a video using AutoAgent tutorial. Thanks.
use autogen to create a series of agents with their agent builder to run a task
will there be a memory and roleplay function implemented?
Mathew, it would be great if there was a reference listing of all your videos so we could just pick a topic and find your videos that apply so we can watch them, again..... I think you did a video with agents before that did something simular, just wish they were easier to find
Can anyone tell me what budget Nvidia GPUs can run these chatbots for coding and article and resume writing? Thanks ahead of time for the recommendations.
Amazing to me how little RAM the models use.
Time for me to get a maxed M3 Max MBP I guess, although gonna wait till after the May 7 event JIC. (I know very unlikely to have any MBP hardware impact, but I’m cautious 🙂)
If LMStudio had a built in RAG it would be perfection.
So the big question is, When are they going to start charging you money to use LMStudio ?????? You got the best content as usual !!!!!!!!!!
also you can use this with AnythingLLM for documents
DO NOT USE ANYTHINGLLM it is no longer free! Im starting to see a pattern with this video creator. As soon as he releases a video these so called free things all of the sudden become paid for versions! I used AnythingLLM one night on this computer after watching this guys video on AnythingLLM the very next morning at work i went to put it on a computer at work and it was no longer free but subscription based! I AM DONE WITH THE MONEY GAMES BASED ON PRINCIPAL! THEY ARE ALL TRYING TO CASH IN ON THIS CRAP THAT AMOUNTS TO NOTHING MORE THAN A GIMMICK A AI TREND IF YOU WILL!!! BANKRUPT THESE PEOPLE!
crew ai with claude 3 is it possible ? comparison with Devin
Hi Matthew just try to sign up for the newsletter something is broken just to let you know
Can u make or do you have a vid on how LLMs are created?
hi. what common computer spec for this ? thanks
can someone explain me importance of Ram VS Gpu vram? because for example on dolphin mixtral website the creator says you need at least 32 Gb of ram, and he's not mentioning nothing about GPU. and i taught the file size (for example 32 GB's) gets loded fully on your RAM, not on your gpu vram... im confused
Would there be any app similar to LM studio for mobile phone? I would love to run these open source LLM on my phone.
LM studio is a nice project. The only complaint I have is that it is not open source.
People can use LM Studio along with lollms as it can be run as a server and they seem to get very good output. So yeah, this is a very cool and useful tool.
I like LM Studio but I've had an issue with every single model hallucinating when I try to use the built-in server.
I can’t believe how fast it’s running, fully offloaded, on my GPU (OC 4090). I’m using Mistral Claud merged 7B Q8.
can someone tell me where did he talk about a desktop automation ai in his old videos
You need to do a troubleshooting shoot video when the download folder gets moved it ruins everything and I cant seem to line realign path
Does LLMStudio support any kind of image generation like MidJourney or ChatGPT plus ?
It's got multimodal image interpretation ability, with a Vision Adapter. For image generation, AFAIK LM Studio doesn't do that.... ComfyUI and Automatic1111 are what you'd be looking for to use all the Stable Diffusion models.
One thing which would be useful... how to sync models between LM studio and Ollama (to avoid duplication to save space).
LM Studios defaults Local models in windows is: C:\Users\User\.cache\lm-studio\models
When I point it to Ollama's in Windows 11 WSL2 ubuntu 22.04 it doesn't work ( \\wsl.localhost\Ubuntu-22.04\|usr\share\ollama\.ollama\models)
Anyone know the answer? Is it even possible?
Matthew, you should conduct a Mac vs PC Local LLM comparisons. M2,M3, RTX 4090. MBP vs Studio.
In terms of being lightweight, how does this compare to Ollama?
Hmm so which is better for a newbie VS coder dev, LM studio or Ollama
I don't think that's how the compatibility filter works. I checked for a couple models that are in a repo with tensor files. They did not show up if that filter was active. I guess they include "does not work on LM Studio" as being not compatible with your system. Because it isn't compatible with their tool? At first I thought that it's not true that every model on HF could be found on there. But for those that were missing, I then saw that they show up if that filter is off. Of course, this is a sample size of trying 3 models or something. May be outliers. But do any models that are not GGUF work on LM Studio?
Wow finally an UI with documentation? I always hated that they throw all that GGUF, GPTQ, 4Q 5Q _K_M_S at you without ever telling what it means and what it needs to run.
any idea of how I could share the models of ollama with this so I don't have duplicated models?
also, for some reason, when you ask for a joke, it usually tells you the same joke... weird.. any idea of why?
LMStudio has an option in its settings to specify a folder to download the models to. I haven't tried it myself, but I would assume simply pointing LMStudio to the same folder you've been downloading to for ollama would be all you need to do as the models are a standard format from Huggingface.
Matt, can you please tell the creators of LM Studio to include the ability to make the chat font larger.