Naidan
Guides

Run a GGUF model in your browser with llama.cpp

Naidan can run a compatible GGUF chat model on your device without sending your prompt to an inference server. Once the app, runtime and model files are available locally, it can generate responses offline. Choose a model below, or open Settings to import your files or download another model from Hugging Face.

Choose a model to try in your browser

Choose a model to open its preview. Check the quantization and size, then select Run in your browser. Naidan prepares the files and runtime; when the chat is ready, enter your message. The links below use browser storage (OPFS) for downloads.

Opening a model link can contact Hugging Face for that repository’s file list and sizes. Downloading model files and creating the chat begin after you select Run in your browser. Local-only cannot fetch files from Hugging Face; use a GGUF obtained separately, or an edition that permits the model file hosts.

To share a model, copy its link from Download details in the model manager. You can also set the app URL’s llama-cpp-browser-model parameter to an hf.co reference such as hf.co/owner/repository:Q4_K_M. This selects a model variant; it does not fix a repository revision or download destination.

The llama.cpp in the browser option appears in both Hosted and Standalone. Inference settings checks what this browser and device support. Model compatibility and speed depend on the device and model.

1. Open the browser model manager

To import your own GGUF or download another model, open /#/settings/llama-cpp-browser to reach the model manager.

The link above opens the llama.cpp in the browser tab directly. You can also open it from Settings in the sidebar. Check Inference settings for browser support. Automatic chooses among available profiles; importing a GGUF cannot make an unavailable profile run.

Settings opens the llama.cpp in the browser manager and shows runtime support.

2. Import a GGUF you already have

In GGUF model files, select Load model. Leave Copy model files into the browser off to try the original files first. Select Choose model folder or Choose GGUF files, or drop the files or folder. A split GGUF needs all its parts together; include a matching mmproj when the model needs one. If a folder-layout confirmation appears, check the repository boundaries before continuing.

  • With copying off, the selected files remain available until you reload or close this page. Temporary folders are shared with image generation on this page; unregistering one removes access from both, while keeping original files and saved browser copies.
  • To keep a browser copy, turn on Copy model files into the browser before choosing files. Naidan makes the original files available first, then copies them in the background. Wait for saving to finish before reloading or closing the page.
  • Link folder uses an existing device folder without copying its model files into browser storage. Choose the parent containing owner/repository/… folders. The browser must support folder access, and may need you to reconnect later. Unlinking keeps the original files.
Load model starts with copying off. After checking the files, Naidan offers to save a browser copy later.

You can also start from Use local model files in an empty chat, or Choose a model beside the input in a chat whose files are missing. To keep a temporary model later, select Save in browser in the save notice in the manager or chat. You can keep chatting while it copies. When saving finishes, the chat uses the saved copy. Cancelling the copy leaves the original files available until this page reloads or closes.

3. Or download a GGUF from Hugging Face

In Find or open models on Hugging Face, enter a model name or owner/repository and select Search, then choose a result to check its files. To open a particular repository directly, paste its full HTTPS URL, such as https://huggingface.co/owner/repository, and select Check model. Typing alone does not start a search or download.

Review the quantization and size. For an image-capable model, enable Multimodal support and select the matching mmproj under Multimodal quantization. Under Download to, choose Browser storage (OPFS) or a linked device folder, then select Download. The destination control is beside the Hugging Face heading in the manager. Check that your device has enough storage and memory; downloading the files does not establish that the model can run.

Search, open a result, check its files and destination, then start the download.

Progress appears beside the model and in the shared Downloads panel in the sidebar. Finished files appear under Imported models. The model-preparation choices inside a chat also include Hugging Face downloads with a linked-folder destination. The home showcase and the model links above download to browser storage.

Downloading requires an edition that permits the model file hosts. Curated permits huggingface.co and *.hf.co. On Local-only, import files obtained separately.

4. Choose the default model for chats

In Imported models, select Set as default beside the model and confirm. This saves llama.cpp in the browser as the global connection and selects that model for existing and new chats that inherit the default. Importing or downloading files alone does not change the global default. An individual chat can select another model.

The confirmation changes the global endpoint and default model together.

After setting a default model, close Settings, choose New Chat in the sidebar, type a message, and send it.

Use a large GGUF without splitting it

You do not need to split a large GGUF before using it with Naidan. Even a single file tens of gigabytes in size can be selected from your device or its Hugging Face repository. Naidan reads files in bounded chunks from the selected source: saved browser storage, a linked folder, or temporary files. The device still needs enough memory to run the model.

If your model does not run

Check Inference settings first, then confirm that the GGUF and any companion mmproj match the model you intend to use. A completed download only means the files are available; it does not prove that this browser can run the model. Standalone includes WebGPU with JSPI for wasm32 or wasm64, without a CPU or Asyncify fallback.

If an older saved model selection no longer resolves, choose the model again from the current list. For a temporary model lost after reload, select its files again; for a linked folder, check its access permission. A missing model does not start a download automatically, and you can prepare a replacement while keeping your chat draft.