OSError: tiiuae/falcon-7b does not appear to have a file named configuration_RW.py. Checkout 'https://huggingface.co/tiiuae/falcon-7b/main' for available files.

#3
by ravikiran3690 - opened

tiiuae/falcon-7b Has changed the file configuration_RW.py to configuration_falcon.py in their newest commit and that's causing the error.

The Falcon model has been updated. Change the config.json to the below format. That worked for me.

{
"_name_or_path": "tiiuae/falcon-7b",
"alibi": false,
"apply_residual_connection_post_layernorm": false,
"architectures": [
"FalconForCausalLM"
],
"attention_dropout": 0.0,
"auto_map": {
"AutoConfig": "tiiuae/falcon-7b--configuration_falcon.FalconConfig",
"AutoModel": "tiiuae/falcon-7b--modeling_falcon.FalconModel",
"AutoModelForCausalLM": "tiiuae/falcon-7b--modeling_falcon.FalconForCausalLM",
"AutoModelForQuestionAnswering": "tiiuae/falcon-7b--modeling_falcon.FalconForQuestionAnswering",
"AutoModelForSequenceClassification": "tiiuae/falcon-7b--modeling_falcon.FalconForSequenceClassification",
"AutoModelForTokenClassification": "tiiuae/falcon-7b--modeling_falcon.FalonForTokenClassification"
},
"bias": false,
"bos_token_id": 11,
"eos_token_id": 11,
"hidden_dropout": 0.0,
"hidden_size": 4544,
"initializer_range": 0.02,
"layer_norm_epsilon": 1e-05,
"model_type": "RefinedWebModel",
"multi_query": true,
"n_head": 71,
"n_layer": 32,
"parallel_attn": true,
"torch_dtype": "bfloat16",
"transformers_version": "4.30.0.dev0",
"use_cache": true,
"vocab_size": 65024
}

ravikiran3690 changed discussion status to closed
ravikiran3690 changed discussion status to open
ravikiran3690 changed discussion status to closed

Sign up or log in to comment