clarifai 11.0.6rc3__py3-none-any.whl → 11.0.6rc4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
clarifai/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "11.0.6rc3"
1
+ __version__ = "11.0.6rc4"
@@ -19,30 +19,24 @@ FROM --platform=$TARGETPLATFORM ${BASE_IMAGE} as final
19
19
  # Set the NUMBA cache dir to /tmp
20
20
  # Set the TORCHINDUCTOR cache dir to /tmp
21
21
  # The CLARIFAI* will be set by the templaing system.
22
- ENV CLARIFAI_PAT=${CLARIFAI_PAT} \
23
- CLARIFAI_USER_ID=${CLARIFAI_USER_ID} \
24
- CLARIFAI_RUNNER_ID=${CLARIFAI_RUNNER_ID} \
25
- CLARIFAI_NODEPOOL_ID=${CLARIFAI_NODEPOOL_ID} \
26
- CLARIFAI_COMPUTE_CLUSTER_ID=${CLARIFAI_COMPUTE_CLUSTER_ID} \
27
- CLARIFAI_API_BASE=${CLARIFAI_API_BASE} \
28
- NUMBA_CACHE_DIR=/tmp/numba_cache \
22
+ ENV NUMBA_CACHE_DIR=/tmp/numba_cache \
29
23
  TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor_cache \
30
24
  HOME=/tmp \
31
25
  DEBIAN_FRONTEND=noninteractive
32
26
 
33
27
  # make sure we have the latest clarifai package.
34
- RUN (pip install --upgrade --upgrade-strategy only-if-needed --no-cache-dir clarifai==11.0.6rc3 clarifai-grpc clarifai-protocol huggingface_hub[hf_transfer] || true)
28
+ RUN (pip install --upgrade --upgrade-strategy only-if-needed --no-cache-dir clarifai==11.0.6rc4 clarifai-grpc clarifai-protocol huggingface_hub[hf_transfer] || true)
35
29
 
36
30
  #####
37
31
  # Download any checkpoints now into the final image so we don't copy large checkpoints across stages.
38
32
  #####
39
33
  # This creates the directory that HF downloader will populate and with nonroot:nonroot permissions up.
40
- COPY --chown=nonroot:nonroot downloader/requirements.txt /home/nonroot/model_dir/main/1/checkpoints/.cache/not_used.yaml
34
+ COPY --chown=nonroot:nonroot downloader/unused.yaml /home/nonroot/main/1/checkpoints/.cache/unused.yaml
41
35
 
42
36
  # Mount the folder with the download_checkpoints.py, config.yaml that's been parsed then download
43
37
  # the checkpoints. This invalidates the cache if we have a different repo_id to download, but the
44
38
  # HF_TOKEN changing does not invalidate. It's validated before running the dockerfile
45
- RUN --mount=type=secret,id=HF_TOKEN,env=HF_TOKEN --mount=type=bind,rw,source=downloader,target=/home/nonroot/model_dir/main [ -s /home/nonroot/model_dir/main/config.yaml ] && clarifai model download-checkpoints --model_path /home/nonroot/model_dir/main
39
+ RUN --mount=type=secret,id=HF_TOKEN,env=HF_TOKEN --mount=type=bind,rw,source=downloader,target=/home/nonroot/main [ -s /home/nonroot/main/config.yaml ] && clarifai model download-checkpoints --model_path /home/nonroot/main
46
40
  #####
47
41
 
48
42
  #####
@@ -59,7 +53,14 @@ COPY --link=true 1/model.py /home/nonroot/main/1/model.py
59
53
  COPY --link=true requirements.txt config.yaml /home/nonroot/main/
60
54
 
61
55
  # Add the model directory to the python path.
62
- ENV PYTHONPATH=${PYTHONPATH}:/home/nonroot/main
56
+ ENV PYTHONPATH=${PYTHONPATH}:/home/nonroot/main \
57
+ CLARIFAI_PAT=${CLARIFAI_PAT} \
58
+ CLARIFAI_USER_ID=${CLARIFAI_USER_ID} \
59
+ CLARIFAI_RUNNER_ID=${CLARIFAI_RUNNER_ID} \
60
+ CLARIFAI_NODEPOOL_ID=${CLARIFAI_NODEPOOL_ID} \
61
+ CLARIFAI_COMPUTE_CLUSTER_ID=${CLARIFAI_COMPUTE_CLUSTER_ID} \
62
+ CLARIFAI_API_BASE=${CLARIFAI_API_BASE}
63
+
63
64
  # Finally run the clarifai entrypoint to start the runner loop and local dev server.
