# How can i use another language model in HFTransformersNLP?

**URL:** <https://forum.rasa.com/t/how-can-i-use-another-language-model-in-hftransformersnlp/37068>\
**Category:** Tutorials, Resources & Videos\
**Created:** [November 17, 2020, 4:52am UTC](https://forum.rasa.com/t/how-can-i-use-another-language-model-in-hftransformersnlp/37068 "2020-11-17T04:52:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![1412392](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/1412392/32/3008_2.png) [@1412392](https://forum.rasa.com/u/1412392)\
**Post date:** [November 17, 2020, 4:52am UTC](https://forum.rasa.com/t/how-can-i-use-another-language-model-in-hftransformersnlp/37068/1 "2020-11-17T04:52:29Z")

</div>

I want to use PhoBert model in pre-train . I found the model here, it’s community-uploaded models on HFTransformersNLP.

> **[vinai/phobert-base · Hugging Face](https://huggingface.co/vinai/phobert-base)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

But i don’t know how to use it in Rasa config for trainning. Please help me. Thank you

---

<div class="post-metadata">

**Author:** ![jason](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jason/32/10103_2.png) [@jason](https://forum.rasa.com/u/jason)\
**Post date:** [December 16, 2020, 7:26pm UTC](https://forum.rasa.com/t/how-can-i-use-another-language-model-in-hftransformersnlp/37068/2 "2020-12-16T19:26:23Z")

</div>

Hey @1412392

I definitely recommend this video about Diet Architecture.   
Link: [https://www.youtube.com/watch?v=oj5oPGDlep4&t=701s](https://www.youtube.com/watch?v=oj5oPGDlep4&t=701s)

In this video, you will find a clear explanation about tuning the DietClassifier and how you can implement a pre-trained Bert model.

### Example of config.yml with pre-trained Bert model + HFTransformers

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/2/24f47183f3b9a8b43f9ca0ea03c84febacf17e73.jpeg)

Hope this helps 🙂
