apple / coremltools

Core ML tools contain supporting tools for Core ML model conversion, editing, and validation.
https://coremltools.readme.io
BSD 3-Clause "New" or "Revised" License
4.33k stars 627 forks source link

Meet error when convert lama with flexable input shape!!! #2133

Open wudijimao opened 7 months ago

wudijimao commented 7 months ago

🐞Describing the bug

Stack Trace

To Reproduce

System environment (please complete the following information):

Additional context

pip list Package Version


accelerate 0.24.1 aiofiles 23.2.1 altair 5.2.0 annotated-types 0.6.0 antlr4-python3-runtime 4.9.3 anyio 3.7.1 attrs 23.1.0 cattrs 23.2.3 certifi 2023.11.17 charset-normalizer 3.3.2 click 7.1.2 colorama 0.4.6 contourpy 1.2.0 coremltools 7.1 cycler 0.12.1 diffusers 0.14.0 exceptiongroup 1.2.0 fastapi 0.104.1 ffmpy 0.3.1 filelock 3.13.1 Flask 1.1.4 Flask-Cors 4.0.0 flaskwebgui 0.3.5 fonttools 4.45.1 fsspec 2023.10.0 gradio 4.7.1 gradio_client 0.7.0 h11 0.14.0 httpcore 1.0.2 httpx 0.25.2 huggingface-hub 0.19.4 idna 3.6 imageio 2.33.0 importlib-metadata 6.8.0 importlib-resources 6.1.1 iniconfig 2.0.0 itsdangerous 1.1.0 Jinja2 2.11.3 jsonschema 4.20.0 jsonschema-specifications 2023.11.1 kiwisolver 1.4.5 lama-cleaner 1.1.1 loguru 0.7.2 markdown-it-py 3.0.0 MarkupSafe 2.0.1 matplotlib 3.8.2 mdurl 0.1.2 mpmath 1.3.0 networkx 3.2.1 numpy 1.26.2 omegaconf 2.3.0 opencv-python 4.8.1.78 orjson 3.9.10 packaging 23.2 pandas 2.1.3 piexif 1.1.3 Pillow 10.1.0 pip 23.3.1 pluggy 1.3.0 protobuf 3.20.3 psutil 5.9.6 pyaml 23.9.7 pydantic 2.5.2 pydantic_core 2.14.5 pydub 0.25.1 Pygments 2.17.2 pyparsing 3.1.1 pytest 7.4.3 python-dateutil 2.8.2 python-multipart 0.0.6 pytz 2023.3.post1 PyWavelets 1.5.0 PyYAML 6.0.1 referencing 0.31.1 regex 2023.10.3 requests 2.31.0 rich 13.7.0 rpds-py 0.13.2 safetensors 0.4.1 scikit-image 0.19.3 scipy 1.11.4 semantic-version 2.10.0 setuptools 68.0.0 shellingham 1.5.4 six 1.16.0 sniffio 1.3.0 starlette 0.27.0 sympy 1.12 tifffile 2023.9.26 tokenizers 0.13.3 tomli 2.0.1 tomlkit 0.12.0 toolz 0.12.0 torch 2.0.1 tqdm 4.66.1 transformers 4.27.4 typer 0.9.0 typing_extensions 4.8.0 tzdata 2023.3 urllib3 2.1.0 uvicorn 0.24.0.post1 websockets 11.0.3 Werkzeug 1.0.1 wheel 0.41.2 whichcraft 0.6.1 yacs 0.1.8 zipp 3.17.0

wudijimao commented 7 months ago

any one?

jakesabathia2 commented 7 months ago

This look like a bug in the complex op type inference.