64
65
  # Note(zeiler): we may want to make this a clarifai CLI call.
65
66
  ENTRYPOINT ["python", "-m", "clarifai.runners.server"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: clarifai
3
- Version: 11.0.6rc3
3
+ Version: 11.0.6rc4
4
4
  Summary: Clarifai Python SDK
5
5
  Home-page: https://github.com/Clarifai/clarifai-python
6
6
  Author: Clarifai
@@ -1,4 +1,4 @@
1
- clarifai/__init__.py,sha256=wwk3Op70vYCHwmVzT4lb7t5LtHSrq24qfGTPRmFHmpQ,26
1
+ clarifai/__init__.py,sha256=Rda9S1g1pJs82Qfo2-c0sYV_y8IypcMn4Hi5xKUZ53M,26
2
2
  clarifai/cli.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  clarifai/errors.py,sha256=RwzTajwds51wLD0MVlMC5kcpBnzRpreDLlazPSBZxrg,2605
4
4
  clarifai/versions.py,sha256=jctnczzfGk_S3EnVqb2FjRKfSREkNmvNEwAAa_VoKiQ,222
@@ -179,7 +179,7 @@ clarifai/runners/__pycache__/__init__.cpython-310.pyc,sha256=0NgDCoyN2JSuNXQ20MC
179
179
  clarifai/runners/__pycache__/server.cpython-310.pyc,sha256=a6yFsRHEWmPhlvVlBx4AhsOms7Q4If62hhmldpW_d6Q,3644
180
180
  clarifai/runners/dockerfile_template/Dockerfile.cpu.template,sha256=B35jcpqWBP3ALa2WRtbtBg8uvDyqP_PWZnJtIeAnjT0,1222
181
181
  clarifai/runners/dockerfile_template/Dockerfile.cuda.template,sha256=TMqTZBN1exMYzjLotn17DO4Je0rg9pBapIuwdohwht8,3228
182
- clarifai/runners/dockerfile_template/Dockerfile.template,sha256=i-TtCHaMg-UQU5y5gLo-KmpD8d84VBwYGgs1lz9Vjl4,3344
182
+ clarifai/runners/dockerfile_template/Dockerfile.template,sha256=4by2jFgxKdiNmfNg6b466o2qKBoSKK-oSLql37Nrmdw,3298
183
183
  clarifai/runners/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
184
184
  clarifai/runners/models/base_typed_model.py,sha256=DWEUK5ge9NVZE6LkT3BNTFYjYMPHz-nDgPA48Y0DGXU,7859
185
185
  clarifai/runners/models/model_class.py,sha256=9JSPAr4U4K7xI0kSl-q0mHB06zknm2OR-8XIgBCto94,1611
@@ -193,7 +193,7 @@ clarifai/runners/models/__pycache__/model_class.cpython-310.pyc,sha256=OxOQDH4G_
193
193
  clarifai/runners/models/__pycache__/model_run_locally.cpython-310.pyc,sha256=_vm1H_HBCwWRpl-3mVjRIVbvHDYM6-sz9OheR1BmzcE,17040
194
194
  clarifai/runners/models/__pycache__/model_runner.cpython-310.pyc,sha256=lMrT9MMO3sLTo11zSv5XYTBQte3oY23esUFV4Wdnquw,5108
195
195
  clarifai/runners/models/__pycache__/model_servicer.cpython-310.pyc,sha256=w5kENnKCiiZSpZF6g7N1wljHbnan3pi_mhZBm_VvD4Q,2489
196
- clarifai/runners/models/__pycache__/model_upload.cpython-310.pyc,sha256=LPSX1f79I5ccpQ2_rnvgQi89VQLAqwPJz7y0oZq5Ki0,19914
196
+ clarifai/runners/models/__pycache__/model_upload.cpython-310.pyc,sha256=CG8-gv-z85RKQgmcbSsYcgc2ubyXmYgT-X8Hx2m8rkE,19914
197
197
  clarifai/runners/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
198
198
  clarifai/runners/utils/const.py,sha256=ICs9OqDcg-FLOxZU42M8zEOPo9k-91HK43hEUWVzexk,1293
199
199
  clarifai/runners/utils/data_handler.py,sha256=sxy9zlAgI6ETuxCQhUgEXAn2GCsaW1GxpK6GTaMne0g,6966
@@ -205,7 +205,7 @@ clarifai/runners/utils/__pycache__/__init__.cpython-310.pyc,sha256=PRPZOzUV5Z8gr
205
205
  clarifai/runners/utils/__pycache__/const.cpython-310.pyc,sha256=uXC9b5KPZhgxUJTiqkxUw69tX3gQ1O8JdQFfyou2qgI,1028
206
206
  clarifai/runners/utils/__pycache__/data_handler.cpython-310.pyc,sha256=YVncnM0NaHeMaZAyALxaHCdtUT6n5E3BI99-54Bs6HM,7961
207
207
  clarifai/runners/utils/__pycache__/data_utils.cpython-310.pyc,sha256=1e6NiK6bnJiiAo2KPsDmm91BSlbI3mVkQZKbDfh5hBI,642
208
- clarifai/runners/utils/__pycache__/loader.cpython-310.pyc,sha256=qrFCYFv1xWR_0QwLWbWE7wTaL41OMShVeopZptRu9Ss,6128
208
+ clarifai/runners/utils/__pycache__/loader.cpython-310.pyc,sha256=GtEgqdRxFjiaRNcCTydcsDxufYLwEDBci1Mz7MN1vWQ,6128
209
209
  clarifai/runners/utils/__pycache__/logging.cpython-310.pyc,sha256=VV0KFcnuYpFFtaG4EeDIgg7c4QEsBLo-eX_NnsyFEhA,331
210
210
  clarifai/runners/utils/__pycache__/url_fetcher.cpython-310.pyc,sha256=jFxVdOmm7DCkgatv1GwIXeefHthpvlkg4ybBlMnmxss,1739
211
211
  clarifai/schema/search.py,sha256=JjTi8ammJgZZ2OGl4K6tIA4zEJ1Fr2ASZARXavI1j5c,2448
@@ -234,9 +234,9 @@ clarifai/workflows/__pycache__/__init__.cpython-310.pyc,sha256=oRKg6B7Z-wWQy0EW2
234
234
  clarifai/workflows/__pycache__/export.cpython-310.pyc,sha256=cNmGLnww7xVpm4htd1vRhQJoEZ1dhpN1oD8iLLAtVzM,2418
235
235
  clarifai/workflows/__pycache__/utils.cpython-310.pyc,sha256=rm2kWk4a3GOKWoerXpEAEeRvGhEe7wPd0ZZ6jHtEGqY,1925
236
236
  clarifai/workflows/__pycache__/validate.cpython-310.pyc,sha256=QA1i6YdDpY824cqtQvkEaFPpaCa2iqfOwFouqwZfAKY,2139
237
- clarifai-11.0.6rc3.dist-info/LICENSE,sha256=mUqF_d12-qE2n41g7C5_sq-BMLOcj6CNN-jevr15YHU,555
238
- clarifai-11.0.6rc3.dist-info/METADATA,sha256=3GEgL66cmwBjmxhMpuGyecgmpkr3wwzZn_y9BvH0PqQ,22236
239
- clarifai-11.0.6rc3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
240
- clarifai-11.0.6rc3.dist-info/entry_points.txt,sha256=X9FZ4Z-i_r2Ud1RpZ9sNIFYuu_-9fogzCMCRUD9hyX0,51
241
- clarifai-11.0.6rc3.dist-info/top_level.txt,sha256=wUMdCQGjkxaynZ6nZ9FAnvBUCgp5RJUVFSy2j-KYo0s,9
242
- clarifai-11.0.6rc3.dist-info/RECORD,,
237
+ clarifai-11.0.6rc4.dist-info/LICENSE,sha256=mUqF_d12-qE2n41g7C5_sq-BMLOcj6CNN-jevr15YHU,555
238
+ clarifai-11.0.6rc4.dist-info/METADATA,sha256=jHyn_oRIZvveFpo70Y-DP4TQD6yQtWEca9Dkg-8XaLY,22236
239
+ clarifai-11.0.6rc4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
240
+ clarifai-11.0.6rc4.dist-info/entry_points.txt,sha256=X9FZ4Z-i_r2Ud1RpZ9sNIFYuu_-9fogzCMCRUD9hyX0,51
241
+ clarifai-11.0.6rc4.dist-info/top_level.txt,sha256=wUMdCQGjkxaynZ6nZ9FAnvBUCgp5RJUVFSy2j-KYo0s,9
242
+ clarifai-11.0.6rc4.dist-info/RECORD,,