> For the complete documentation index, see [llms.txt](https://docs.candy-smith.com/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.candy-smith.com/main/word-connect-game-toolkit/train-new-model-or-update.md).

# Train new model or update

* Follow the link <https://colab.research.google.com/drive/199zNcB3FPfnrD6E7OiwmwCcf27jMnY1b?usp=sharing>

{% hint style="success" %}
This Jupiter Notebook will help to create new ONNX model
{% endhint %}

* Drag your  custom\_words.txt file and bin file if you going to update current mode (i.e. /model/bin/en\_word\_model.bin) to the content of the notebook
* Warning: make sure your custom\_words.txt is appropriate and free from offensive or sensitive language.

<div align="center"><figure><img src="/files/mK3Ps9SlJwhyePlPB47T" alt="" width="171"><figcaption></figcaption></figure></div>

<figure><img src="/files/WZqYW5Un8hGJ1LbBSbzd" alt=""><figcaption></figcaption></figure>

* Replace the language code in case you are training another language model

<figure><img src="/files/SafEd5Gi9iISopZFVAI2" alt="" width="375"><figcaption></figcaption></figure>

* Click "Run all"

<figure><img src="/files/x5QUGJ4Rv91b3U1uyuTK" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/Kv3CkgrclcFBsG6mbjyR" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="success" %}
⚠️ Note: The warning “This notebook was not authored by Google” is automatically shown for all non-Google-created notebooks.

✅ This notebook is safe and was authored by Candy Smith (<candy.smith.info@gmail.com>).

It does not access your personal data unless you explicitly allow it. Please review the code as needed.
{% endhint %}

* Run anyway

* After some time, you will be prompted to restart the session<br>

  <figure><img src="/files/hudvk3t9DNABkHOYuBVH" alt="" width="563"><figcaption></figcaption></figure>

* After restart press "Run all" again

* After some time, you will see a new ONNX model file.<br>

  <figure><img src="/files/lneQjcpIjlRJyGBJoG6w" alt="" width="363"><figcaption></figcaption></figure>

* Download it by right click<br>

  <figure><img src="/files/gCqN6M8LXUOIiqZkqUoX" alt="" width="375"><figcaption></figcaption></figure>

* Replace your old model in the /mode/ folder

* Optionally you can keep the model in separaate file and assign it in the Language confi<br>

  <figure><img src="/files/PzAH5My6MDvR1FF0xPuq" alt=""><figcaption></figcaption></figure>

### ✅ Success! You trained your model
