> 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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.candy-smith.com/main/word-connect-game-toolkit/train-new-model-or-update.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
