-
I did try to search for similar questions but couldn't find the solution. (Sorry if there is a solution) Basically the code needs
I tried following approach according to #8155 a = Analysis(
....
module_collection_mode={
"optimum": "pyz+py",
"auto-gptq": "pyz+py",
...
},
) but no luck. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
from PyInstaller.utils.hooks import copy_metadata
datas = []
datas += copy_metadata('optimum')
datas += copy_metadata('auto-gptq')
...
a = Analysis(
...,
datas=datas,
...
) You can also try using the git
|
Beta Was this translation helpful? Give feedback.
transformers
checks for its dependencies by querying their metadata, so you need to ensure that metadata is collected. E.g.,--copy-metadata optimum --copy-metadata auto-gptq
on command line, orYou can also try using the git
HEAD
ofpyinstaller-hooks-contrib
, which has a hook fortransformers
(and should collect the metadata in question out-of-the-box):