> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nexa.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Model tutorial

> Step-by-step guide to download, load, and chat with models in the demo app.

## **LFM2-24B-A2B-Preview-GGUF**

This walkthrough follows the [Tutorial: LFM2-24B-A2B-Preview-GGUF](https://github.com/NexaAI/nexa-sdk/blob/main/bindings/android/README.md#tutorial-lfm2-24b-a2b-preview-gguf) section in the nexa-sdk Android README. It uses the [LFM2-24B-A2B-Preview-GGUF](https://huggingface.co/NexaAI/LFM2-24B-A2B-Preview-GGUF) model in the demo app.

### **Steps**

<Steps>
  <Step title="Install the app">
    Install the demo app (APK or build from source). For APK download and build-from-source steps, see [Quick Start with APK](https://github.com/NexaAI/nexa-sdk/blob/main/bindings/android/README.md#quick-start-with-apk) and [Build from Source](https://github.com/NexaAI/nexa-sdk/blob/main/bindings/android/README.md#build-from-source) on the [GitHub Android README](https://github.com/NexaAI/nexa-sdk/blob/main/bindings/android/README.md).
  </Step>

  <Step title="Select the model">
    Open the model selector (dropdown next to the model name) and choose **LFM2-24B-A2B-Preview-GGUF**.

    <img src="https://raw.githubusercontent.com/NexaAI/nexa-sdk/main/assets/lfm0.png" alt="Select model" style={{ borderRadius: '0.5rem', marginTop: '0.75rem', maxWidth: '240px', width: '100%', height: 'auto' }} />
  </Step>

  <Step title="Download">
    Tap **Download** to fetch the model to your device. Wait until the download finishes.
  </Step>

  <Step title="Load">
    Tap **Load**. A **load model config** dialog appears: choose **CPU**, **GPU**, or **NPU** (for Qualcomm NPU), then tap **SURE**. Once the model is loaded, the chat area becomes available.

    <img src="https://raw.githubusercontent.com/NexaAI/nexa-sdk/main/assets/lfm1.png" alt="Load model config" style={{ borderRadius: '0.5rem', marginTop: '0.75rem', maxWidth: '240px', width: '100%', height: 'auto' }} />
  </Step>

  <Step title="Chat">
    Type your message in the input field at the bottom, then tap **Send** to get a response. Use **Clear** to clear the input or conversation as needed.

    <img src="https://raw.githubusercontent.com/NexaAI/nexa-sdk/main/assets/lfm2.png" alt="Chat" style={{ borderRadius: '0.5rem', marginTop: '0.75rem', maxWidth: '240px', width: '100%', height: 'auto' }} />
  </Step>
</Steps>

<br />

<div class="feedback-wrapper">
  <span class="feedback-label">Was this page helpful?</span>

  <div class="feedback-toggle">
    <input type="radio" name="feedback" id="feedback-yes" class="feedback-input" />

    <label for="feedback-yes" class="feedback-button">
      <img src="https://mintcdn.com/nexaai/g8-zBYnunEyVtcK3/Images/FeedBack/thumbs-up.svg?fit=max&auto=format&n=g8-zBYnunEyVtcK3&q=85&s=0b57c51c8db9940403e7552956e5c30e" alt="Thumbs up" class="feedback-icon" noZoom width="14" height="14" data-path="Images/FeedBack/thumbs-up.svg" />

      Yes
    </label>

    <input type="radio" name="feedback" id="feedback-no" class="feedback-input" />

    <label for="feedback-no" class="feedback-button">
      <img src="https://mintcdn.com/nexaai/g8-zBYnunEyVtcK3/Images/FeedBack/thumbs-down.svg?fit=max&auto=format&n=g8-zBYnunEyVtcK3&q=85&s=ebacf61d57c8259c6df243d329b548b3" alt="Thumbs down" class="feedback-icon" noZoom width="14" height="14" data-path="Images/FeedBack/thumbs-down.svg" />

      No
    </label>
  </div>
</div>
