HKUDS / UrbanGPT

[KDD'2024] "UrbanGPT: Spatio-Temporal Large Language Models"
https://urban-gpt.github.io
Apache License 2.0
266 stars 34 forks source link

AttributeError: 'STLlamaConfig' object has no attribute 'lin_hidden_size' #11

Closed agoodge closed 1 month ago

agoodge commented 3 months ago

When I execute run_urbangpt.py with --model-name facebook/opt350m, I get the following error:

AttributeError: 'STLlamaConfig' object has no attribute 'lin_hidden_size'

All of the other arguments are left unchanged from the .sh file.

Can you tell me what is wrong? Thanks

zxc2012 commented 3 months ago

I think the author mentioned the updated config file image What I did was copying the content and pasting into my own huggingface "models--lmsys--vicuna-7b-v1.5-16k" folder

LZH-YS1998 commented 3 months ago

If you have already downloaded all the files of the urbangpt model, can you run urbangpt_eval.sh normally? (sh urbangpt_eval.sh)