Merge branch 'dev' into docs-update-acknowledgements

This commit is contained in:
Henry 2024-02-26 11:48:16 +09:00 committed by GitHub
commit ad7ebb1517
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,13 +13,13 @@ keywords:
no-subscription fee, no-subscription fee,
large language model, large language model,
docker installation, docker installation,
cpu mode,
gpu mode,
] ]
--- ---
# Installing Jan using Docker # Installing Jan using Docker
## Installation
### Pre-requisites ### Pre-requisites
:::note :::note
@ -37,14 +37,32 @@ sudo sh ./get-docker.sh --dry-run
- If you intend to run Jan in GPU mode, you need to install `nvidia-driver` and `nvidia-docker2`. Follow the instruction [here](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html) for installation. - If you intend to run Jan in GPU mode, you need to install `nvidia-driver` and `nvidia-docker2`. Follow the instruction [here](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html) for installation.
### Instructions ### Run Jan in Docker Mode
- Run Jan in Docker mode | Docker compose Profile | Description |
| ---------------------- | -------------------------------------------- |
| `cpu-fs` | Run Jan in CPU mode with default file system |
| `cpu-s3fs` | Run Jan in CPU mode with S3 file system |
| `gpu-fs` | Run Jan in GPU mode with default file system |
| `gpu-s3fs` | Run Jan in GPU mode with S3 file system |
| Environment Variable | Description |
| ----------------------- | ------------------------------------------------------------------------------------------------------- |
| `S3_BUCKET_NAME` | S3 bucket name - leave blank for default file system |
| `AWS_ACCESS_KEY_ID` | AWS access key ID - leave blank for default file system |
| `AWS_SECRET_ACCESS_KEY` | AWS secret access key - leave blank for default file system |
| `AWS_ENDPOINT` | AWS endpoint URL - leave blank for default file system |
| `AWS_REGION` | AWS region - leave blank for default file system |
| `API_BASE_URL` | Jan Server URL, please modify it as your public ip address or domain name default http://localhost:1377 |
- **Option 1**: Run Jan in CPU mode - **Option 1**: Run Jan in CPU mode
```bash ```bash
docker compose --profile cpu up -d # cpu mode with default file system
docker compose --profile cpu-fs up -d
# cpu mode with S3 file system
docker compose --profile cpu-s3fs up -d
``` ```
- **Option 2**: Run Jan in GPU mode - **Option 2**: Run Jan in GPU mode
@ -89,14 +107,17 @@ sudo sh ./get-docker.sh --dry-run
- **Step 4**: Run command to start Jan in GPU mode - **Step 4**: Run command to start Jan in GPU mode
```bash ```bash
# GPU mode # GPU mode with default file system
docker compose --profile gpu up -d docker compose --profile gpu up -d
# GPU mode with S3 file system
docker compose --profile gpu-s3fs up -d
``` ```
This will start the web server and you can access Jan at `http://localhost:3000`. This will start the web server and you can access Jan at `http://localhost:3000`.
:::warning :::warning
- Docker mode is currently only suitable for development and localhost. Production is not supported yet, and the RAG feature is not available in Docker mode. - RAG feature is not supported in Docker mode with s3fs yet.
::: :::