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
3
3
WORKDIR /workspace
4
4
5
5
COPY pyproject.toml poetry.lock ./
6
- COPY llmaz/ llmaz/
7
6
ENV POETRY_VIRTUALENVS_CREATE false
8
7
9
8
RUN apk add --no-cache \
10
9
build-base \
11
10
libffi-dev \
12
11
openssl-dev \
13
12
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
16
16
17
17
18
18
FROM python:3.10-alpine
@@ -22,6 +22,7 @@ WORKDIR /workspace
22
22
RUN apk add --no-cache \
23
23
bash
24
24
25
+ COPY llmaz/ llmaz/
25
26
COPY --from=builder /workspace /workspace
26
27
COPY --from=builder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
27
28
COPY --from=builder /usr/local/bin/ /usr/local/bin/
Original file line number Diff line number Diff line change 39
39
if not model_id :
40
40
raise EnvironmentError (f"Environment variable '{ model_id } ' not found." )
41
41
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
43
43
if model_allow_patterns :
44
44
model_allow_patterns_list = model_allow_patterns .split ("," )
45
45
if model_ignore_patterns :
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ def load_model(
52
52
)
53
53
54
54
if filename :
55
- allow_patterns . append ( filename )
55
+ allow_patterns = [ filename ]
56
56
local_dir = MODEL_LOCAL_DIR
57
57
58
58
snapshot_download (
You can’t perform that action at this time.
0 commit comments