Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epic: Streamline Jan Installation Process #123

Closed
dan-homebrew opened this issue Sep 10, 2023 · 1 comment
Closed

Epic: Streamline Jan Installation Process #123

dan-homebrew opened this issue Sep 10, 2023 · 1 comment
Assignees
Labels
P0: critical Mission critical

Comments

@dan-homebrew
Copy link
Contributor

dan-homebrew commented Sep 10, 2023

Problems

Longer-term Story

  • Jan should have an installation UI or CLI script
@0xSage
Copy link
Contributor

0xSage commented Sep 10, 2023

High Level Spec

Quickstart (~10 min)

Install everything using a single command.

Note: Out of the box, Jan is production-ready and has an opinionated stack. If you wish to ship a lighter application for personal/local use only, please opt for a manual installation.

./run.sh

Manual Installation (Recommended)

  1. Install dependencies
  • Docker
  • Docker compose
  • (Optional) GPU drivers
    # If gpu_mode:
    echo "Running Nitro on GPUs, checking dependencies"
    # install nvidia-smi
    echo "nvidia-smi not detected, install?"
    # install cuda drivers
    echo "cuda drivers not detected, install?"
    # install nvidia-driver
    echo "nvidia-driver not detected, install?"
  1. Clone this repo

    git clone https://github.com/janhq/jan.git
    
    cd jan
    
    # Pull latest submodules
    git submodule update --init --recursive
  2. Configure .env

    # Your architecture
    DOCKER_DEFAULT_PLATFORM=linux/$(uname -m)
    
    # App frontend
    WEB_PORT=3000
    ROOT_USERNAME=username
    ROOT_PASSWORD=password
    
    # App Backend
    HASURA_PORT=8080
    HASURA_ADMIN_USERNAME=admin
    HASURA_ADMIN_PASSWORD=admin
    
    # User management
    KEYCLOAK_PORT=8088
    KEYCLOAK_ADMIN=admin
    KEYCLOAK_ADMIN_PASSWORD=admin
  3. Install model(s)

    wget https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/resolve/main/llama-2-7b-chat.ggmlv3.q4_1.bin -P jan-inference/llm/models
  4. Run Jan

    docker compose up
  5. In a new tab, run seed migration

    docker sh hasura container
    ./seed.sh

@0xSage 0xSage added the P0: critical Mission critical label Sep 10, 2023
@0xSage 0xSage changed the title epic: Streamline Jan Installation Process Epic: Streamline Jan Installation Process Sep 10, 2023
@0xSage 0xSage closed this as completed Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0: critical Mission critical
Projects
None yet
Development

No branches or pull requests

2 participants