Hugging face models as local component

Hello :slight_smile:

how can i use hugging face models as local componets? should i download models and reference?

Hello!

Have tried to have a folder at the same path as your rasa project and reference via relative path?

e.g. ./my_local_model and rasa/LaBSE

pipeline:
  - name: LanguageModelFeaturizer
    model_name: "bert"
    model_weights: "rasa/LaBSE"
    cache_dir: "my_local_model"

thanks for your answer. i used this :

  • name: LanguageModelFeaturizer

    model_name: “bert”

    model_weights: “rasa/LaBSE”

    cache_dir: “path/bert-base-parsbert-uncased”

but when i train rasa, it starts downloading the model and after that it dose nothing. i see no error. it just stops on downloading.

Can you confirm, do you want use “rasa/LaBSE” model and store it at your local path or do you want to use your preloaded model which placed somewhere in your project folder?

i want to use my preloaded model which placed somewhere in my project folder