File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,16 @@ FROM python:3.10-alpine as builder
33WORKDIR /workspace
44
55COPY pyproject.toml poetry.lock ./
6- COPY llmaz/ llmaz/
76ENV POETRY_VIRTUALENVS_CREATE false
87
98RUN apk add --no-cache \
109 build-base \
1110 libffi-dev \
1211 openssl-dev \
1312 py3-pip \
14- bash \
15- && pip install --no-cache-dir poetry && poetry install --no-dev
13+ bash
14+
15+ RUN pip install --no-cache-dir poetry==1.8.4 && poetry install --no-dev
1616
1717
1818FROM python:3.10-alpine
@@ -22,6 +22,7 @@ WORKDIR /workspace
2222RUN apk add --no-cache \
2323 bash
2424
25+ COPY llmaz/ llmaz/
2526COPY --from=builder /workspace /workspace
2627COPY --from=builder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
2728COPY --from=builder /usr/local/bin/ /usr/local/bin/
Original file line number Diff line number Diff line change 3939 if not model_id :
4040 raise EnvironmentError (f"Environment variable '{ model_id } ' not found." )
4141 hub = HubFactory .new (hub_name )
42- model_allow_patterns_list , model_ignore_patterns_list = [], []
42+ model_allow_patterns_list , model_ignore_patterns_list = None , None
4343 if model_allow_patterns :
4444 model_allow_patterns_list = model_allow_patterns .split ("," )
4545 if model_ignore_patterns :
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ def load_model(
5252 )
5353
5454 if filename :
55- allow_patterns . append ( filename )
55+ allow_patterns = [ filename ]
5656 local_dir = MODEL_LOCAL_DIR
5757
5858 snapshot_download (
You can’t perform that action at this time.
0 commit comments