Closed adamwawrzynski closed 1 year ago
Thanks for the bug report. I've investigated this and we've figured out what's going wrong. I'll update once this has been fixed.
This was fixed in #1647. Sorry for not updating here till now @adamwawrzynski !
Contact Details [Optional]
wawrzynski.adam@protonmail.com
System Information
ZENML_LOCAL_VERSION: 0.40.1 ZENML_SERVER_VERSION: 0.40.1 ZENML_SERVER_DATABASE: sqlite ZENML_SERVER_DEPLOYMENT_TYPE: other ZENML_CONFIG_DIR: /home/user/.config/zenml ZENML_LOCAL_STORE_DIR: /home/user/.config/zenml/local_stores ZENML_SERVER_URL: sqlite:////home/user/.config/zenml/local_stores/default_zen_store/zenml.db ZENML_ACTIVE_REPOSITORY_ROOT: /home/user/praca/zenml_playground/zenml_examples/bentoml_deployment PYTHON_VERSION: 3.8.16 ENVIRONMENT: native SYSTEM_INFO: {'os': 'linux', 'linux_distro': 'ubuntu', 'linux_distro_like': 'debian', 'linux_distro_version': '22.04'} ACTIVE_WORKSPACE: default ACTIVE_STACK: local_bentoml_stack ACTIVE_USER: default TELEMETRY_STATUS: enabled ANALYTICS_CLIENT_ID: 59f35758-eb34-4b01-9210-8c674c63b351 ANALYTICS_USER_ID: cbefbd23-e385-4873-9193-a27b3bf38a34 ANALYTICS_SERVER_ID: 59f35758-eb34-4b01-9210-8c674c63b351 INTEGRATIONS: ['airflow', 'bentoml', 'huggingface', 'kaniko', 'mlflow', 'pillow', 'pytorch', 'scipy', 'sklearn', 'tensorboard', 'tensorflow'] PACKAGES: {'certifi': '2023.5.7', 'regex': '2023.5.5', 'fsspec': '2023.5.0', 'tzdata': '2023.3', 'pytz': '2022.7.1', 'pytzdata': '2020.1', 'setuptools': '65.6.3', 'cryptography': '41.0.1', 'pip-requirements-parser': '32.0.1', 'pyzmq': '25.1.0', 'flatbuffers': '23.5.26', 'cattrs': '23.1.2', 'pip': '23.1.2', 'packaging': '23.1', 'aiofiles': '23.1.0', 'attrs': '23.1.0', 'gevent': '22.10.2', 'contextlib2': '21.6.0', 'argon2-cffi': '21.3.0', 'argon2-cffi-bindings': '21.2.0', 'isoduration': '20.11.0', 'clickclick': '20.10.2', 'gunicorn': '20.1.0', 'lit': '16.0.5', 'libclang': '16.0.0', 'rich': '12.6.0', 'nvidia-cublas-cu11': '11.10.3.66', 'nvidia-cuda-cupti-cu11': '11.7.101', 'nvidia-cuda-runtime-cu11': '11.7.99', 'nvidia-cuda-nvrtc-cu11': '11.7.99', 'nvidia-nvtx-cu11': '11.7.91', 'nvidia-cusparse-cu11': '11.7.4.91', 'pynvml': '11.5.0', 'nvidia-cusolver-cu11': '11.4.0.1', 'websockets': '11.0.3', 'pyarrow': '11.0.0', 'nvidia-cufft-cu11': '10.9.0.58', 'nvidia-curand-cu11': '10.2.10.91', 'pillow': '9.5.0', 'ipython': '8.12.2', 'nvidia-cudnn-cu11': '8.5.0.96', 'tenacity': '8.2.2', 'jupyter-client': '8.2.0', 'click': '8.1.3', 'python-slugify': '8.0.1', 'ipywidgets': '7.7.5', 'nbconvert': '7.4.0', 'overrides': '7.3.1', 'ipykernel': '6.23.1', 'pip-tools': '6.13.0', 'importlib-metadata': '6.6.0', 'notebook': '6.5.4', 'tornado': '6.3.2', 'docker': '6.1.3', 'multidict': '6.0.4', 'zope.interface': '6.0', 'bleach': '6.0.0', 'importlib-resources': '5.12.0', 'psutil': '5.9.5', 'nbformat': '5.9.0', 'traitlets': '5.9.0', 'pyyaml': '5.4.1', 'cachetools': '5.3.1', 'jupyter-core': '5.3.0', 'decorator': '5.1.1', 'smmap': '5.0.0', 'tqdm': '4.65.0', 'fonttools': '4.39.4', 'transformers': '4.29.2', 'jsonschema': '4.17.3', 'beautifulsoup4': '4.12.2', 'rsa': '4.9', 'pexpect': '4.8.0', 'colorlog': '4.8.0', 'typing-extensions': '4.6.3', 'zope.event': '4.6', 'flask-jwt-extended': '4.5.2', 'apache-airflow-providers-http': '4.4.1', 'flask-appbuilder': '4.1.4', 'gitdb': '4.0.10', 'async-timeout': '4.0.2', 'bcrypt': '4.0.1', 'cmake': '3.26.3', 'protobuf': '3.20.3', 'marshmallow': '3.19.0', 'zipp': '3.15.0', 'filelock': '3.12.0', 'orjson': '3.8.14', 'aiohttp': '3.8.4', 'h5py': '3.8.0', 'asgiref': '3.7.2', 'matplotlib': '3.7.1', 'apache-airflow-providers-docker': '3.7.0', 'anyio': '3.7.0', 'widgetsnbextension': '3.6.4', 'platformdirs': '3.5.1', 'markdown': '3.4.3', 'apache-airflow-providers-ftp': '3.4.1', 'apache-airflow-providers-sqlite': '3.4.1', 'idna': '3.4', 'apispec': '3.3.2', 'python-jose': '3.3.0', 'opt-einsum': '3.3.0', 'oauthlib': '3.2.2', 'apache-airflow-providers-imap': '3.2.1', 'xxhash': '3.2.0', 'gitpython': '3.1.31', 'jinja2': '3.1.2', 'configupdater': '3.1.1', 'charset-normalizer': '3.1.0', 'threadpoolctl': '3.1.0', 'networkx': '3.1', 'prompt-toolkit': '3.0.38', 'argcomplete': '3.0.8', 'python-daemon': '3.0.1', 'wtforms': '3.0.1', 'marshmallow-oneofschema': '3.0.1', 'tritonclient': '2.34.0', 'requests': '2.31.0', 'pycparser': '2.21', 'google-auth': '2.19.1', 'fastjsonschema': '2.17.1', 'pygments': '2.15.1', 'nvidia-nccl-cu11': '2.14.3', 'connexion': '2.14.2', 'babel': '2.12.1', 'datasets': '2.12.0', 'python-dateutil': '2.8.2', 'tensorflow': '2.8.0', 'keras': '2.8.0', 'tensorboard': '2.8.0', 'tf-estimator-nightly': '2.8.0.dev2021122109', 'pyjwt': '2.7.0', 'jupyter-server': '2.6.0', 'flask-sqlalchemy': '2.5.1', 'fs': '2.4.16', 'pyparsing': '2.4.7', 'apache-airflow': '2.4.3', 'soupsieve': '2.4.1', 'jsonpointer': '2.3', 'dnspython': '2.3.0', 'termcolor': '2.3.0', 'flask': '2.2.5', 'werkzeug': '2.2.3', 'mlflow': '2.2.2', 'asttokens': '2.2.1', 'cloudpickle': '2.2.1', 'markdown-it-py': '2.2.0', 'markupsafe': '2.1.2', 'pendulum': '2.1.2', 'itsdangerous': '2.1.2', 'python-json-logger': '2.0.7', 'mistune': '2.0.5', 'linkify-it-py': '2.0.2', 'greenlet': '2.0.2', 'geventhttpclient': '2.0.2', 'flask-caching': '2.0.2', 'kafka-python': '2.0.2', 'tomli': '2.0.1', 'torch': '2.0.1', 'triton': '2.0.0', 'flask-babel': '2.0.0', 'grpcio': '1.54.2', 'urllib3': '1.26.16', 'numpy': '1.24.3', 'six': '1.16.0', 'cffi': '1.15.1', 'wrapt': '1.15.0', 'opentelemetry-api': '1.14.0', 'opentelemetry-sdk': '1.14.0', 'webcolors': '1.13', 'sympy': '1.12', 'pydantic': '1.10.8', 'scipy': '1.10.1', 'backoff': '1.10.0', 'python-rapidjson': '1.10', 'yarl': '1.9.2', 'lazy-object-proxy': '1.9.0', 'send2trash': '1.8.2', 'tensorboard-plugin-wit': '1.8.1', 'alembic': '1.8.1', 'distro': '1.8.0', 'passlib': '1.7.4', 'debugpy': '1.6.7', 'astunparse': '1.6.3', 'blinker': '1.6.2', 'monotonic': '1.6', 'nest-asyncio': '1.5.6', 'pandas': '1.5.3', 'websocket-client': '1.5.2', 'marshmallow-enum': '1.5.1', 'fqdn': '1.5.1', 'apache-airflow-providers-common-sql': '1.5.1', 'pandocfilters': '1.5.0', 'sqlalchemy': '1.4.41', 'appdirs': '1.4.4', 'kiwisolver': '1.4.4', 'analytics-python': '1.4.post1', 'absl-py': '1.4.0', 'cron-descriptor': '1.4.0', 'croniter': '1.3.15', 'pkgutil-resolve-name': '1.3.10', 'frozenlist': '1.3.3', 'mlserver': '1.3.3', 'mlserver-mlflow': '1.3.3', 'setproctitle': '1.3.2', 'email-validator': '1.3.1', 'requests-oauthlib': '1.3.1', 'aiosignal': '1.3.1', 'sniffio': '1.3.0', 'text-unidecode': '1.3', 'mpmath': '1.3.0', 'deprecated': '1.2.14', 'querystring-parser': '1.2.4', 'mako': '1.2.4', 'arrow': '1.2.3', 'scikit-learn': '1.2.2', 'tinycss2': '1.2.1', 'executing': '1.2.0', 'uri-template': '1.2.0', 'joblib': '1.2.0', 'jupyterlab-widgets': '1.1.4', 'keras-preprocessing': '1.1.2', 'flask-wtf': '1.1.1', 'exceptiongroup': '1.1.1', 'deepmerge': '1.1.0', 'bentoml': '1.0.20', 'brotli': '1.0.9', 'contourpy': '1.0.7', 'pymysql': '1.0.3', 'uc-micro-py': '1.0.2', 'sqlalchemy-jsonfield': '1.0.1.post0', 'xformer': '1.0.1', 'mypy-extensions': '1.0.0', 'pluggy': '1.0.0', 'requests-toolbelt': '1.0.0', 'python-dotenv': '1.0.0', 'pyproject-hooks': '1.0.0', 'nbclassic': '1.0.0', 'fastapi': '0.75.2', 'multiprocess': '0.70.14', 'numba': '0.57.0', 'shap': '0.41.0', 'zenml': '0.40.1', 'llvmlite': '0.40.0', 'wheel': '0.38.4', 'sqlalchemy-utils': '0.38.3', 'opentelemetry-instrumentation': '0.35b0', 'opentelemetry-semantic-conventions': '0.35b0', 'opentelemetry-instrumentation-aiohttp-client': '0.35b0', 'opentelemetry-instrumentation-asgi': '0.35b0', 'opentelemetry-util-http': '0.35b0', 'marshmallow-sqlalchemy': '0.26.1', 'httpx': '0.24.1', 'tensorflow-io-gcs-filesystem': '0.24.0', 'tensorflow-io': '0.24.0', 'graphviz': '0.20.1', 'docutils': '0.20.1', 'pyrsistent': '0.19.3', 'httplib2': '0.19.1', 'accelerate': '0.19.0', 'watchfiles': '0.19.0', 'validators': '0.18.2', 'jedi': '0.18.2', 'ecdsa': '0.18.0', 'responses': '0.18.0', 'circus': '0.18.0', 'databricks-cli': '0.17.7', 'uvicorn': '0.17.6', 'httpcore': '0.17.2', 'starlette': '0.17.1', 'terminado': '0.17.1', 'prometheus-client': '0.17.0', 'uvloop': '0.17.0', 'starlette-exporter': '0.16.0', 'torchvision': '0.15.2', 'huggingface-hub': '0.15.1', 'python-nvd3': '0.15.0', 'unicodecsv': '0.14.1', 'h11': '0.14.0', 'tokenizers': '0.13.3', 'lockfile': '0.12.2', 'cycler': '0.11.0', 'python-terraform': '0.10.1', 'build': '0.10.0', 'commonmark': '0.9.1', 'typing-inspect': '0.9.0', 'tabulate': '0.9.0', 'pathspec': '0.9.0', 'cachelib': '0.9.0', 'parso': '0.8.3', 'watchgod': '0.8.2', 'aiokafka': '0.8.1', 'nbclient': '0.8.0', 'pickleshare': '0.7.5', 'schema': '0.7.5', 'defusedxml': '0.7.1', 'ptyprocess': '0.7.0', 'py-grpc-prometheus': '0.7.0', 'jupyter-events': '0.6.3', 'stack-data': '0.6.2', 'flask-login': '0.6.2', 'tensorboard-data-server': '0.6.1', 'click-option-group': '0.5.5', 'gast': '0.5.4', 'webencodings': '0.5.1', 'inflection': '0.5.1', 'flask-session': '0.5.0', 'httptools': '0.5.0', 'pyasn1': '0.5.0', 'google-auth-oauthlib': '0.4.6', 'colorama': '0.4.6', 'sqlparse': '0.4.4', 'jupyter-server-terminals': '0.4.4', 'entrypoints': '0.4', 'evaluate': '0.4.0', 'dill': '0.3.6', 'mdit-py-plugins': '0.3.5', 'pyasn1-modules': '0.3.0', 'click-params': '0.3.0', 'wcwidth': '0.2.6', 'notebook-shim': '0.2.3', 'jupyterlab-pygments': '0.2.2', 'pure-eval': '0.2.2', 'fastapi-utils': '0.2.1', 'prison': '0.2.1', 'google-pasta': '0.2.0', 'ipython-genutils': '0.2.0', 'backcall': '0.2.0', 'matplotlib-inline': '0.1.6', 'simple-di': '0.1.5', 'rfc3339-validator': '0.1.4', 'comm': '0.1.3', 'mdurl': '0.1.2', 'rfc3986-validator': '0.1.1', 'pyre-extensions': '0.0.29', 'xformers': '0.0.20', 'swagger-ui-bundle': '0.0.9', 'sqlmodel': '0.0.8', 'slicer': '0.0.7', 'python-multipart': '0.0.6', 'sqlalchemy2-stubs': '0.0.2a34'} The stack local_bentoml_stack contains components that require building Docker images. Older versions of ZenML always built these images locally, but since version 0.32.0 this behavior can be configured using the image_builder stack component. This stack will temporarily default to a local image builder that mirrors the previous behavior, but this will be removed in future versions of ZenML. Please add an image builder to this stack: zenml image-builder register ...
zenml stack update 1bfa7357-73fd-44a1-b0c2-a9feb8532ed8 -i
CURRENT STACK
Name: local_bentoml_stack ID: 1bfa7357-73fd-44a1-b0c2-a9feb8532ed8 Shared: No User: default / cbefbd23-e385-4873-9193-a27b3bf38a34 Workspace: default / d8f66bda-434c-4f5e-a9e5-6a820fa45a38
ORCHESTRATOR: default
Name: default ID: d4669c7f-a5c8-40e6-864c-d487b8e2edc8 Type: orchestrator Flavor: local Configuration: {} Shared: No User: default / cbefbd23-e385-4873-9193-a27b3bf38a34 Workspace: default / d8f66bda-434c-4f5e-a9e5-6a820fa45a38
ARTIFACT_STORE: default
Name: default ID: bea46b8e-cc73-43c3-b42e-af6aff195d42 Type: artifact_store Flavor: local Configuration: {'path': ''} Shared: No User: default / cbefbd23-e385-4873-9193-a27b3bf38a34 Workspace: default / d8f66bda-434c-4f5e-a9e5-6a820fa45a38
MODEL_DEPLOYER: bentoml_deployer
Name: bentoml_deployer ID: 806c2477-e505-480c-a4fc-e64ed626d194 Type: model_deployer Flavor: bentoml Configuration: {'service_path': ''} Shared: No User: default / cbefbd23-e385-4873-9193-a27b3bf38a34 Workspace: default / d8f66bda-434c-4f5e-a9e5-6a820fa45a38
What happened?
I've tried to deploy
transformers
pipeline to local BentoML deployment but I've got the error (error inRelevant log output
). Content of log file:The weird thing is that model is correctly deployed and I can see hosted API description and make an inference while
zenml model-deplyer models list
gives this:You can run this code by slightly modifying
bentoml_deployer
example. Below you can find modified script files.trainer.py
:bento_builder.py
:gpt_service.py
:Reproduction steps
pip install zenml==0.40.1 zenml[server]==0.40.1 torch transformers
bentoml_deployment
exampleTOKENIZERS_PARALLELISM=false python3 run.py --config deploy
Relevant log output
Code of Conduct