biniou

Woolverine94GPL-3.0活跃维护

自托管的生成式 AI 网页界面,集成 30 多种模型,覆盖图像、视频、音频生成,用浏览器就能统一调用,省去逐个搭建环境的麻烦。

a self-hosted webui for 30+ generative ai

v0.0.1发布于 2024-05-29 03:09 UTC1,153star136fork同步于 2026-11-10 17:52 UTC

怎么上手

由 README 提炼,执行前请确认
sh <(curl https://raw.githubusercontent.com/Woolverine94/biniou/main/oci-debian.sh || wget -O - https://raw.githubusercontent.com/Woolverine94/biniou/main/oci-debian.sh)
硬件要求按 README 说明

README 称无需独立 GPU,最低 8GB 内存即可运行;提供 CUDA Docker 镜像,但未列出具体显存要求和 GPU 型号。

纯 CPU 可运行支持 Apple Silicon需要 CUDA支持 ROCm / AMD有 Docker 镜像
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

自托管生成式 AI 网页界面,集成 30+ 模型,无独显也能在本地跑多媒体生成与聊天

自托管的生成式 AI 网页界面,集成 30 多种模型,覆盖图像、视频、音频生成,用浏览器就能统一调用,省去逐个搭建环境的麻烦。

核心能力

  • 统一 WebUI 集成 30+ 生成式 AI 模型
  • 支持文生图、音乐、语音与聊天机器人
  • 部署并下载模型后可完全离线运行
  • 提供各发行版一键安装脚本与 Docker 镜像
  • 支持 SDXL、Flux 等模型的 LoRA 扩展

容易踩的坑

模型需首次使用时另行下载,离线运行前要先完成下载;Windows 安装会改动系统并安装 Git、Python 3.11、VS Build Tools 等多项依赖,建议先备份;macOS 仅实验性支持 Intel,且当前不兼容 Apple Silicon。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

1 个版本v0.0.1
  1. v0.0.1Pre-release 0.0.1pre-release最新正式版2024-05-29 · 2024-05-29 03:09 UTC

    Initial pre-release.

    UPDATE 07/02/2025 : Please note that this release is now obsolete and should probably not work in many contexts. You should definitely consider using the dev release instead.

    This pre-release must be considered as a first stable milestone before further deep modifications of biniou. Use in production at your own risks !

    Linux One-click installers :

    Open-Suse base

    OpenSUSE Leap 15.5 / OpenSUSE Tumbleweed

    sh <(curl https://raw.githubusercontent.com/Woolverine94/biniou/0.0.1/oci-opensuse.sh || wget -O - https://raw.githubusercontent.com/Woolverine94/biniou/0.0.1/oci-opensuse.sh)
    

    RHEL base

    Rocky 9.3 / Alma 9.3 / CentOS Stream 9 / Fedora 39

    sh <(curl https://raw.githubusercontent.com/Woolverine94/biniou/0.0.1/oci-rhel.sh || wget -O - https://raw.githubusercontent.com/Woolverine94/biniou/0.0.1/oci-rhel.sh)
    

    Debian base

    Debian 12 / Ubuntu 22.04.3 / Linux Mint 21.2+

    sh <(curl https://raw.githubusercontent.com/Woolverine94/biniou/0.0.1/oci-debian.sh || wget -O - https://raw.githubusercontent.com/Woolverine94/biniou/0.0.1/oci-debian.sh)
    

    Windows CMD installer :

    Windows 10/Windows 11

    Save and execute this cmd script. Running as administrator avoid manual UAC validation.

    Dockerfile :

    CPU-only

    docker build -t biniou https://raw.githubusercontent.com/Woolverine94/biniou/0.0.1/Dockerfile
    

    CUDA support

    docker build -t biniou https://raw.githubusercontent.com/Woolverine94/biniou/0.0.1/CUDA/Dockerfile
    

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Home

    biniou Docker Image CI biniou CUDA Docker Image CI


    Updates

    Updates archive


    Menu


    Features


    Prerequisites

    • Minimal hardware :

      • 64bit CPU (AMD64 architecture ONLY)
      • 8GB RAM
      • Storage requirements :
        • for GNU/Linux : at least 20GB for installation without models.
        • for Windows : at least 30GB for installation without models.
        • for macOS : at least ??GB for installation without models.
      • Storage type : HDD
      • Internet access (required only for installation and models download) : unlimited bandwidth optical fiber internet access
    • Recommended hardware :

      • Massively multicore 64bit CPU (AMD64 architecture ONLY) and a GPU compatible with CUDA or ROCm
      • 16GB+ RAM
      • Storage requirements :
        • for GNU/Linux : around 200GB for installation including all defaults models.
        • for Windows : around 200GB for installation including all defaults models.
        • for macOS : around ??GB for installation including all defaults models.
      • Storage type : SSD Nvme
      • Internet access (required only for installation and models download) : unlimited bandwidth optical fiber internet access
    • Operating system :

      • a 64 bit OS :
        • Debian 12
        • Ubuntu 22.04.3 / 24.04
        • Linux Mint 21.2+ / 22+
        • Pop! OS
        • Rocky 9.3+
        • Alma 9.3+
        • CentOS Stream 9
        • Fedora 39+
        • OpenSUSE Leap 15.5
        • OpenSUSE Tumbleweed
        • CachyOS
        • OpenMandriva
        • Windows 10 22H2
        • Windows 11 22H2
        • macOS ???
    • Software pre-requisites (will be installed automatically with install scripts) :

      • Python 3.10 or 3.11 (3.11+ wouldn't work)
      • git
      • pip
      • python3.x-venv
      • python3.x-dev
      • gcc
      • perl
      • make / Cmake via Visual Studio 2017 for Windows
      • ffmpeg
      • openssl

    Note : biniou supports Cuda or ROCm but does not require a dedicated GPU to run. You can install it in a virtual machine.


    Installation

    GNU/Linux

    OpenSUSE Leap 15.5 / OpenSUSE Tumbleweed
    One-click installer :
    1. Copy/paste and execute the following command in a terminal :
    sh <(curl https://raw.githubusercontent.com/Woolverine94/biniou/main/oci-opensuse.sh || wget -O - https://raw.githubusercontent.com/Woolverine94/biniou/main/oci-opensuse.sh)
    
    Rocky 9.3+ / Alma 9.3+ / CentOS Stream 9 / Fedora 39+
    One-click installer :
    1. Copy/paste and execute the following command in a terminal :
    sh <(curl https://raw.githubusercontent.com/Woolverine94/biniou/main/oci-rhel.sh || wget -O - https://raw.githubusercontent.com/Woolverine94/biniou/main/oci-rhel.sh)
    
    CachyOS
    One-click installer :
    1. Copy/paste and execute the following command in a terminal :
    sh (curl https://raw.githubusercontent.com/Woolverine94/biniou/main/oci-arch.sh|psub)
    
    OpenMandriva
    One-click installer :
    1. Copy/paste and execute the following command in a terminal :
    sh <(curl https://raw.githubusercontent.com/Woolverine94/biniou/main/oci-mandriva.sh || wget -O - https://raw.githubusercontent.com/Woolverine94/biniou/main/oci-mandriva.sh)
    
    Debian 12 / Ubuntu 22.04.3 / Ubuntu 24.04 / Linux Mint 21.2+ / Linux Mint 22+ / Pop! OS
    One-click installer :
    1. Copy/paste and execute the following command in a terminal :
    sh <(curl https://raw.githubusercontent.com/Woolverine94/biniou/main/oci-debian.sh || wget -O - https://raw.githubusercontent.com/Woolverine94/biniou/main/oci-debian.sh)
    
    Manual installation (debian 12 / Ubuntu 22.04 / Linux Mint 21.2+) :
    1. Install the pre-requisites as root :
    apt install git pip python3 python3-venv gcc perl make ffmpeg openssl
    
    1. Clone this repository as user :
    git clone https://github.com/Woolverine94/biniou.git
    
    1. Launch the installer :
    cd ./biniou
    ./install.sh
    
    1. (optional, but highly recommended) Install TCMalloc as root to optimize memory management :
    apt install google-perftools
    

    Windows 10 / Windows 11

    Windows installation has more prerequisites than GNU/Linux one, and requires following softwares (which will be installed automatically) :

    • Git
    • Python 3.11 (and specifically 3.11 version)
    • OpenSSL
    • Visual Studio Build tools
    • Windows 10/11 SDK
    • Vcredist
    • ffmpeg
    • ... and all their dependencies.

    ⚠️ You should really make a backup of your system and datas before starting the installation process. ⚠️

    OR

    • Download and execute : install_win.cmd (right-click on the link and select "Save Target/Link as ..." to download)

    All the installation is automated, but Windows UAC will ask you for confirmation for each software installed during the "prerequisites" phase. You can avoid this by running the chosen installer as administrator.

    ⚠️ Since commit 8d2537b Windows users can now define a custom path for biniou directory, when installing with install_win.cmd ⚠️

    Proceed as follow :

    • Download and edit install_win.cmd
    • Modify set DEFAULT_BINIOU_DIR="%userprofile%" to set DEFAULT_BINIOU_DIR="E:\datas\somedir" (for example)
    • Only use absolute path (e.g.: E:\datas\somedir and not .\datas\somedir)
    • Don't add a trailing slash (e.g.: E:\datas\somedir and not E:\datas\somedir\ )
    • Don't add a "biniou" suffix to your path (e.g.: E:\datas\somedir\biniou), as the biniou directory will be created by the git clone command
    • Save and launch install_win.cmd

    macOS Intel Homebrew install

    ⚠️ Homebrew install is theoretically compatible with macOS Intel, but has not been tested. Use at your own risk. Also note that biniou is currently incompatible with Apple silicon. Any feedback on this procedure through discussions or an issue ticket will be really appreciated. ⚠️

    ⚠️ Update 01/09/2024: Thanks to @lepicodon, there's a workaround for Apple Silicon's users : you can install biniou in a virtual machine using OrbStack. See this comment for explanations. ⚠️

    1. Install Homebrew for your operating system

    2. Install required homebrew "bottles" :

    brew install git python3 gcc gcc@11 perl make ffmpeg openssl
    
    1. Install python virtualenv :
    python3 -m pip install virtualenv
    
    1. Clone this repository as user :
    git clone https://github.com/Woolverine94/biniou.git
    
    1. Launch the installer :
    cd ./biniou
    ./install.sh
    

    Dockerfile

    These instructions assumes that you already have a configured and working docker environment.

    1. Create the docker image :
    docker build -t biniou https://github.com/Woolverine94/biniou.git
    

    or, for CUDA support :

    docker build -t biniou https://raw.githubusercontent.com/Woolverine94/biniou/main/CUDA/Dockerfile
    

    Alternatively, you can directly pull a weekly updated image from ghcr.io using :

    docker pull ghcr.io/woolverine94/biniou:main
    

    or, for CUDA support :

    docker pull ghcr.io/woolverine94/biniou-cuda:main
    
    1. Launch the container :
    • For Dockerfile generated images :
    docker run -it --restart=always -p 7860:7860 \
    -v biniou_outputs:/home/biniou/biniou/outputs \
    -v biniou_models:/home/biniou/biniou/models \
    -v biniou_cache:/home/biniou/.cache/huggingface \
    -v biniou_gfpgan:/home/biniou/biniou/gfpgan \
    biniou:latest
    

    or, with CUDA support :

    docker run -it --gpus all --restart=always -p 7860:7860 \
    -v biniou_outputs:/home/biniou/biniou/outputs \
    -v biniou_models:/home/biniou/biniou/models \
    -v biniou_cache:/home/biniou/.cache/huggingface \
    -v biniou_gfpgan:/home/biniou/biniou/gfpgan \
    biniou:latest
    
    • For docker images pulled from ghcr.io :
    docker run -it --restart=always -p 7860:7860 \
    -v biniou_outputs:/home/biniou/biniou/outputs \
    -v biniou_models:/home/biniou/biniou/models \
    -v biniou_cache:/home/biniou/.cache/huggingface \
    -v biniou_gfpgan:/home/biniou/biniou/gfpgan \
    ghcr.io/woolverine94/biniou:main
    

    or, with CUDA support :

    docker run -it --gpus all --restart=always -p 7860:7860 \
    -v biniou_outputs:/home/biniou/biniou/outputs \
    -v biniou_models:/home/biniou/biniou/models \
    -v biniou_cache:/home/biniou/.cache/huggingface \
    -v biniou_gfpgan:/home/biniou/biniou/gfpgan \
    ghcr.io/woolverine94/biniou-cuda:main
    
    1. Access the webui by the url : https://127.0.0.1:7860 or https://127.0.0.1:7860/?__theme=dark for dark theme ... or replace 127.0.0.1 by ip of your container

    Note : to save storage space, the previous container launch command defines common shared volumes for all biniou containers and ensure that the container auto-restart in case of OOM crash. Remove --restart and -v arguments if you didn't want these behaviors.


    CUDA support

    biniou is natively cpu-only, to ensure compatibility with a wide range of hardware, but you can easily activate CUDA support through Nvidia CUDA (if you have a functional CUDA 12.1 environment) or AMD ROCm (if you have a functional ROCm 5.6 environment) by selecting the type of optimization to activate (CPU, CUDA or ROCm for Linux), in the WebUI control module.

    Currently, all modules except Chatbot, Llava and faceswap modules, could benefits from CUDA optimization.


    How To Use

    1. Launch by executing from the biniou directory :
    • for GNU/Linux :
    cd /home/$USER/biniou
    ./webui.sh
    
    • for Windows :

    Note : First start could be very slow on Windows 11 (comparing to others OS).

    1. Access the webui by the url : https://127.0.0.1:7860 or https://127.0.0.1:7860/?__theme=dark for dark theme You can also access biniou from any device (including smartphones) on the same LAN/Wifi network by replacing 127.0.0.1 in the url with biniou host ip address.

    2. Quit by using the keyboard shortcut CTRL+C in the Terminal

    3. Update this application (biniou + python virtual environment) by using the WebUI control updates options.


    Good to know

    • Most frequent cause of crash is not enough memory on the host. Symptom is biniou program closing and returning to/closing the terminal without specific error message. You can use biniou with 8GB RAM, but 16GB at least is recommended to avoid OOM (out of memory) error.

    • biniou use a lot of differents AI models, which requires a lot of space : if you want to use all the modules in biniou, you will need around 200GB of disk space only for the default model of each module. Models are downloaded on the first run of each module or when you select a new model in a module and generate content. Models are stored in the directory /models of the biniou installation. Unused models could be deleted to save some space.

    • ... consequently, you will need a fast internet access to download models.

    • A backup of every content generated is available inside the /outputs directory of the biniou folder.

    • biniou natively only rely on CPU for all operations. It use a specific CPU-only version of PyTorch. The result is a better compatibility with a wide range of hardware, but degraded performances. Depending on your hardware, expect slowness. See here for Nvidia CUDA support and AMD ROCm experimental support (GNU/Linux only).

    • Defaults settings are selected to permit generation of contents on low-end computers, with the best ratio performance/quality. If you have a configuration above the minimal settings, you could try using other models, increasing media dimensions or duration, modifying inference parameters or other settings (like token merging for images) to obtain better quality contents.

    • biniou is licensed under GNU GPL3, but each model used in biniou has its own license. Please consult each model license to know what you can and cannot do with the models. For each model, you can find a link to the huggingface page of the model in the "About" section of the associated module.

    • Don't have too much expectations : biniou is in an early stage of development, and most open source software used in it are in development (some are still experimental).

    • Every biniou modules offers 2 accordions elements About and Settings :

      • About is a quick help feature that describes the module and gives instructions and tips on how to use it.
      • Settings is a panel setting specific to the module that lets you configure the generation parameters.

    Credits

    This application uses the following softwares and technologies :

    ... and all their dependencies


    License

    GNU General Public License v3.0


    GitHub @Woolverine94  ·