Error in integrating BERT and Rasa

Hi how can I solve this problem? my error: rasa.engine.exceptions.GraphComponentException: Error initializing graph component for node run_LanguageModelFeaturizer1. my config file:

pipeline:
- name: WhitespaceTokenizer
  model_weights: "dccuchile/bert-base-spanish-wwm-cased"
  model_name: "bert"
  cache_dir: null
- name: LanguageModelFeaturizer
- name: RegexFeaturizer
- name: DIETClassifier

To resolve the “GraphComponentException” for the “LanguageModelFeaturizer” component in Rasa NLU, ensure your component configuration is correct, model weights are accessible, specify a cache directory, check dependencies, and enable logging for debugging. If issues persist, consult Rasa NLU documentation or support.

The model_weights, model_name & cache_dir need to be under the LanguageModelFeaturizer. This is shown in the docs here.

pipeline:
- name: WhitespaceTokenizer
- name: LanguageModelFeaturizer
  model_weights: "dccuchile/bert-base-spanish-wwm-cased"
  model_name: "bert"
  cache_dir: null
- name: RegexFeaturizer
- name: DIETClassifier