Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

docs: update local engines and servers

Louis498a5f7f91c6
diff --git a/docs/src/pages/docs/desktop/_assets/mlx-settings.png b/docs/src/pages/docs/desktop/_assets/mlx-settings.png
new file mode 100644
index 000000000..a9d67118f
Binary files /dev/null and b/docs/src/pages/docs/desktop/_assets/mlx-settings.png differ
diff --git a/docs/src/pages/docs/desktop/_meta.json b/docs/src/pages/docs/desktop/_meta.json
index 610f212f6..46ae74d4b 100644
--- a/docs/src/pages/docs/desktop/_meta.json
+++ b/docs/src/pages/docs/desktop/_meta.json
@@ -16,6 +16,7 @@
"assistants": "Assistants",
"agents": "Agents",
"mcp-examples": "Connectors (MCP)",
+ "manage-models": "Hub",
"local-engine": "Local AI Engine",
"model-parameters": "Model Parameters",
"privacy-policy": {
@@ -23,12 +24,6 @@
"display": "hidden",
"title": "Privacy Policy"
},
- "advanced-separator": {
- "title": "Advanced",
- "type": "separator"
- },
- "manage-models": "Manage Models",
- "mcp": "Model Context Protocol",
"localserver": {
"title": "Local Server",
"type": "separator"
@@ -37,11 +32,12 @@
"llama-cpp-server": "LlamaCpp Server",
"server-settings": "Server Settings",
"server-troubleshooting": "Server Troubleshooting",
- "server-examples": "Integrations",
+ "server-examples": "Clients",
"reference-separator": {
"title": "Reference",
"type": "separator"
},
+ "mcp": "Model Context Protocol",
"remote-models": "Cloud Providers",
"settings": "Settings",
"data-folder": "Jan Data Folder",
diff --git a/docs/src/pages/docs/desktop/llama-cpp-server.mdx b/docs/src/pages/docs/desktop/llama-cpp-server.mdx
index 0d72020db..f64a65057 100644
--- a/docs/src/pages/docs/desktop/llama-cpp-server.mdx
+++ b/docs/src/pages/docs/desktop/llama-cpp-server.mdx
@@ -31,7 +31,7 @@ Looking for API server settings (like port, host, CORS)? They have been moved to
Find llama.cpp settings at **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Local Engine** > **llama.cpp**:
-![llama.cpp](./_assets/llama.cpp-01-updated.png)
+![llama.cpp](./_assets/llama-cpp-settings.png)
<Callout type="info">
Most users don't need to change these settings. Jan picks good defaults for your hardware automatically.
diff --git a/docs/src/pages/docs/desktop/llama-cpp.mdx b/docs/src/pages/docs/desktop/llama-cpp.mdx
deleted file mode 100644
index 51aee542f..000000000
--- a/docs/src/pages/docs/desktop/llama-cpp.mdx
+++ /dev/null
@@ -1,262 +0,0 @@
----
-title: llama.cpp Engine
-description: Understand and configure Jan's local AI engine for running models on your hardware.
-keywords:
- [
- Jan,
- Customizable Intelligence, LLM,
- local AI,
- privacy focus,
- free and open source,
- private and offline,
- conversational AI,
- no-subscription fee,
- large language models,
- Llama CPP integration,
- llama.cpp Engine,
- Intel CPU,
- AMD CPU,
- NVIDIA GPU,
- AMD GPU Radeon,
- Apple Silicon,
- Intel Arc GPU,
- ]
----
-
-import { Tabs } from 'nextra/components'
-import { Callout, Steps } from 'nextra/components'
-import { Settings, EllipsisVertical, Plus, FolderOpen, Pencil } from 'lucide-react'
-
-# Local AI Engine (llama.cpp)
-
-## What is llama.cpp?
-
-llama.cpp is the engine that runs AI models locally on your computer. Think of it as the software that takes an AI model file and makes it actually work on your hardware - whether that's your CPU, graphics card, or Apple's M-series chips.
-
-Originally created by Georgi Gerganov, llama.cpp is designed to run large language models efficiently on consumer hardware without requiring specialized AI accelerators or cloud connections.
-
-## Why This Matters
-
-**Privacy**: Your conversations never leave your computer
-**Cost**: No monthly subscription fees or API costs
-**Speed**: No internet required once models are downloaded
-**Control**: Choose exactly which models to run and how they behave
-
-## Accessing Engine Settings
-
-Find llama.cpp settings at **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Local Engine** > **llama.cpp**:
-
-![llama.cpp](./_assets/llama.cpp-01-updated.png)
-
-<Callout type="info">
-These are advanced settings. You typically only need to adjust them if models aren't working properly or you want to optimize performance for your specific hardware.
-</Callout>
-
-## 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 |
-| **Auto-Unload Old Models** | Unloads unused models to free memory | Enable when running multiple models or low on memory |
-
-## Hardware Backends
-
-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.
-
-<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 (Recommended for Speed)
-Choose based on your CUDA version (check NVIDIA Control Panel):
-
-**For CUDA 12.0:**
-- `llama.cpp-avx2-cuda-12-0` (most common)
-- `llama.cpp-avx512-cuda-12-0` (newer Intel/AMD CPUs)
-
-**For CUDA 11.7:**
-- `llama.cpp-avx2-cuda-11-7` (most common)
-- `llama.cpp-avx512-cuda-11-7` (newer Intel/AMD CPUs)
-
-### CPU Only (No Graphics Card Acceleration)
-- `llama.cpp-avx2` (most modern CPUs)
-- `llama.cpp-avx512` (newer Intel/AMD CPUs)
-- `llama.cpp-avx` (older CPUs)
-- `llama.cpp-noavx` (very old CPUs)
-
-### Other Graphics Cards
-- `llama.cpp-vulkan` (AMD, Intel Arc, some others)
-
-<Callout type="info">
-**Quick Test**: Start with `avx2-cuda-12-0` if you have an NVIDIA card, or `avx2` for CPU-only. If it doesn't work, try the `avx` variant.
-</Callout>
-
-</Tabs.Tab>
-
-<Tabs.Tab>
-
-### NVIDIA Graphics Cards
-Same CUDA options as Windows:
-- `llama.cpp-avx2-cuda-12-0` (most common)
-- `llama.cpp-avx2-cuda-11-7` (older drivers)
-
-### CPU Only
-- `llama.cpp-avx2` (most modern CPUs)
-- `llama.cpp-avx512` (newer Intel/AMD CPUs)
-- `llama.cpp-arm64` (ARM processors like Raspberry Pi)
-
-### Other Graphics Cards
-- `llama.cpp-vulkan` (AMD, Intel graphics)
-
-</Tabs.Tab>
-
-<Tabs.Tab>
-
-### Apple Silicon (M1/M2/M3/M4)
-- `llama.cpp-mac-arm64` (recommended)
-
-### Intel Macs
-- `llama.cpp-mac-amd64`
-
-<Callout type="info">
-Apple Silicon Macs automatically use the GPU through Metal - no additional setup needed.
-</Callout>
-
-</Tabs.Tab>
-
-</Tabs>
-
-## Performance Settings
-
-These control how efficiently models run:
-
-| Setting | What It Does | Recommended Value | Impact |
-|---------|-------------|------------------|---------|
-| **Continuous Batching** | Process multiple requests at once | Enabled | Faster when using multiple tools or having multiple conversations |
-| **Threads** | Number of threads for generation | -1 (auto) | -1 uses all logical cores, adjust for specific needs |
-| **Threads (Batch)** | Threads for batch and prompt processing | -1 (auto) | Usually same as Threads setting |
-| **Batch Size** | Logical maximum batch size | 2048 | Higher allows more parallel processing |
-| **uBatch Size** | Physical maximum batch size | 512 | Controls memory usage during batching |
-| **GPU Split Mode** | How to distribute model across GPUs | Layer | Layer mode is most common for multi-GPU setups |
-| **Main GPU Index** | Primary GPU for processing | 0 | Change if you want to use a different GPU |
-
-## Memory Settings
-
-These control how models use your computer's memory:
-
-| Setting | What It Does | Recommended Value | When to Change |
-|---------|-------------|------------------|----------------|
-| **Flash Attention** | More efficient memory usage | Enabled | Leave enabled unless you have problems |
-| **Disable mmap** | Don't memory-map model files | Disabled | Enable if experiencing crashes or pageouts |
-| **MLock** | Keep model in RAM, prevent swapping | Disabled | Enable if you have enough RAM and want consistent performance |
-| **Context Shift** | Handle very long conversations | Disabled | Enable for very long chats or multiple tool calls |
-| **Disable KV Offload** | Keep KV cache on CPU | Disabled | Enable if GPU memory is limited |
-| **KV Cache K Type** | Memory precision for keys | f16 | Change to q8_0 or q4_0 if running out of memory |
-| **KV Cache V Type** | Memory precision for values | f16 | Change to q8_0 or q4_0 if running out of memory |
-| **KV Cache Defragmentation** | Threshold for cache cleanup | 0.1 | Lower values defragment more often |
-
-### KV Cache Types Explained
-- **f16**: Full 16-bit precision, uses more memory but highest quality
-- **q8_0**: 8-bit quantized, balanced memory usage and quality
-- **q4_0**: 4-bit quantized, uses least memory, slight quality loss
-
-## Advanced Settings
-
-These settings are for fine-tuning model behavior and advanced use cases:
-
-### Text Generation Control
-
-| 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** | Override model's chat format | Empty | Only if model needs special formatting |
-
-### 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 |
-
-### Mirostat Sampling
-
-| 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 |
-
-### Output Constraints
-
-| Setting | What It Does | Default Value | When to Change |
-|---------|-------------|---------------|----------------|
-| **Grammar File** | Constrain output format | Empty | For structured output (JSON, code, etc.) |
-| **JSON Schema File** | Enforce JSON structure | 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
-
-**Very slow performance:**
-- Make sure you're using GPU acceleration (CUDA/Metal/Vulkan backend)
-- Increase GPU Layers in model settings
-- Close other memory-intensive programs
-
-**Out of memory errors:**
-- Reduce Context Size in model settings
-- Switch KV Cache Type to q8_0 or q4_0
-- 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
-
-## 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
-
-**If you have an NVIDIA graphics card:**
-1. Select the appropriate CUDA backend from the dropdown (e.g., `avx2-cuda-12-0`)
-2. Make sure GPU Layers is set high in model settings
-3. Keep Flash Attention enabled
-4. 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 and uBatch Size
-4. Close other applications using memory
-
-**If running out of memory:**
-1. Enable Auto-Unload Old Models
-2. Change KV Cache K/V Type to q8_0 or q4_0
-3. Reduce Context Size in model settings
-4. Enable MLock if you have sufficient RAM
-5. Try a smaller model
-
-**For advanced users:**
-1. Experiment with Mirostat sampling for more consistent outputs
-2. Use Grammar/JSON Schema files for structured generation
-3. Adjust RoPE settings for models with extended context support
-4. Fine-tune thread counts based on your CPU
-
-<Callout type="info">
-Most users can run Jan successfully without changing any of these settings. The defaults are chosen to work well on typical hardware.
-</Callout>
diff --git a/docs/src/pages/docs/desktop/local-engine/mlx.mdx b/docs/src/pages/docs/desktop/local-engine/mlx.mdx
index 787921a38..395dc9438 100644
--- a/docs/src/pages/docs/desktop/local-engine/mlx.mdx
+++ b/docs/src/pages/docs/desktop/local-engine/mlx.mdx
@@ -12,15 +12,32 @@ keywords:
]
---
+import { Callout } from 'nextra/components'
+
# MLX
MLX is an inference engine for Apple Silicon (M1 and later). It uses Metal GPU acceleration for fast, efficient local inference — available on macOS 14+.
+<Callout type="warning">
+MLX support in Jan is currently in beta and will be improved significantly over time.
+</Callout>
+
## Requirements
- macOS 14 or higher
- Apple Silicon (M1, M2, M3 or later)
-## Supported Models
+## Models
+
+MLX is built into Jan — no additional setup required. You can get models in two ways:
+
+- **Hub**: Browse and download MLX-compatible models directly from the Hub
+- **Import**: Import a local MLX model via **Settings** > **MLX** > **Import**
+
+![MLX Settings](../_assets/mlx-settings.png)
MLX supports models in MLX-Swift format. Jan ships with MLX-compatible versions of its foundation models.
+
+## How It Works
+
+Jan integrates MLX via [mlx-swift-lm](https://github.com/ml-explore/mlx-swift-lm), running a local inference server on top of it. The server is spawned and managed by Jan's MLX plugin, which handles model loading, lifecycle, and communication with the rest of the app.
diff --git a/docs/src/pages/docs/desktop/model-parameters.mdx b/docs/src/pages/docs/desktop/model-parameters.mdx
index 2d0df6c74..7a444d3ef 100644
--- a/docs/src/pages/docs/desktop/model-parameters.mdx
+++ b/docs/src/pages/docs/desktop/model-parameters.mdx
@@ -1,5 +1,5 @@
---
-title: Model Parameters
+title: Model Settings
description: Customize how your AI models behave and perform.
keywords:
[
@@ -16,55 +16,33 @@ keywords:
parameters,
]
---
-import { Callout, Steps } from 'nextra/components'
+import { Callout } from 'nextra/components'
-# Model Parameters
+# Model Settings
-Model parameters control how your AI thinks and responds. Think of them as the AI's personality settings and performance controls.
+Model settings control how your AI thinks and responds. Think of them as the AI's personality settings and performance controls.
## How to Access Settings
-**For individual conversations:**
-- In **Threads**, click the **gear icon** next to your selected model
+Click the **gear icon** next to your selected model in the chat interface to open Model Settings.
-**For permanent model settings:**
-- Go to **Settings > Model Providers > Llama.cpp**, click the **gear icon** next to a model
+![Model Settings](./_assets/model-settings.png)
-**For model capabilities:**
-- Click the **edit button** next to a model to enable features like vision or tools
-
-## Performance Settings (Gear Icon)
-
-These settings control how the model thinks and performs:
+## Settings Reference
| Setting | What It Does | Simple Explanation |
|---------|-------------|-------------------|
| **Context Size** | How much text the model remembers | Like the model's working memory. Larger = remembers more of your conversation, but uses more computer memory. |
| **GPU Layers** | How much work your graphics card does | More layers on GPU = faster responses, but needs more graphics memory. Start high and reduce if you get errors. |
| **Temperature** | How creative vs. predictable responses are | Low (0.1-0.3) = focused, consistent answers. High (0.7-1.0) = creative, varied responses. Try 0.7 for general use. |
-| **Top K** | How many word choices the model considers | Smaller numbers (20-40) = more focused. Larger numbers (80-100) = more variety. Most people don't need to change this. |
+| **Top K** | How many word choices the model considers | Smaller numbers (20-40) = more focused. Larger numbers (80-100) = more variety. |
| **Top P** | Another way to control word variety | Works with Top K. Values like 0.9 work well. Lower = more focused, higher = more creative. |
-| **Min P** | Minimum chance a word needs to be chosen | Prevents very unlikely words. Usually fine at default settings. |
+| **Min P** | Minimum chance a word needs to be chosen | Prevents very unlikely words. Usually fine at default. |
| **Repeat Last N** | How far back to check for repetition | Helps prevent the model from repeating itself. Default values usually work well. |
| **Repeat Penalty** | How much to avoid repeating words | Higher values (1.1-1.3) reduce repetition. Too high makes responses awkward. |
| **Presence Penalty** | Encourages talking about new topics | Higher values make the model explore new subjects instead of staying on one topic. |
| **Frequency Penalty** | Reduces word repetition | Similar to repeat penalty but focuses on how often words are used. |
-![Model Parameters](./_assets/model-parameters.png)
-
-## Model Capabilities (Edit Button)
-
-These toggle switches enable special features:
-
-- **Vision**: Let the model see and analyze images you share
-- **Tools**: Enable advanced features like web search, file operations, and code execution
-- **Embeddings**: Allow the model to create numerical representations of text (for advanced users)
-- **Web Search**: Let the model search the internet for current information
-- **Reasoning**: Enable step-by-step thinking for complex problems
-
-![Model Capabilities Edit 01](./_assets/model-capabilities-edit-01.png)
-![Model Capabilities Edit 02](./_assets/model-capabilities-edit-02.png)
-
## Hardware Settings
These control how efficiently the model runs on your computer:
@@ -90,10 +68,9 @@ Jan defaults to 8192 tokens (roughly 6000 words) or your model's maximum, whiche
## Quick Setup Guide
**For most users:**
-1. Enable **Tools** if you want web search and code execution
-2. Set **Temperature** to 0.7 for balanced creativity
-3. Max out **GPU Layers** (reduce only if you get memory errors)
-4. Leave other settings at defaults
+1. Set **Temperature** to 0.7 for balanced creativity
+2. Max out **GPU Layers** (reduce only if you get memory errors)
+3. Leave other settings at defaults
**For creative writing:**
- Increase **Temperature** to 0.8-1.0
@@ -101,7 +78,6 @@ Jan defaults to 8192 tokens (roughly 6000 words) or your model's maximum, whiche
**For factual/technical work:**
- Decrease **Temperature** to 0.1-0.3
-- Enable **Tools** for web search and calculations
**Troubleshooting:**
- **Responses too repetitive?** Increase Temperature or Repeat Penalty