Spaces:
Runtime error
Runtime error
Delete Dockerfile
Browse files- Dockerfile +0 -49
Dockerfile
DELETED
|
@@ -1,49 +0,0 @@
|
|
| 1 |
-
FROM ubuntu:22.04
|
| 2 |
-
|
| 3 |
-
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
-
|
| 5 |
-
# Update & install system dependencies
|
| 6 |
-
RUN apt-get update && apt-get install -y \
|
| 7 |
-
wget \
|
| 8 |
-
curl \
|
| 9 |
-
git \
|
| 10 |
-
cmake \
|
| 11 |
-
build-essential \
|
| 12 |
-
python3 \
|
| 13 |
-
python3-pip \
|
| 14 |
-
python-is-python3 \
|
| 15 |
-
ca-certificates \
|
| 16 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 17 |
-
|
| 18 |
-
# Install LLVM
|
| 19 |
-
# NOTE: Uncomment this if you actually want to install LLVM.
|
| 20 |
-
# RUN bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
|
| 21 |
-
|
| 22 |
-
# Clone BitNet
|
| 23 |
-
RUN git clone --recursive https://github.com/microsoft/BitNet.git
|
| 24 |
-
|
| 25 |
-
# Copy everything from the local directory (where Dockerfile is) into the BitNet directory in the container
|
| 26 |
-
COPY . /BitNet
|
| 27 |
-
|
| 28 |
-
WORKDIR /BitNet
|
| 29 |
-
|
| 30 |
-
# Install Python dependencies
|
| 31 |
-
RUN pip install --upgrade pip && \
|
| 32 |
-
pip install -r requirements.txt
|
| 33 |
-
|
| 34 |
-
# Hugging Face CLI setup
|
| 35 |
-
RUN pip install huggingface_hub
|
| 36 |
-
|
| 37 |
-
# Optional: HF token
|
| 38 |
-
ARG HF_TOKEN
|
| 39 |
-
RUN huggingface-cli login --token $HF_TOKEN || true
|
| 40 |
-
|
| 41 |
-
# Download the model into ./models/
|
| 42 |
-
|
| 43 |
-
RUN python setup_env.py --hf-repo tiiuae/Falcon3-7B-Instruct-1.58bit -q i2_s
|
| 44 |
-
RUN cat logs/generate_build_files.log
|
| 45 |
-
|
| 46 |
-
RUN pwd
|
| 47 |
-
RUN ls
|
| 48 |
-
|
| 49 |
-
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|