Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
docs(llamacpp): drop backend selection and Intel Mac claims (#9492)
Akarshan Biswasfe0b6d50d4e7
diff --git a/docs/src/pages/docs/desktop/data-folder.mdx b/docs/src/pages/docs/desktop/data-folder.mdxindex b7aad1ca5..1229cdd47 100644--- a/docs/src/pages/docs/desktop/data-folder.mdx+++ b/docs/src/pages/docs/desktop/data-folder.mdx@@ -81,7 +81,6 @@ Inside the data folder you will typically find:app.log/llamacpp/router.preset.ini- /backends/<version>/<backend>/ # downloaded llama.cpp builds/models/<org>/<repo>/model.ymldiff --git a/docs/src/pages/docs/desktop/install/linux.mdx b/docs/src/pages/docs/desktop/install/linux.mdxindex de9cfe460..6b2ec9931 100644--- a/docs/src/pages/docs/desktop/install/linux.mdx+++ b/docs/src/pages/docs/desktop/install/linux.mdx@@ -191,8 +191,8 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64### Step 2: Enable GPU Acceleration-1. Navigate to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Model Providers** > **Llama.cpp**-2. Select an appropriate backend in **Backend**. Details in our [llama.cpp guide](/docs/desktop/local-engine/llama-cpp).+1. Navigate to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Hardware** > **GPUs**+2. Turn your GPU on if it is off. If it is listed under both **CUDA** and **Vulkan**, select **CUDA**. Details in our [llama.cpp guide](/docs/desktop/local-engine/llama-cpp).<Callout type="info">CUDA offers better performance than Vulkan.@@ -206,7 +206,7 @@ CUDA offers better performance than Vulkan.Requires Vulkan support.1. Navigate to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Hardware** > **GPUs**-2. Select appropriate backend in **llama-cpp Backend**. Details in our [guide](/docs/desktop/local-engine/llama-cpp).+2. Turn your GPU on if it is off. Details in our [guide](/docs/desktop/local-engine/llama-cpp).</Tabs.Tab>@@ -214,7 +214,7 @@ Requires Vulkan support.Requires Vulkan support.1. Navigate to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Hardware** > **GPUs**-2. Select appropriate backend in **llama-cpp Backend**. Details in our [guide](/docs/desktop/local-engine/llama-cpp).+2. Turn your GPU on if it is off. Details in our [guide](/docs/desktop/local-engine/llama-cpp).</Tabs.Tab></Tabs>diff --git a/docs/src/pages/docs/desktop/install/mac.mdx b/docs/src/pages/docs/desktop/install/mac.mdxindex 7c418b611..7a33939fd 100644--- a/docs/src/pages/docs/desktop/install/mac.mdx+++ b/docs/src/pages/docs/desktop/install/mac.mdx@@ -120,8 +120,7 @@ them from Jan's GitHub repository. However, remember that these builds might conYes, you can move the Jan data folder.</FAQBox><FAQBox title="How do I enable GPU acceleration for better performance">-Depending on your Mac type (Apple Silicon or Intel), you won't be able to utilize the GPU acceleration feature-if you have a Mac with an Intel processor.+Apple Silicon Macs use Metal automatically; there is nothing to enable. Intel-based Macs are not supported.</FAQBox><FAQBox title="Can I recover the deleted Jan data folder after uninstallation?">No, it cannot be restored once you delete the Jan data folder during uninstallation.diff --git a/docs/src/pages/docs/desktop/install/windows.mdx b/docs/src/pages/docs/desktop/install/windows.mdxindex 01b2317e5..e0cd9e7a2 100644--- a/docs/src/pages/docs/desktop/install/windows.mdx+++ b/docs/src/pages/docs/desktop/install/windows.mdx@@ -115,7 +115,7 @@ and toggle the **ON** switch if not enabled.<Tabs.Tab>-Jan supports AMD GPUs via two backends: **Vulkan** (default) and **llama.cpp HIP** (ROCm-accelerated). The HIP backend provides significantly better performance than Vulkan for supported AMD GPUs.+Jan's built-in engine runs AMD GPUs through **Vulkan**. For ROCm acceleration you can run llama.cpp's own HIP build next to Jan and connect it as a custom endpoint; it often performs better than Vulkan on supported AMD GPUs.<Steps>@@ -126,9 +126,9 @@ Vulkan works out of the box with no additional setup.Navigate to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Hardware** > **GPUs**and toggle the **ON** switch if not enabled.-### Option B: llama.cpp HIP Backend (Recommended)+### Option B: llama.cpp HIP Build (Optional)-For better performance, use the HIP backend with ROCm installed.+For better performance, run llama.cpp's HIP build with ROCm installed.**1. Check GPU Detection**@@ -146,21 +146,19 @@ Verify your AMD GPU is recognized:hipInfo```-**3. Download and Install llama.cpp HIP Backend**+**3. Run llama.cpp's HIP build and connect it to Jan**-Jan does not ship with a pre-built HIP backend. You need to download it manually from the official llama.cpp releases:+Jan's built-in engine does not include HIP. Download it from the official llama.cpp releases and run it yourself:-1. Go to the [llama.cpp releases page](https://github.com/ggerganov/llama.cpp/releases)+1. Go to the [llama.cpp releases page](https://github.com/ggml-org/llama.cpp/releases)2. Download the latest release with `hip` in the filename (e.g., `llama-<version>-bin-win-hip-x64.zip`)3. Extract the downloaded archive-4. In Jan, navigate to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Model Providers** > **Llama.cpp**-5. Use the backend version selector to point at the extracted folder-6. Go to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Hardware** and ensure GPU acceleration is enabled+4. Start `llama-server` from it with your model and add it to Jan as a custom provider, as described in [Use a different llama.cpp version](/docs/desktop/remote-models/custom-endpoint#use-a-different-llamacpp-version)</Steps><Callout type="info">-The HIP backend requires a compatible AMD GPU (RX 6000 series or newer recommended) and ROCm installed. If you encounter issues, fall back to the Vulkan backend.+The HIP build requires a compatible AMD GPU (RX 6000 series or newer recommended) and ROCm installed. If you encounter issues, use Jan's built-in engine, which runs on Vulkan.</Callout></Tabs.Tab>diff --git a/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdx b/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdxindex 80aa8bfa5..af6660199 100644--- a/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdx+++ b/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdx@@ -76,149 +76,90 @@ These are advanced settings. You typically only need to adjust them if models ar## Engine Management-| Feature | What It Does | When You Need It |-|---------|-------------|------------------|-| **Engine Version** | Shows which version of llama.cpp you're running | Check compatibility with newer models |-| **Check Updates** | Downloads newer engine versions | When new models require updated engine |-| **Backend Selection** | Choose the version optimized for your hardware | After installing new graphics cards or when performance is poor |-| **Auto Update Engine** | Automatically updates llama.cpp to latest version | Enable for automatic compatibility with new models |-| **Max Concurrent Models** | Maximum models the router keeps loaded at once | Set to 1 if you want strict single-model operation; 0 means unlimited |+| Setting | What It Does | Default | When You Need It |+|---------|-------------|---------|------------------|+| **Engine version** | Shows the bundled llama.cpp version, build and commit | - | Quote it when you report a model that fails to load |+| **Max Concurrently Loaded Models** | Maximum models the engine keeps loaded at once; the least recently used idle model is unloaded first | 1 | Raise it to keep several models warm; 0 means unlimited |+| **Timeout for llamacpp** | Connection and load timeout, in seconds | 600 | Raise it for very large models on slow disks |+| **Environmental variables** | Extra `KEY=VALUE` variables for the engine, separated by `;` | Empty | Only when a llama.cpp guide asks for a specific variable |<Callout type="info">-Jan v0.8.0 switched llama.cpp from launching a separate server for each model to a single **router process** (`llama-server --models-preset <router.preset.ini> --models-max <N> --no-webui`) that loads and unloads models on demand via the upstream `POST /models/load` and `POST /models/unload` endpoints. You no longer need to manually start or stop individual models — the router handles scheduling automatically. After installing a backend, Jan checks for required system libraries (CUDA, Vulkan, cuDNN) and shows you what to install if anything is missing.+Since v0.8.5, llama.cpp is compiled into Jan and runs in a supervised worker process (`jan-llama-worker`). There is no `llama-server` to download and no backend to install or update: the engine updates together with the app. The worker loads and unloads models on demand, so you never start or stop a model by hand. If the worker stops unexpectedly, sending the message again starts it again.</Callout>-## Hardware Backends+## Hardware Support-Jan offers different backend versions optimized for your specific hardware. Think of these as different "drivers" - each one is tuned for particular processors or graphics cards.+Each Jan installer ships the GPU backends for its platform, and the engine picks the CPU code path that suits your processor when it starts. There is no build to choose.-<Callout type="warning">-Using the wrong backend can make models run slowly or fail to load. Pick the one that matches your hardware.-</Callout>--<Tabs items={['Windows', 'Linux', 'macOS']}>--<Tabs.Tab>--### NVIDIA Graphics Cards (CUDA)-Choose based on your CUDA version (check NVIDIA Control Panel):--**CUDA 12.0 (recommended):**-- `win-avx2-cuda-cu12.0-x64` (most common)-- `win-avx512-cuda-cu12.0-x64` (newer Intel/AMD CPUs)-- `win-avx-cuda-cu12.0-x64` (older CPUs)-- `win-cuda-12-common_cpus-x64` (broadest CPU compatibility)--**CUDA 11.7:**-- `win-avx2-cuda-cu11.7-x64` (most common)-- `win-avx512-cuda-cu11.7-x64` (newer Intel/AMD CPUs)-- `win-avx-cuda-cu11.7-x64` (older CPUs)-- `win-cuda-11-common_cpus-x64` (broadest CPU compatibility)--**CUDA 13:**-- `win-cuda-13-common_cpus-x64`--### CPU Only-- `win-avx2-x64` (most modern CPUs, recommended)-- `win-avx512-x64` (newer Intel/AMD CPUs with AVX-512)-- `win-avx-x64` (older CPUs)-- `win-noavx-x64` (very old CPUs)-- `win-common_cpus-x64` (broadest compatibility)--### Other Graphics Cards (Vulkan — AMD, Intel Arc)-- `win-vulkan-x64` (recommended for GPU acceleration)-- `win-vulkan-common_cpus-x64` (Vulkan with broader CPU support)--<Callout type="info">-**Quick Test**: Start with `win-avx2-cuda-cu12.0-x64` for NVIDIA, `win-vulkan-x64` for AMD/Intel Arc, or `win-avx2-x64` for CPU-only.-</Callout>--</Tabs.Tab>--<Tabs.Tab>+| Platform | GPU acceleration included |+|----------|---------------------------|+| **Windows (x64)** | NVIDIA through CUDA 13; AMD, Intel Arc and NVIDIA through Vulkan |+| **Windows (ARM64)** | NVIDIA through CUDA 13, with Vulkan as a fallback |+| **Linux (x64)** | NVIDIA through CUDA 13; AMD, Intel Arc and NVIDIA through Vulkan |+| **macOS (Apple Silicon)** | Metal, used automatically |-### NVIDIA Graphics Cards (CUDA)-Choose based on your CUDA version:+Everything runs on the CPU when no supported GPU is available.-**CUDA 12.0 (recommended):**-- `linux-avx2-cuda-cu12.0-x64` (most common)-- `linux-avx512-cuda-cu12.0-x64` (newer Intel/AMD CPUs)-- `linux-avx-cuda-cu12.0-x64` (older CPUs)-- `linux-cuda-12-common_cpus-x64` (broadest CPU compatibility)--**CUDA 11.7:**-- `linux-avx2-cuda-cu11.7-x64` (most common)-- `linux-avx512-cuda-cu11.7-x64` (newer Intel/AMD CPUs)-- `linux-avx-cuda-cu11.7-x64` (older CPUs)-- `linux-cuda-11-common_cpus-x64` (broadest CPU compatibility)--**CUDA 13:**-- `linux-cuda-13-common_cpus-x64`--### CPU Only-- `linux-avx2-x64` (most modern CPUs, recommended)-- `linux-avx512-x64` (newer Intel/AMD CPUs with AVX-512)-- `linux-avx-x64` (older CPUs)-- `linux-noavx-x64` (very old CPUs)-- `linux-common_cpus-x64` (broadest compatibility)--### Other Graphics Cards (Vulkan — AMD, Intel Arc)-- `linux-vulkan-x64` (recommended for GPU acceleration)-- `linux-vulkan-common_cpus-x64` (Vulkan with broader CPU support)--<Callout type="info">-**Quick Test**: Start with `linux-avx2-cuda-cu12.0-x64` for NVIDIA, `linux-vulkan-x64` for AMD/Intel Arc, or `linux-avx2-x64` for CPU-only.+<Callout type="warning">+Intel-based Macs are not supported: the bundled engine is built for Apple Silicon only. On an Intel Mac, Jan still works with remote and custom providers, but local models do not run.</Callout>-</Tabs.Tab>+### Choosing which GPU llama.cpp uses-<Tabs.Tab>+Go to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Hardware** > **GPUs**:-- `macos-arm64` (Apple Silicon — M1/M2/M3/M4, recommended)-- `macos-x64` (Intel Macs)+- Turn a GPU's switch off to keep the engine off it, or on to use it.+- When a GPU is reachable through more than one API (for example an NVIDIA card through both CUDA and Vulkan), click the API you want under its name. CUDA is usually faster on NVIDIA cards.+- If you add or wake a GPU while Jan is running, press **Refresh** so the engine restarts and picks it up.-<Callout type="info">-Apple Silicon Macs automatically use the GPU through Metal - no additional setup needed.-</Callout>+Changing these stops the loaded models; they reload on next use.-</Tabs.Tab>+### Using a different llama.cpp version or backend-</Tabs>+The bundled engine cannot be swapped. To run a llama.cpp version or backend that Jan does not ship (for example HIP/ROCm on Windows), run your own `llama-server` and connect it as a [custom endpoint](/docs/desktop/remote-models/custom-endpoint#use-a-different-llamacpp-version).## Performance Settings (Engine-wide)-These engine-wide settings are applied to every model the router loads. Per-model overrides (Context Size, GPU Layers, Batch Size, Disable KV Offload, etc.) live on the model's own settings page.+These engine-wide settings apply to every model the engine loads. Per-model overrides (Context Size, GPU Layers, Batch Size, Disable KV Offload, etc.) live on the model's own settings page.| Setting | What It Does | Default | Impact ||---------|-------------|---------|---------|-| **Continuous Batching** | Process multiple requests at once | Disabled | Enable for faster multi-tool or multi-conversation workloads |-| **Parallel Sequences** | Number of parallel sequences to decode | 1 | 1 enables `-kvu` single-request optimization; raise for concurrent serving |+| **Continuous Batching** | Process multiple requests at once | Enabled | Matches llama.cpp; leave on unless you are debugging |+| **Parallel Sequences** | Number of parallel sequences to decode | 0 (llama.cpp default) | Raise for concurrent serving || **Threads** | Number of threads to use during generation | -1 (auto) | -1 uses all logical cores || **Threads (Batch)** | Threads for batch and prompt processing | -1 (same as Threads) | Tune separately for prompt-heavy workloads |+| **Batch Size** | Logical maximum batch size for processing prompts | 2048 | Lower it if prompt processing runs out of memory || **uBatch Size** | Physical maximum batch size | 512 | Controls memory usage during batching |-| **Devices for Offload** | Comma-separated device list (e.g. `CUDA0,CUDA1`) | empty (auto) | Restrict which GPUs the model can use |-| **GPU Split Mode** | How to distribute the model across GPUs | Layer | Layer is the common multi-GPU choice |-| **Main GPU Index** | Primary GPU for processing | 0 | Change to target a specific GPU |+| **Fit (auto-adjust to device memory)** | Adjust unset settings so the model fits in device memory | Disabled | Enable to let llama.cpp choose GPU layers and context for you |+| **Fit Target per Device (MiB)** | Target memory margin per device for Fit, as a comma-separated list of MiB values; a single value applies to every device | 1024 | Only used when Fit is enabled |+| **Fit Minimum Context Size** | Smallest context size, in tokens, that Fit may set | 4096 | Only used when Fit is enabled |+| **Devices for Offload** | Comma-separated accelerators, named as in the detected hardware list | Empty (all) | Restrict which GPUs the model can use; `none` disables offload |+| **GPU Split Mode** | How to distribute the model across GPUs (None, Layer, Row, Tensor) | Layer | Layer is the common multi-GPU choice |+| **Main GPU Index** | The GPU used for the model (split mode None) or intermediate results (split mode Row) | 0 | Change to target a specific GPU |+| **Tensor Split** | Proportions for splitting the model across devices, e.g. `3,1` | Empty (even split) | Uneven GPUs |+| **Disable Op Offload** | Keep host tensor operations on the CPU instead of offloading them to the accelerator (`--no-op-offload`) | Disabled | Advanced tuning only |+| **MoE Layers on CPU** | Keep the Mixture-of-Experts weights of the first N layers in CPU memory | 0 | Fit a large MoE model in limited VRAM |+| **Dense FFN Layers on CPU** | Keep the dense feed-forward weights of the first N layers in CPU memory | 0 | The same for dense models |## Memory Settings (Engine-wide)-These engine-wide settings control how the router and every loaded model use system and GPU memory.+These engine-wide settings control how every loaded model uses system and GPU memory.| Setting | What It Does | Default | When to Change ||---------|-------------|---------|----------------|| **Flash Attention** | Enable Flash Attention kernel | Auto | Force On or Off only if you hit kernel issues || **Disable mmap** | Don't memory-map model files | Disabled | Enable if experiencing crashes or pageouts |+| **Lazy Tensor Reading** | Read the rows of large arch-marked tensors (e.g. per-layer embeddings) from disk on demand instead of keeping them in memory; Auto applies it above 4 GiB | Auto | Off keeps those tensors in memory; requires mmap, so it has no effect with Disable mmap on || **MLock** | Keep model in RAM, prevent swapping | Disabled | Enable if you have enough RAM and want consistent performance || **Context Shift** | Allow trimming the start of the prompt when context fills | Disabled | Enable for very long chats or multiple tool calls |+| **Disable KV Cache Offload** | Keep the KV cache in system RAM instead of GPU memory | Disabled | When VRAM is scarce, at the cost of speed |+| **Unified KV Cache** | Use a single KV buffer shared across all slots | Auto | Saves memory when running multiple parallel slots |+| **Context Per Slot** | Cap, in tokens, on how much of the unified KV cache one slot may use; 0 lets a slot fill the whole cache | 0 | Only applies when the KV cache is unified || **KV Cache K Type** | KV-cache precision for keys | f16 | Switch to q8_0 / q4_0 to save VRAM || **KV Cache V Type** | KV-cache precision for values | f16 | Switch to q8_0 / q4_0 to save VRAM |<Callout type="info">-**Per-model settings** (configured on each model's page, not here): Context Size (`ctx_size`), GPU Layers (`n_gpu_layers`), Batch Size (`batch_size`), **Disable KV Offload** (`no_kv_offload` — enable to keep the KV cache on CPU when GPU VRAM is tight), Override Tensor Buffer Type, Chat Template, Chat template options (`chat_template_kwargs`), and sampling parameters. The router applies engine-wide settings as the `[*]` defaults in `router.preset.ini` and lets per-model entries override them.-</Callout>--<Callout type="warning">-The default KV cache type was temporarily set to `q8_0` in a prior release and has been reverted to `f16`. This is **not automatically migrated** — if your models fail to load after updating to v0.8.0, set **KV Cache K Type** and **KV Cache V Type** back to `f16` manually.+**Per-model settings** (configured on each model's page, not here): Context Size, GPU Layers, Batch Size, **Disable KV Offload** (enable to keep the KV cache on CPU when GPU VRAM is tight), Override Tensor Buffer Type, Custom Jinja Chat template, Chat template options (`chat_template_kwargs`), and sampling parameters. Jan writes the engine-wide settings as the `[*]` defaults in `router.preset.ini` in its data folder, and each model's own settings override them.</Callout>### KV Cache Types Explained@@ -231,7 +172,7 @@ The default KV cache type was temporarily set to `q8_0` in a prior release and hThese settings are for fine-tuning model behavior and advanced use cases.<Callout type="info">-**Custom Jinja Chat Template**, **Chat template options**, **Mirostat Sampling**, and the **Output Constraints** (Grammar / JSON Schema) below are **per-model** settings, configured on an individual model's page (the gear icon next to the model), not on the engine-wide Settings -> Llama.cpp page. **Max Tokens to Predict**, **RoPE**, and **Cache & Memory Tuning** are engine-wide.+**Custom Jinja Chat template**, **Chat template options**, **Mirostat Sampling**, and the **Output Constraints** (Grammar / JSON Schema) below are **per-model** settings, configured on an individual model's page (the gear icon next to the model), not on the engine-wide Settings -> Llama.cpp page. **Max Tokens to Predict**, **Preserve Reasoning History**, **RoPE**, and **Cache & Memory Tuning** are engine-wide.</Callout>### Text Generation Control@@ -239,51 +180,56 @@ These settings are for fine-tuning model behavior and advanced use cases.| Setting | What It Does | Default Value | When to Change ||---------|-------------|---------------|----------------|| **Max Tokens to Predict** | Maximum tokens to generate | -1 (infinite) | Set a limit to prevent runaway generation |-| **Custom Jinja Chat Template** (per-model) | Override model's chat format: a built-in template name, an inline Jinja body, or an absolute path to a `.jinja` file | Empty | Only if model needs special formatting |+| **Preserve Reasoning History** | Keep the reasoning of every earlier assistant turn in the prompt, not just the most recent one | Enabled | Only affects models whose chat template supports it; disable to save prompt tokens |+| **Custom Jinja Chat template** (per-model) | Override model's chat format: a built-in template name, an inline Jinja body, or an absolute path to a `.jinja` file | Empty | Only if model needs special formatting || **Chat template options** (per-model) | Extra options the model's chat template accepts (sent as `chat_template_kwargs`, e.g. `enable_thinking`) | Empty | To toggle template features like reasoning or tool formatting per model |### RoPE (Rotary Position Embedding) Settings| Setting | What It Does | Default Value | When to Change ||---------|-------------|---------------|----------------|-| **RoPE Scaling Method** | Context extension method | None | For models that support extended context |-| **RoPE Scale Factor** | Context scaling multiplier | 1 | Increase for longer contexts |-| **RoPE Frequency Base** | Base frequency for RoPE | 0 (auto) | Usually loaded from model |-| **RoPE Frequency Scale Factor** | Frequency scaling factor | 1 | Advanced tuning only |+| **RoPE Scaling Method** | Context extension method (Model default, None, Linear, YaRN) | Model default | For models that support extended context |+| **RoPE Frequency Base** | Base frequency for RoPE | 0 (loaded from model) | Usually loaded from model |+| **RoPE Frequency Scale Factor** | Frequency scaling factor; 1 forces no scaling | 0 (loaded from model) | Advanced tuning only |### Cache & Memory Tuning| Setting | What It Does | Default Value | When to Change ||---------|-------------|---------------|----------------|-| **Prompt Cache RAM (MiB)** | Maximum prompt cache size in MiB (`--cache-ram`). -1 = unlimited, 0 = disabled | -1 | Set a positive value to cap RAM used for prompt caching |+| **Prompt Cache RAM (MiB)** | Maximum prompt cache size in MiB (`--cache-ram`). -1 = unlimited, 0 = disabled | 8192 | Lower it to cap RAM used for prompt caching |+| **Remember Conversations Between Sessions** | Keep each conversation's prompt cache on disk so reopening it does not re-read the whole conversation | Enabled | Disable to save disk space |+| **Conversation Cache Disk Limit (MiB)** | Disk budget for saved conversation caches; the oldest are dropped first | 8192 | Raise it if you switch between many long conversations || **Cache Reuse** | Min chunk size of matching prefix tokens to reuse from cache (`--cache-reuse`) | 0 (disabled) | Set a positive value to speed up repeated prompts with a shared prefix |-| **Full SWA Cache** | Use full-size SWA cache (`--swa-full`) | Disabled | Enable for Gemma / Mistral-family SWA models when you need full-context recall (costs memory) |+| **Full SWA Cache** | Use full-size SWA cache (`--swa-full`) | Disabled | Enable if a sliding-window model (e.g. Gemma) reprocesses the whole prompt every turn (costs memory) |+| **Context Checkpoints** | Maximum context checkpoints kept per slot, which let a shifted context be restored instead of reprocessed (`--ctx-checkpoints`) | 32 | Advanced tuning only |+| **Checkpoint Minimum Step** | Minimum number of tokens between context checkpoints (`--checkpoint-min-step`) | 8192 | Advanced tuning only || **Keep First N Tokens** | Tokens from the initial prompt to keep on context shift (`--keep`, -1 = keep all) | 0 | Increase to preserve more of the system prompt when context fills |### Mirostat Sampling (per-model)| Setting | What It Does | Default Value | When to Change ||---------|-------------|---------------|----------------|-| **Mirostat Mode** | Alternative sampling method | Disabled | Try V1 or V2 for more consistent output |-| **Mirostat Learning Rate** | How fast it adapts | 0.1 | Lower for more stable output |-| **Mirostat Target Entropy** | Target perplexity | 5 | Higher for more variety |+| **Mirostat** | Adaptive perplexity-targeting sampler (Off, v1, v2); overrides Top K / Top P / Min P | Off | Try v1 or v2 for more consistent output |+| **Mirostat Eta** | Mirostat learning rate | 0.1 | Lower for more stable output |+| **Mirostat Tau** | Target entropy; lower is more focused | 5 | Higher for more variety |### Output Constraints (per-model)| Setting | What It Does | Default Value | When to Change ||---------|-------------|---------------|----------------|| **Grammar** | Constrain output with a GBNF grammar: an inline grammar body or an absolute path to a `.gbnf` file | Empty | For structured output (JSON, code, etc.) |-| **JSON Schema File** | Enforce JSON structure | Empty | When you need specific JSON formats |+| **JSON Schema** | Constrain the output to valid JSON matching a schema; ignored if a grammar is also set | Empty | When you need specific JSON formats |## Troubleshooting Common Issues**Models won't load:**-- Try a different backend (switch from CUDA to CPU or vice versa)- Check if you have enough RAM/VRAM-- Update to latest engine version+- Update Jan: the engine updates with the app, and newer model architectures need a newer engine+- Turn the GPU off in **Settings** > **Hardware** to see whether the model loads on the CPU+- If a model only works on a different llama.cpp version, [run your own `llama-server`](/docs/desktop/remote-models/custom-endpoint#use-a-different-llamacpp-version)**Very slow performance:**-- Make sure you're using GPU acceleration (CUDA/Metal/Vulkan backend)+- Make sure your GPU is turned on in **Settings** > **Hardware**- Increase GPU Layers in model settings- Close other memory-intensive programs@@ -293,35 +239,34 @@ These settings are for fine-tuning model behavior and advanced use cases.- Try a smaller model variant**Random crashes:**-- Switch to a more stable backend (try avx instead of avx2)-- Disable overclocking if you have it enabled- Update graphics drivers+- On an NVIDIA card, try its Vulkan API instead of CUDA (or the reverse) in **Settings** > **Hardware**+- Disable overclocking if you have it enabled## Quick Setup Guide**For most users:**-1. Use the default backend that Jan installs-2. Enable Auto Update Engine for automatic compatibility-3. Leave all performance settings at defaults-4. Only adjust if you experience problems+1. Leave all settings at their defaults; Jan detects your GPU and uses it+2. Keep Jan updated, which also updates the engine+3. Only adjust settings if you experience problems**If you have an NVIDIA graphics card:**-1. Select the appropriate CUDA backend from the dropdown (e.g., `avx2-cuda-12-0`)+1. In **Settings** > **Hardware**, make sure the GPU is on and its CUDA API is selected2. Make sure GPU Layers is set high in model settings-3. Keep Flash Attention enabled+3. Keep Flash Attention on Auto4. Set Main GPU Index if you have multiple GPUs**If models are too slow:**-1. Check you're using GPU acceleration (CUDA/Metal/Vulkan backend)-2. Enable Continuous Batching-3. Increase Batch Size (per-model) and uBatch Size (engine)+1. Check that your GPU is on in **Settings** > **Hardware**+2. Keep Continuous Batching enabled+3. Increase Batch Size and uBatch Size4. Close other applications using memory**If running out of memory:**-1. Set **Max Concurrent Models** to 1 so the router unloads the previous model before loading a new one+1. Set **Max Concurrently Loaded Models** to 1 so the previous model is unloaded before a new one loads2. Change KV Cache K/V Type to q8_0 or q4_03. Reduce Context Size in model settings-4. Enable MLock if you have sufficient RAM+4. Enable **Fit (auto-adjust to device memory)**5. Try a smaller model**For advanced users:**diff --git a/docs/src/pages/docs/desktop/troubleshooting.mdx b/docs/src/pages/docs/desktop/troubleshooting.mdxindex 4aa1c4840..f8e65a1a4 100644--- a/docs/src/pages/docs/desktop/troubleshooting.mdx+++ b/docs/src/pages/docs/desktop/troubleshooting.mdx@@ -287,23 +287,24 @@ Ubuntu on Proxmox VM## AMD and Apple GPUs-Jan isn't limited to NVIDIA. It detects your hardware and picks a backend automatically, but a GPU-backend is only preferred when a GPU reports **at least 6 GB of VRAM** — below that, Jan runs on CPU.+Jan isn't limited to NVIDIA. The llama.cpp engine is built into Jan with the GPU backends for your+platform (CUDA and Vulkan on Windows and Linux, Metal on Apple Silicon), so there is no backend to+download or pick. Choose which GPUs it uses in **Settings** > **Hardware** > **GPUs**.**AMD / Intel (Vulkan):**- Requires up-to-date GPU drivers with Vulkan support.- If you see a `ggml_vulkan ... error` in the logs, update your drivers and confirm Vulkan isinstalled (`vulkaninfo` on Linux).-- Select the Vulkan backend under **Settings** > **Model Providers** > **Llama.cpp** > **Backend**.+- Make sure the GPU is turned on in **Settings** > **Hardware** > **GPUs**.**Apple Silicon (Metal):**- Metal acceleration is used automatically on M-series Macs; no setup needed.- A `ggml_metal ... error` usually means the model is too large for available unified memory — use asmaller or more heavily quantized model.-**CPU requirement (all platforms):**-- llama.cpp builds require **AVX2**. On very old CPUs without AVX2, pick a `noavx`/CPU-compatible- backend build; otherwise the model process will fail to start.+**Intel Macs:**+- Not supported for local models: the bundled engine is built for Apple Silicon only. Remote and+ custom providers still work.**GPU not detected after sleep (Linux):**- After suspend/resume the driver state can go stale and Jan may report "No GPU detected." Restart@@ -319,7 +320,7 @@ common causes:- *Symptom:* The model fails to load, or generation stops with an out-of-memory error.- *Cause:* The model + context needs more memory than is available.- *Fix:* Use a smaller or more quantized model; reduce the **context size**; offload fewer layers to- the GPU (lower `ngl`); or switch to the CPU backend.+ the GPU (lower **GPU Layers**); or turn the GPU off in **Settings** > **Hardware** to run on CPU.**Out of context size**- *Symptom:* A banner says the model ran out of context size.@@ -328,34 +329,36 @@ common causes:settings (default `8192`, up to `131072`). Larger context uses more memory.**Model architecture not supported**-- *Symptom:* "The model's architecture is not supported by this version of the backend."-- *Cause:* The backend build is older than the model, or the file isn't a supported text model.-- *Fix:* Update the llama.cpp backend (**Settings** > **Model Providers** > **Llama.cpp** >- **Backend**), or use a different model.+- *Symptom:* "This model's architecture is not supported by the current engine."+- *Cause:* The bundled llama.cpp is older than the model, or the file isn't a supported text model.+- *Fix:* Update Jan (the engine updates with the app), use a different model, or+ [run a newer `llama-server` yourself](/docs/desktop/remote-models/custom-endpoint#use-a-different-llamacpp-version).**Model load timed out**-- *Symptom:* "Router took too long to start and timed out."+- *Symptom:* "The model took too long to load and was stopped."- *Cause:* A large model on a slow disk didn't finish loading within the timeout (default 600s).-- *Fix:* Wait and retry, use a smaller model, or store models on faster storage.+- *Fix:* Wait and retry, use a smaller model, store models on faster storage, or raise **Timeout for+ llamacpp** in **Settings** > **Model Providers** > **Llama.cpp**.**Backend / driver error**- *Symptom:* "The model process encountered an unexpected error," or a `cuda error:` /`ggml_vulkan`/`ggml_metal` line in the logs.-- *Cause:* GPU driver/runtime problem or an unsupported operation on the selected backend.-- *Fix:* Update drivers, or switch backends (CPU / Vulkan / CUDA). Check the logs for the exact line.+- *Cause:* GPU driver/runtime problem or an unsupported operation on the GPU's API.+- *Fix:* Update drivers. On a GPU reachable through both CUDA and Vulkan, try the other API in+ **Settings** > **Hardware** > **GPUs**, or turn the GPU off to run on CPU. Check the logs for the exact line.### Common llama.cpp error messages-These strings appear in `logs/app.log` (prefixed `[llamacpp-router]`) when a model fails:+These strings appear in `logs/app.log` (on lines containing `jan-llama-worker:`) when a model fails:| Log message | Likely cause | Resolution || --- | --- | --- |-| `unknown model architecture: '<arch>'` | Backend too old, or not a supported text model | Update the backend; confirm the model is supported |+| `unknown model architecture: '<arch>'` | Engine too old, or not a supported text model | Update Jan; confirm the model is supported || `error loading model` / `failed to load model` | Corrupt or truncated GGUF, or partial download | Re-download the model || `missing tensor` / `wrong number of tensors` | Incomplete or mismatched GGUF | Re-download from a known-good source, or try another quantization || `failed to allocate ... buffer` / `out of memory` / `cudaMalloc` | Not enough RAM/VRAM for the model or KV cache | Smaller model, lower context, fewer GPU layers || `request (N tokens) exceeds the available context size (M)` | Prompt longer than the context window | Increase context size or shorten the conversation |-| `GGML_ASSERT(...)` | Backend bug or unsupported op on this backend | Try a different backend; report upstream if it persists |+| `GGML_ASSERT(...)` | Engine bug or unsupported op on this GPU API | Try the other GPU API or the CPU; report upstream if it persists |<Callout type="info">For multi-shard (split) GGUF models, point the model file at **shard 1** (the standard llama.cppdiff --git a/docs/src/pages/post/offline-chatgpt-alternative.mdx b/docs/src/pages/post/offline-chatgpt-alternative.mdxindex db0278ca2..9bf224152 100644--- a/docs/src/pages/post/offline-chatgpt-alternative.mdx+++ b/docs/src/pages/post/offline-chatgpt-alternative.mdx@@ -178,5 +178,9 @@ Jan works on Windows 10 and 11. Download the .exe installer from jan.ai.#### Offline AI app for Mac?Jan works on macOS (Intel and Apple Silicon). Download the .dmg from jan.ai.+<Callout type="warning">+**Update (October 2026):** Intel-based Macs are no longer supported. Since Jan v0.8.5 the built-in engine runs on Apple Silicon only, so local models do not run on an Intel Mac. See [Mac installation](/docs/desktop/install/mac).+</Callout>+#### What's GPT offline?OpenAI has open-source models you can run locally (not via ChatGPT). One is [gpt-oss](https://www.jan.ai/post/run-gpt-oss-locally) - run it via Jan.\ No newline at end of filediff --git a/docs/src/pages/post/run-ai-models-locally.mdx b/docs/src/pages/post/run-ai-models-locally.mdxindex 1e6d9fcbf..35ae384ae 100644--- a/docs/src/pages/post/run-ai-models-locally.mdx+++ b/docs/src/pages/post/run-ai-models-locally.mdx@@ -57,6 +57,10 @@ Download the `.exe` installer from jan.ai. Works on Windows 10 and 11 with no ad**macOS (Intel and Apple Silicon)**Download the `.dmg` file. Supports both Intel Macs and Apple Silicon (M1, M2, M3) natively.+<Callout type="warning">+**Update (October 2026):** Intel-based Macs are no longer supported. Since Jan v0.8.5 the built-in engine runs on Apple Silicon only, so local models do not run on an Intel Mac. See [Mac installation](/docs/desktop/install/mac).+</Callout>+**Linux (Ubuntu, Debian, Fedora)**Download the `.AppImage` or `.deb` package. Works on most modern Linux distributions.