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 hub

Louis21106af269b6
diff --git a/docs/src/pages/docs/desktop/_assets/hf-model-id.png b/docs/src/pages/docs/desktop/_assets/hf-model-id.png
new file mode 100644
index 000000000..e7982ff38
Binary files /dev/null and b/docs/src/pages/docs/desktop/_assets/hf-model-id.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/hub-search.png b/docs/src/pages/docs/desktop/_assets/hub-search.png
new file mode 100644
index 000000000..fb2b945dc
Binary files /dev/null and b/docs/src/pages/docs/desktop/_assets/hub-search.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/hub.png b/docs/src/pages/docs/desktop/_assets/hub.png
new file mode 100644
index 000000000..f1a219023
Binary files /dev/null and b/docs/src/pages/docs/desktop/_assets/hub.png differ
diff --git a/docs/src/pages/docs/desktop/_assets/llama-cpp-import.png b/docs/src/pages/docs/desktop/_assets/llama-cpp-import.png
new file mode 100644
index 000000000..d41277837
Binary files /dev/null and b/docs/src/pages/docs/desktop/_assets/llama-cpp-import.png differ
diff --git a/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdx b/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdx
index b89cf70ff..d69324576 100644
--- a/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdx
+++ b/docs/src/pages/docs/desktop/local-engine/llama-cpp.mdx
@@ -44,10 +44,28 @@ Originally created by Georgi Gerganov, llama.cpp is designed to run large langua
## Accessing Engine Settings
-Find llama.cpp settings at **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Local Engine** > **llama.cpp**:
+Find llama.cpp settings at **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>) > **Llama.cpp** under Model Providers:
![llama.cpp](../_assets/llama-cpp-settings.png)
+## Model Management
+
+The **Models** section at the top of the Llama.cpp settings page lets you manage all your local GGUF models.
+
+### Download from Hub
+
+Browse and download models directly from the [Hub](/docs/desktop/manage-models) tab in the left sidebar. Downloaded models will appear here automatically.
+
+### Import Local Files
+
+Click **Import** to link a GGUF model file already on your computer. This is useful for models downloaded via your browser from Hugging Face, or models shared with other apps — Jan links to the file in place without copying it.
+
+![llama.cpp Import](../_assets/llama-cpp-import.png)
+
+### Delete a Model
+
+Click the trash icon next to any model to remove it. This deletes the model file from Jan's data folder (linked files leave the original intact).
+
<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>
diff --git a/docs/src/pages/docs/desktop/local-engine/mlx.mdx b/docs/src/pages/docs/desktop/local-engine/mlx.mdx
index 395dc9438..0429fe925 100644
--- a/docs/src/pages/docs/desktop/local-engine/mlx.mdx
+++ b/docs/src/pages/docs/desktop/local-engine/mlx.mdx
@@ -27,17 +27,28 @@ MLX support in Jan is currently in beta and will be improved significantly over
- macOS 14 or higher
- Apple Silicon (M1, M2, M3 or later)
-## Models
+## Accessing Engine Settings
-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**
+Find MLX settings at **Settings** > **MLX** under Model Providers:
![MLX Settings](../_assets/mlx-settings.png)
+## Model Management
+
MLX supports models in MLX-Swift format. Jan ships with MLX-compatible versions of its foundation models.
+### Download from Hub
+
+Browse and download MLX-compatible models directly from the [Hub](/docs/desktop/manage-models) tab in the left sidebar. Downloaded models will appear here automatically.
+
+### Import Local Files
+
+Click **Import** to link an MLX model file already on your computer. This is useful for models downloaded via your browser from Hugging Face, or models shared with other apps — Jan links to the file in place without copying it.
+
+### Delete a Model
+
+Click the trash icon next to any model to remove it. Linked files leave the original intact.
+
## 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/manage-models.mdx b/docs/src/pages/docs/desktop/manage-models.mdx
index 5014cf431..ff0a036ec 100644
--- a/docs/src/pages/docs/desktop/manage-models.mdx
+++ b/docs/src/pages/docs/desktop/manage-models.mdx
@@ -18,7 +18,8 @@ keywords:
]
---
import { Callout, Steps } from 'nextra/components'
-import { Settings, Trash2, EllipsisVertical, Plus, FolderOpen, Pencil } from 'lucide-react'
+import { Settings, Trash2, EllipsisVertical, Cpu, Zap, Sparkles, Brain, Globe, Network, Wind, GitBranch } from 'lucide-react'
+import { DocCard, DocCards } from '@/components/DocCard'
# Model Management
@@ -48,9 +49,7 @@ The easiest way to get started is using Jan's built-in model hub (which is conne
Jan will indicate if a model might be **Slow on your device** or **Not enough RAM** based on your system specifications.
</Callout>
-<br/>
-![Download Model](./_assets/model-management-01.png)
-<br/>
+![Hub](./_assets/hub.png)
#### 2. Import from [Hugging Face](https://huggingface.co/)
@@ -64,141 +63,31 @@ You can download models with a direct link from Hugging Face:
4. In Jan, paste the model ID to the **Search** bar in **Hub** page
5. Select your preferred quantized version to download (if the option is available)
-<br/>
**Copy the model ID.**
-![Find HF Model](./_assets/hf-unsloth.png)
+![Find HF Model](./_assets/hf-model-id.png)
-<br/>
**Paste it in Jan's Hub Search Bar.**
-![Import Model](./_assets/model-management-02.png)
-<br/>
+![Import Model](./_assets/hub-search.png)
#### 3. Import Local Files
-If you already have one or many GGUF model files on your computer:
-1. In Jan, go to **Settings > Model Providers > Llama.cpp**
-2. Click **Import** and select your GGUF file(s)
-3. Choose how you want to import:
- - **Link Files:** Creates symbolic links to your model files (saves space)
- - **Duplicate:** Makes a copy of model files in Jan's directory
-4. Click **Import** to complete (check the [Jan Data Folder](./data-folder) section for more info)
-
-<Callout type="warning">
-You need to own your **model configurations**, use at your own risk. Misconfigurations may result in lower
-quality or unexpected outputs. Learn about [model configurations here](./model-parameters).
-</Callout>
+If you already have model files on your computer, you can import them directly via the engine settings:
-<br/>
-![Download Model](./_assets/model-management-04.png)
-<br/>
-
-<br/>
-![Download Model](./_assets/model-import-04.png)
-<br/>
-
-<br/>
-![Download Model](./_assets/model-import-05.png)
-<br/>
-
-#### 4. Manual Setup
-
-For advanced users who want to add a specific model that is not available within the Jan **Hub**:
-
-<Steps>
-##### Step 1: Create Model File
-1. Navigate to the [Jan Data Folder](./data-folder)
-2. Open `models` folder
-3. Create a new **Folder** for your model
-4. Add your `model.gguf` file
-5. Add your `model.json` file with your configuration. Here's an example with "TinyLlama Chat 1.1B Q4":
-
-```json
-{
- "sources": [
- {
- "filename": "tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf",
- "url": "https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf"
- }
- ],
- "id": "tinyllama-1.1b",
- "object": "model",
- "name": "TinyLlama Chat 1.1B Q4",
- "version": "1.0",
- "description": "TinyLlama is a tiny model with only 1.1B. It's a good model for less powerful computers.",
- "format": "gguf",
- "settings": {
- "ctx_len": 4096,
- "prompt_template": "<|system|>\n{system_message}<|user|>\n{prompt}<|assistant|>",
- "llama_model_path": "tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf"
- },
- "parameters": {
- "temperature": 0.7,
- "top_p": 0.95,
- "stream": true,
- "max_tokens": 2048,
- "stop": [],
- "frequency_penalty": 0,
- "presence_penalty": 0
- },
- "metadata": {
- "author": "TinyLlama",
- "tags": [
- "Tiny",
- "Foundation Model"
- ],
- "size": 669000000
- },
- "engine": "nitro"
-}
-```
-##### Step 2: Modify Model Parameters
-
-Key fields to configure:
-1. The **Settings** array is where you can set the path or location of your model in your computer, the context
-length allowed, and the chat template expected by your model.
-2. The [**Parameters**](/docs/desktop/model-parameters) are the adjustable settings that affect how your model operates or
-processes the data. The fields in the parameters array are typically general and can be used across different
-models. Here is an example of model parameters:
-
-```json
-"parameters":{
- "temperature": 0.7,
- "top_p": 0.95,
- "stream": true,
- "max_tokens": 4096,
- "frequency_penalty": 0,
- "presence_penalty": 0,
-}
-```
-</Steps>
-
-### Delete Models
-1. Go to **Settings > Model Providers > Llama.cpp**
-2. Find the model you want to remove
-3. Select the three dots <EllipsisVertical width={16} height={16} style={{display:"inline"}}/> icon next to it and select **Delete Model**
-
-<br/>
-![Delete Model](./_assets/model-management-05.png)
-<br/>
+<DocCards cols={2}>
+ <DocCard title="Llama.cpp" href="/docs/desktop/local-engine/llama-cpp" icon={<Cpu size={20} />}>Import GGUF model files for local inference on CPU or GPU.</DocCard>
+ <DocCard title="MLX" href="/docs/desktop/local-engine/mlx" icon={<Zap size={20} />}>Import MLX-Swift models for Apple Silicon.</DocCard>
+</DocCards>
## Cloud Models
-<Callout type="info">
-When using cloud models, be aware of any associated costs and rate limits from the providers. See detailed guide for
-each cloud model provider [here](/docs/desktop/remote-models/anthropic).
-</Callout>
+Jan supports connecting to various AI cloud providers. Go to **Settings > Model Providers**, select your provider, and enter your API key.
-Jan supports connecting to various AI cloud providers that are OpenAI API-compatible, including: OpenAI (GPT-4o, o3,...),
-Anthropic (Claude), Groq, Mistral, and more.
-1. Navigate to **Settings** (<Settings width={16} height={16} style={{display:"inline"}}/>)
-2. Under **Model Providers** section in the left sidebar, choose your preferred provider (OpenAI, Anthropic, etc.)
-3. Enter your API key
-4. The activated cloud models will be available in your model selector inside the **Chat** panel
-
-<br/>
-![Download Model](./_assets/model-management-06.png)
-<br/>
-As soon as you add your key for a model provider like Anthropic or OpenAI, you will be able to pick one of their models to chat with.
-![Connect Remote APIs](./_assets/quick-start-03.png)
-<br/>
+<DocCards cols={2}>
+ <DocCard title="OpenAI" href="/docs/desktop/remote-models/openai" icon={<Sparkles size={20} />}>Use GPT-4o, o3, and other OpenAI models.</DocCard>
+ <DocCard title="Anthropic" href="/docs/desktop/remote-models/anthropic" icon={<Brain size={20} />}>Use Claude models from Anthropic.</DocCard>
+ <DocCard title="Google" href="/docs/desktop/remote-models/google" icon={<Globe size={20} />}>Use Gemini models from Google.</DocCard>
+ <DocCard title="Groq" href="/docs/desktop/remote-models/groq" icon={<Zap size={20} />}>Fast inference for open-source models.</DocCard>
+ <DocCard title="Mistral" href="/docs/desktop/remote-models/mistralai" icon={<Wind size={20} />}>Use Mistral AI models.</DocCard>
+ <DocCard title="OpenRouter" href="/docs/desktop/remote-models/openrouter" icon={<Network size={20} />}>Access hundreds of models via a single API.</DocCard>
+</DocCards>