h-zhao1997 / cobra

Cobra: Extending Mamba to Multi-modal Large Language Model for Efficient Inference
MIT License
259 stars 8 forks source link

No such file or directory: '.hf_token' #6

Closed WenjunHuang94 closed 7 months ago

WenjunHuang94 commented 7 months ago

No such file or directory: '.hf_token'. How should I solve it? image

image

h-zhao1997 commented 7 months ago

Create a file named .hf_token and simply copy your Huggingface token into it.

WenjunHuang94 commented 7 months ago

Is it downloading this file and naming it. hf_token? image

The error message after execution is as follows: image

WenjunHuang94 commented 7 months ago

If it's convenient, may I add your WeChat account? I am very interested in your research and would like to seek your advice and exchange ideas. My WeChat: q785941939

xingyifei2016 commented 7 months ago

I am also experiencing this problem. What is the huggingface token you are referring to?

h-zhao1997 commented 7 months ago

@huangwenjunlovedy @xingyifei2016 Access token of your huggingface account

WenjunHuang94 commented 7 months ago

@h-zhao1997 我配置后,发现会提示MambaConfig有问题。 5e5d6dfa376f9f3698795272db3c374

上面提示的MambaConfig不存在norm_epsilon属性,我调试跟了下,发现这里获取到的MambaConfig确实不满足后续程序的要求。请问是什么原因呢?我在base_llm.py +132行处,hf_pub_path值和hf_token值如下。难道是这两个值中的hf_token值不对导致的差异吗? ae891b4e68b40ba1c7f4809e7a79cac image

h-zhao1997 commented 7 months ago

@huangwenjunlovedy 应该在你的profile-access tokens中找到或新建一个token,token是以hf_开头的一串字符