Syzygianinfern0 commited on
Commit
830c168
·
1 Parent(s): f269277

Docker stuff for hf spaces

Browse files
Files changed (2) hide show
  1. Dockerfile +63 -0
  2. README.md +8 -0
Dockerfile ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Start from a base image with CUDA and Python
2
+ # FROM nvidia/cuda:12.4.1-cudnn8-devel-ubuntu22.04
3
+ FROM nvidia/cuda:12.8.1-base-ubuntu22.04
4
+
5
+ # System setup
6
+ ENV DEBIAN_FRONTEND=noninteractive
7
+
8
+ # Install system packages
9
+ RUN apt-get update && apt-get install -y \
10
+ python3 python3-pip python3-dev python3-venv \
11
+ git wget unzip cmake build-essential \
12
+ libboost-all-dev libginac-dev libglpk-dev \
13
+ m4 libcln-dev libgmp-dev automake libhwloc-dev \
14
+ libgl1 libglib2.0-0 && \
15
+ rm -rf /var/lib/apt/lists/*
16
+
17
+ # Set working directory
18
+ WORKDIR /app
19
+
20
+ # Set Python aliases
21
+ # RUN ln -s /usr/bin/python3 /usr/bin/python && \
22
+ # ln -s /usr/bin/pip3 /usr/bin/pip
23
+
24
+ # Upgrade pip
25
+ RUN pip install --upgrade pip
26
+
27
+ # Install Python packages
28
+ RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124 && \
29
+ pip install gradio transformers opencv-python decord joblib einops timm accelerate sentencepiece
30
+
31
+ # Clone and build carl-storm
32
+ RUN git clone https://github.com/moves-rwth/carl-storm && \
33
+ cd carl-storm && \
34
+ mkdir build && \
35
+ cd build && \
36
+ cmake .. && \
37
+ make lib_carl
38
+
39
+ # Clone and build storm
40
+ RUN mkdir -p storm_build && \
41
+ cd storm_build && \
42
+ wget https://github.com/moves-rwth/storm/archive/stable.zip && \
43
+ unzip stable.zip && \
44
+ cd storm-stable && \
45
+ mkdir build && \
46
+ cd build && \
47
+ cmake ../ -DCMAKE_BUILD_TYPE=Release \
48
+ -DSTORM_DEVELOPER=OFF \
49
+ -DSTORM_LOG_DISABLE_DEBUG=ON \
50
+ -DSTORM_PORTABLE=ON \
51
+ -DSTORM_USE_SPOT_SHIPPED=ON && \
52
+ make -j12
53
+
54
+ RUN pip install stormpy
55
+
56
+ # Copy your app code into the container
57
+ COPY . /app
58
+
59
+ # Expose the Gradio port
60
+ EXPOSE 7860
61
+
62
+ # Run your Gradio app
63
+ CMD ["python3", "evaluate_demo.py"]
README.md CHANGED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: NeuS-V
3
+ emoji: 🔍
4
+ colorFrom: purple
5
+ colorTo: gray
6
+ sdk: docker
7
+ app_port: 7860
8
+ ---