Open benik923 opened 8 months ago
me too
me too
im not quite sure but i think running this fixed it for me: git pull pip install -e .
What version of transformers
are you using?
In the latest version, the LLaVA already exists so you could (1) install the version specified in this repo or (2) change the name for registering the config.
explain more
This line:
File "C:\Users\Niklas\llava\llava\model\language_model\llava_llama.py", line 110, in <module>
AutoConfig.register("llava", LlavaConfig)
File "C:\Users\Niklas\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\transformers\models\auto\configuration_auto.py", line 828, in register
raise ValueError(f"'{key}' is already used by a Transformers config, pick another name.")
ValueError: 'llava' is already used by a Transformers config, pick another name.
tells you that you cannot register a config with the name 'llava' bc it's already used. This is the case when using transformers > 4.35
(I think where HF added LLaVA). So check version of transformers which shoulde be 4.31.. OR you can check the line where you register to AutoConfig.register("llava_org", LlavaConfig)
or something.
Best to install the right dependencies though to avoid other conflicts.
@HB-ai-cf can you explain more in detail how to do that?
The latest code base shall have this fixed. Thanks.
Transformer version is 4.37.1 How to fix (check the line where you register to AutoConfig.register("llava_org", LlavaConfig or other solution) No good issue to install the 4.3.1
have another idea
It is most likely because the transformer version is incompatible. Try the following:
pip list
This will list your packages in your environment.
Then use:
pip uninstall transformers
And then finally:
pip install transformers==4.31.0
Essentially the version shown for transformers in cog.yaml file in the llava repository. This worked for me
for me it was:
I am debugging llava locally on my computer and did a pip install -e . to a local folder then few weeks later , I did a pip install on another version of transformer. So, causes a conflict. so do another pip install -e . where the LLava folder is and the problem will go away.
my solution is change the model_type param in the customized model config before calling any "xxx.register(...)", then the conflict disappears
Describe the issue
Issue: Controller/Webserver wont start
ive tried everything chatgpt and bard suggested, no results. -pip uninstalling reinstalling llava (wich is just a part of it i guess since it took mere seconds) -pip install transformers --upgrade -renamed the whole thing which lead to other errors with wrongly named files
i am also very new to all of this so sorry if this is really stupid. thank you, -benik
Command:
Log: