Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with downloading / using the model #7

Open
amith-ananthram opened this issue Feb 2, 2024 · 1 comment
Open

Issues with downloading / using the model #7

amith-ananthram opened this issue Feb 2, 2024 · 1 comment

Comments

@amith-ananthram
Copy link

Hey there,

Thank you so much for putting this together. I'm running into some issues with both downloading the model from pan.baidu and using it via Huggingface's transformer API.

On Huggingface (transformers version 4.37.2):

>>> model = AutoModelForCausalLM.from_pretrained("LinkSoul/Chinese-LLaVA-Baichuan")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/amith/miniconda3/envs/viz_features/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 569, in from_pretrained
    raise ValueError(
ValueError: Unrecognized configuration class <class 'transformers.models.llava.configuration_llava.LlavaConfig'> for this kind of AutoModel: AutoModelForCausalLM.
Model type should be one of BartConfig, BertConfig, BertGenerationConfig, BigBirdConfig, BigBirdPegasusConfig, BioGptConfig, BlenderbotConfig, BlenderbotSmallConfig, BloomConfig, CamembertConfig, LlamaConfig, CodeGenConfig, CpmAntConfig, CTRLConfig, Data2VecTextConfig, ElectraConfig, ErnieConfig, FalconConfig, FuyuConfig, GitConfig, GPT2Config, GPT2Config, GPTBigCodeConfig, GPTNeoConfig, GPTNeoXConfig, GPTNeoXJapaneseConfig, GPTJConfig, LlamaConfig, MarianConfig, MBartConfig, MegaConfig, MegatronBertConfig, MistralConfig, MixtralConfig, MptConfig, MusicgenConfig, MvpConfig, OpenLlamaConfig, OpenAIGPTConfig, OPTConfig, PegasusConfig, PersimmonConfig, PhiConfig, PLBartConfig, ProphetNetConfig, QDQBertConfig, Qwen2Config, ReformerConfig, RemBertConfig, RobertaConfig, RobertaPreLayerNormConfig, RoCBertConfig, RoFormerConfig, RwkvConfig, Speech2Text2Config, TransfoXLConfig, TrOCRConfig, WhisperConfig, XGLMConfig, XLMConfig, XLMProphetNetConfig, XLMRobertaConfig, XLMRobertaXLConfig, XLNetConfig, XmodConfig.
>>> quit()

I'm happy to use your repo directly to use the model but for some reason the Baidu download is not working -- I'm unable to install the Client required to do the download. Would it be possible to share a different download link for your two models?

Thank you!

@amith-ananthram
Copy link
Author

Update: I was able to get your codebase and published model weights working -- still no luck with HuggingFace so leaving this issue open. Feel free to close though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant