# LM Studio

LM Studio is a tool that allows you to run large language models (LLMs) locally on your computer. You can integrate it with VNTranslator to provide high-quality translations.

## 1. Download LM Studio

Visit the official **LM Studio** website and download the app <https://lmstudio.ai/>

## 2. Download an LLM Model

<figure><img src="https://4121582948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKz66WcKqTPRwdFrHi4mM%2Fuploads%2F5snhVfTG8SbrurA6r8GR%2FLM_Studio_loe802d5NU.gif?alt=media&#x26;token=785af9fb-d3f1-45d2-abd8-3f2b4ee9ad43" alt=""><figcaption></figcaption></figure>

In this example, we will use **Gemma 3 12B** as the model

* Open **LM Studio** and click on the **Discover** tab in the left sidebar
* In the pop-up window, choose **Model Search** and enter the name of the model you want
* Click **Download** to download the model to your computer

## 3. Run the LLM Model

<figure><img src="https://4121582948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKz66WcKqTPRwdFrHi4mM%2Fuploads%2FattyGLchMi0635udNsMh%2FLM_Studio_sev0mFp0hY.gif?alt=media&#x26;token=12119b5b-37c4-4452-8770-ed75ee8d5d9b" alt=""><figcaption></figcaption></figure>

* From the top menu in **LM Studio**, select the model you downloaded to start running it

## 4. Start the Server in LM Studio

<figure><img src="https://4121582948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKz66WcKqTPRwdFrHi4mM%2Fuploads%2Fr8mNQlin1rq9Utb5pTGE%2FLM_Studio_4BPAxhRl7N.gif?alt=media&#x26;token=8e5933e7-98db-401d-a7d7-093aa5e40623" alt=""><figcaption></figcaption></figure>

* Click on the **Developer** tab in the left sidebar
* Then click **Start Server**

{% hint style="info" %}
**Note:** The default server endpoint is: `http://localhost:1234/`
{% endhint %}

## 5. Configure VNTranslator

<figure><img src="https://4121582948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKz66WcKqTPRwdFrHi4mM%2Fuploads%2FVGEr97iZueN3mQjhUJpI%2Felectron_GRKOQcd21O.gif?alt=media&#x26;token=46431a90-6735-4dac-9289-f171637d498d" alt=""><figcaption></figcaption></figure>

* In the MT Settings, enter the **model name** you started in **LM Studio** into the **Model** field
