Elastic Blog

Herding Llama 3.1 with Elastic and LM Studio

4.8内容质量
Herding Llama 3.1 with Elastic and LM Studio

TL;DR · AI 摘要

页面结构完整但正文被截断,仅保留导航栏和功能分类列表,未展示 Llama 3.1 集成的具体步骤、配置示例或实测效果。

核心要点

  • 标题指向 Llama 3.1 与 Elastic/LM Studio 协同实践,但正文内容缺失
  • 所有功能模块链接均未附带技术描述或操作指南
  • 属于未完成发布的草稿页或爬虫抓取不全的静态页
#Llama#LM Studio#Elasticsearch#RAG#AI集成
打开原文

Herding Llama 3.1 with Elastic and LM Studio | Elastic Blog

Skip to main content

New

Forrester Wave Leader, Q2 2025

Access report

About usPartnersSupport|ENLogin

[](http://www.elastic.co/)

  • Elasticsearch

##### Elasticsearch for...

##### Elasticsearch components

##### Deployment options

  • Solutions

##### Search

Overview

##### Observability

Overview

##### Security

Overview

  • Enterprise

##### Why Elastic?

Knowledge Hub

##### Industry

Financial servicesManufacturingPublic sectorRetailTelecommunicationsView all industries

##### Better together

##### Accolades

##### Customers

View all customers stories

Image 8: logo for Docusign
Image 8: logo for Docusign

[Search Docusign powers millions of e-signature searches daily with Elasticsearch](http://www.elastic.co/customers/docusign)

Image 9: logo for UOL
Image 9: logo for UOL

[Security UOL slashes incident resolution time by 80% with Elastic Security](http://www.elastic.co/customers/uol)

Image 10: logo for PepsiCo
Image 10: logo for PepsiCo

[Observability Pepsi boosts efficiency and reduces MTTR by 30% with Elastic Observability](http://www.elastic.co/customers/pepsico)

  • Resources

##### Launch

##### Learn

##### Connect

##### Get help

PricingDocs

Search

Start free trialContact sales

Blog

Company

* Solutions

* Stack + Cloud

* News

* Customers

* Generative AI

* Culture

Elasticsearch Labs

* Blogs

* Tutorials

* Examples

* Integrations

Security Labs

* Blogs

* Reports

* Tools

Observability Labs

* Blogs

Image 11: Blog feed
Image 11: Blog feed

Table of Contents

Table of contentsImage 12: icon-toc-16-blue.svg

  • Close

Herding Llama 3.1 with Elastic and LM Studio

By

Charles DavisonJulian Khalifa

September 12, 2024

Image 13: Elastic_Banner_14.jpg
Image 13: Elastic_Banner_14.jpg

The latest LM Studio 0.3 update has made Elastic’s AI Assistant for Security run with an LM Studio-hosted model easier and faster. In this blog, Elastic and LM Studio teams will show you how to get started in minutes. You no longer need to set up a proxy if you work on the same network or locally on your machine.

About Elastic AI Assistant

Over a year ago, we put the Elastic AI Assistant in the hands of our users, empowering them to harness generative AI to resolve problems and incidents faster. _Learn more about the efficiency gains of Elastic AI Assistant__._

About LM Studio

LM Studio is an explorer/IDE for local large language models (LLMs), focused on making local AI valuable and accessible while providing developers a platform on which to build.

There are several reasons users consider local LLMs, but chief among them is the ability to leverage AI without giving up sovereignty over your or your company's data. Other reasons include:

  • Enhancing data privacy and security
  • Reducing latency in threat detection
  • Gaining operational benefits
  • Securing your organization in the modern threat landscape

LM Studio provides a unified interface for locally discovering, downloading, and running leading open source models like Llama 3.1, Phi-3, and Gemini. Locally hosted models with LM Studio allow the SecOps team to use Elastic AI Assistant to help with context-aware guidance on alert triage, incident response, and more. All without requiring organizations to connect to third-party model hosting services.

How to set up LM Studio

Download and install the latest version of LM Studio.

Image 24: 1 - screenshot - unnamed chat LM Studio
Image 24: 1 - screenshot - unnamed chat LM Studio

Once installed, download your first model by navigating to the Discover tab. Here, you can search for any LLM from Hugging Face and see a list of popular models curated by LM Studio. We will be setting up the Meta Llama 3.1 8B model for Elastic AI Assistant to leverage.

Image 25: 2 - screenshot - discover tab
Image 25: 2 - screenshot - discover tab

After you’ve picked your model, head to the Developer tab. Here you’ll start a Local Server for the Elastic AI Assistant to connect to. This allows applications or devices on your local network to make API calls to whatever model you run. Requests and responses follow OpenAI's API format.

Image 26: 3 - screenshot - developer tab
Image 26: 3 - screenshot - developer tab

Click Start Server, then select Llama 3.1 8B from the dropdown menu. You’ll want to ensure the Port is configured to 1234 (it should be like this automatically). Finally, turn on Serve on Local Network. This will allow any device on your network to connect to LM Studio and call whatever model you run.

How to set up Elastic AI Assistant

For this setup, we will run Elastic in Docker. We’ll reference the article “The Elastic Container Project for Security Research” from Elastic Security Labs. Instructions are also available on GitHub.

Elastic Docker installation

  1. Install the prerequisites.
  1. Change the default passwords.
  1. Start the Elastic container.

Once Elastic is up and running, navigate to Stack Management > Connectors and create a connector. Update the URL value to include the host's IP address as 127.* address will not route. Fill in anything for the API key.

Image 27: 4 - edit connector
Image 27: 4 - edit connector

Now, in the security section, land on one of the subpages to open up the Elastic AI Assistant. Select the gear icon at the top right, and under the Conversation tab, turn streaming off.

Image 28: 5 - conversations
Image 28: 5 - conversations

Voilà! You can now use the model you previously loaded in LM Studio to power the Elastic AI Assistant and accomplish great things!

Image 29: Video thumbnail
Image 29: Video thumbnail

Elevate your security operations

This blog outlined how to easily elevate every security practitioner with Elastic AI Assistant configured with a locally hosted Llama 3.1 Model using LM Studio. This augments the security analysts' expertise by providing AI-powered guidance through triage, investigation, and response, improving productivity.

To learn more, check out our recent addition toElastic Security documentationon how to set up Elastic and LM Studio. For further information, refer to:

_The release and timing of any features or functionality described in this post remain at Elastic's sole discretion. Any features or functionality not currently available may not be delivered on time or at all._

_In this blog post, we may have used or referred to third party generative AI tools, which are owned and operated by their respective owners. Elastic does not have any control over the third party tools and we have no responsibility or liability for their content, operation or use, nor for any loss or damage that may arise from your use of such tools. Please exercise caution when using AI tools with personal, sensitive or confidential information. Any data you submit may be used for AI training or other purposes. There is no guarantee that information you provide will be kept secure or confidential. You should familiarize yourself with the privacy practices and terms of use of any generative AI tools prior to use._

_Elastic, Elasticsearch, ESRE, Elasticsearch Relevance Engine and associated marks are trademarks, logos or registered trademarks of Elasticsearch N.V. in the United States and other countries. All other company and product names are trademarks, logos or registered trademarks of their respective owners._

Share

Sign up for Elastic Cloud free trial

Spin up a fully loaded deployment on the cloud provider you choose. As the company behind Elasticsearch, we bring our features and support to your Elastic clusters in the cloud.

Start free trial

Image 40: Elastic The Search AI Company
Image 40: Elastic The Search AI Company

Follow us

About us

Join us

Partners

Trust & Security

Investor relations

Excellence Awards

© 2026. elasticsearch B.V. All Rights Reserved

This website and all associated content, software, discussion forums, products, and services are intended for professional use only. No consumer use of this website or its content is intended or directed.

Elastic, Elasticsearch, and other related marks are trademarks, logos, or registered trademarks of elasticsearch B.V. in the United States and other countries.

Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries. All other brand names, product names, or trademarks belong to their respective owners.

Image 47Image 48

Image 49
Image 49

Image 50![Image 51](blob:https://www.elastic.co/15c36e83-8f27-492e-b372-86d3a07bf7be)