Giter Site home page Giter Site logo

Comments (3)

kodxana avatar kodxana commented on May 20, 2024 1
# Use the specified base image
FROM nvidia/cuda:11.6.2-cudnn8-devel-ubuntu20.04
ENV DEBIAN_FRONTEND=noninteractive

# Install Python 3.10 and set it as the default
RUN apt-get update && \
    apt-get install -y software-properties-common && \
    add-apt-repository -y ppa:deadsnakes/ppa && \
    apt-get update && \
    apt-get install -y python3.10 python3.10-distutils python3.10-dev && \
    update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 && \
    update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1

# Install pip
RUN apt-get install -y wget git && \
    wget https://bootstrap.pypa.io/get-pip.py && \
    python3.10 get-pip.py && \
    rm get-pip.py

# Set the working directory
WORKDIR /app

# Clone the repository
RUN git clone https://github.com/h2oai/h2o-llmstudio.git /app

# Install required packages and dependencies
RUN pip install --upgrade pip \
    && pip install pipenv==2022.10.4 \
    && pipenv install --python 3.10 \
    && pipenv run pip install deps/h2o_wave-nightly-py3-none-manylinux1_x86_64.whl --force-reinstall

# Set environment variables for Wave and HF_HOME
ENV H2O_WAVE_MAX_REQUEST_SIZE=25MB \
    H2O_WAVE_NO_LOG=True \
    H2O_WAVE_PRIVATE_DIR="/download/@/app/output/download" \
    HF_HOME="/app/HF_CACHE"

# Create the HF_CACHE directory
RUN mkdir -p /app/HF_CACHE

# Expose the Wave server's port
EXPOSE 10101

# Start the Wave server
CMD ["pipenv", "run", "wave", "run", "app"]

Sharing also dockerfile I made :)

from h2o-llmstudio.

psinger avatar psinger commented on May 20, 2024

Hi @kodxana

If it is running fine by accessing it via IP:PORT, I assume there is an issue with your cloudfare proxy.

The proxy needs to allow websockets, given the error message, it appears this is not the case.

I would suggest to check the configuration for that.

from h2o-llmstudio.

psinger avatar psinger commented on May 20, 2024

Closing for now, please re-open if needed.

from h2o-llmstudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.