Buckets:
| # Use AI Models Locally | |
| You can run AI models from the Hub locally on your machine. This means that you can benefit from these advantages: | |
| - **Privacy**: You won't be sending your data to a remote server. | |
| - **Speed**: Your hardware is the limiting factor, not the server or connection speed. | |
| - **Control**: You can configure models to your liking. | |
| - **Cost**: You can run models locally without paying for an API provider. | |
| ## How to Use Local Apps | |
| Local apps are applications that can run Hugging Face models directly on your machine. To get started: | |
| 1. **Enable local apps** in your [Local Apps settings](https://huggingface.co/settings/local-apps). | |
|  | |
| 1. **Choose a supported model** from the Hub by searching for it. You can filter by `app` in the `Other` section of the navigation bar: | |
|  | |
| 3. **Select the local app** from the "Use this model" dropdown on the model page. | |
|  | |
| 4. **Copy and run** the provided command in your terminal. | |
|  | |
| ## Supported Local Apps | |
| The best way to check if a local app is supported is to go to the Local Apps settings and see if the app is listed. Here is a quick overview of some of the most popular local apps: | |
| > [!TIP] | |
| > ๐จโ๐ป To use these local apps, copy the snippets from the model card as above. | |
| > | |
| > ๐ท If you're building a local app, you can learn about integrating with the Hub in [this guide](https://huggingface.co/docs/hub/en/models-adding-libraries). | |
| ### Llama.cpp | |
| Llama.cpp is a high-performance C/C++ library for running LLMs locally with optimized inference across lots of different hardware, including CPUs, CUDA and Metal. | |
| **Advantages:** | |
| - Extremely fast performance for CPU-based models on multiple CPU families | |
| - Low resource usage | |
| - Multiple interface options (CLI, server, Python library) | |
| - Hardware-optimized for CPUs and GPUs | |
| To use Llama.cpp, navigate to the model card and click "Use this model" and copy the command. | |
| ```sh | |
| # Load and run the model: | |
| ./llama-server -hf unsloth/gpt-oss-20b-GGUF:Q4_K_M | |
| ``` | |
| Read our dedicated [llama.cpp + HF doc page](./gguf-llamacpp). | |
| ### Ollama | |
| Ollama is an application that lets you run large language models locally on your computer with a simple command-line interface. | |
| **Advantages:** | |
| - Easy installation and setup | |
| - Direct integration with Hugging Face Hub | |
| To use Ollama, navigate to the model card and click "Use this model" and copy the command. | |
| ```sh | |
| ollama run hf.co/unsloth/gpt-oss-20b-GGUF:Q4_K_M | |
| ``` | |
| ### Jan | |
| Jan is an open-source ChatGPT alternative that runs entirely offline with a user-friendly interface. | |
| **Advantages:** | |
| - User-friendly GUI | |
| - Chat with documents and files | |
| - OpenAI-compatible API server, so you can run models and use them from other apps | |
| To use Jan, navigate to the model card and click "Use this model". Jan will open and you can start chatting through the interface. | |
| ### LM Studio | |
| > [!NOTE] | |
| > Read our dedicated [LM Studio doc page](./lmstudio) | |
| LM Studio is a desktop application that provides an easy way to download, run, and experiment with local LLMs. | |
| **Advantages:** | |
| - Intuitive graphical interface | |
| - Built-in model browser | |
| - Developer tools and APIs | |
| - Free for personal and commercial use | |
| Navigate to the model card and click "Use this model". LM Studio will open and you can start chatting through the interface. | |
Xet Storage Details
- Size:
- 3.75 kB
- Xet hash:
- 0dec4888e5f3149421c8fc3e21065e4d99e5ceb1829dd32ed1fc65a3b90048ce
ยท
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.