Using LLM Locally
Where
Talks
hack.lu 2024
Duration
4 min
Shows how to run open-source language models on your own machine with a desktop app, including model loading and a local API server.
Summary
The talk argues that running language models on your own computer keeps your data away from online services and allows more customization than a hosted chat API. The speaker introduces LM Studio, an open-source desktop application available on several platforms. It offers an interface for finding, downloading and chatting with models, though it can feel complex for someone new to language models.
The demo starts with searching for a model and downloading a small model from Microsoft directly inside the app. The app estimates whether a given model will run well on the machine, using color indicators to show poor or workable fits. The speaker notes that lightweight models can run on modest hardware, such as a laptop with 8 GB of RAM, though more slowly. The chat view exposes settings such as how strict or creative the output should be, and models can be loaded from a list once downloaded.
The last part covers the local server, which lets code or other applications call a loaded model through an API. A planned demonstration of chatting with your own documents, using retrieval to add context to questions, was not shown because of the time limit and a software crash. The session closed with an offer to answer questions about installation and what hardware is needed.
Related talks
Breaking Ground·21 min
Anya Vesna
Shows how poisoned training data changes graph-based views of a dataset, using an open-source browser tool called GraphLeak.
Track 3·15 min
Alissa Gilbert
Shows how chatbot prompts can speed up wireless pentest tasks, from packet capture review to handshake extraction.
Talks
Shows how large language models can be used to help find vulnerabilities in open source projects.


