# Deploying custom TEXT\_EMBEDDING model fails with "model content changed" despite matching SHA-256

**URL:** <https://forum.opensearch.org/t/deploying-custom-text-embedding-model-fails-with-model-content-changed-despite-matching-sha-256/27156>\
**Category:** Machine Learning\
**Tags:** discuss, troubleshoot, configure\
**Created:** [September 26, 2025, 11:14am UTC](https://forum.opensearch.org/t/deploying-custom-text-embedding-model-fails-with-model-content-changed-despite-matching-sha-256/27156 "2025-09-26T11:14:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PetX](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@PetX](https://forum.opensearch.org/u/PetX)\
**Post date:** [September 26, 2025, 11:14am UTC](https://forum.opensearch.org/t/deploying-custom-text-embedding-model-fails-with-model-content-changed-despite-matching-sha-256/27156/1 "2025-09-26T11:14:57Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):

- OpenSearch Dashboards: **v3.1.0**
- Brownser : Chrome

**Describe the issue** :

When trying to deploy a custom model on OpenSearch Dashboard DevTools, using  
`_deploy` or `_load`, I have this issues

“error”: “”“{“6QRZMXpNSAS5HIQRKHag1A”:“model content changed”}”“”

I tried to use only one node, let OpenSearch chunk it, I check the hash value by download my model from the url to be sure the hash value don’t change. But the error is still there.

**Cluster ML settings**

```auto
{
  "plugins.ml_commons.allow_registering_model_via_url": true,
  "plugins.ml_commons.only_run_on_ml_node": false
}

```

**Describe the issue**  
I’m trying to deploy a custom `TEXT_EMBEDDING` model via DevTools (`_deploy` / `_load`). The deployment consistently fails with:

```sql
"error": """{"<node_id>":"model content changed"}"""

```

The SHA-256 of the model **served by the URL** matches the `model_content_hash_value` I register with, and the file size also matches.

**Steps to reproduce**

1. **Register the model**

```sql
POST _plugins/_ml/models/_register
{
  "name": "tenderbert-model",
  "version": "0.0.8",
  "model_group_id": "9zOWYZkBkPSFK9bhhcJ8",
  "description": "TenderBERT model for construction domain",
  "function_name": "TEXT_EMBEDDING",
  "model_format": "TORCH_SCRIPT",
  "model_content_size_in_bytes": 817806115,
  "model_content_hash_value": "f241c56af1e83a91fbb3ed4d386b969308ab7fa726ac5cd7bffd1eaec3d3f613",
  "url": "https://xxx/tenderbert_opensearch_19092025.zip",
  "model_config": {
    "model_type": "bert",
    "embedding_dimension": 768,
    "framework_type": "sentence_transformers",
    "all_config": "{ ... large HF config json ... }"
  }
}

```

1. **Deploy the model**

```sql
POST _plugins/_ml/models/<MODEL_ID>/_deploy

```

1. **Actual result**  
Deployment task ends in `FAILED` with:

```sql
"error": """{"<node_id>":"model content changed"}"""

```

**Expected result**  
Model deploys successfully.

**What I have tried**

- Verified the **exact bytes** from the model URL on a Linux host:

- Deployed with the default plan (no `node_ids`), and also tried targeting a single node. Same result.

- Re-registered under a **new `version`** (new `model_id`) and re-deployed. Same result.

- Toggled `plugins.ml_commons.only_run_on_ml_node` to `false` to allow data nodes (no eligible ML nodes). Same result.

- I cannot query system indices like `.plugins-ml-model-chunk` from DevTools due to proxy/method restrictions (e.g., `Method Not Allowed`), so I’m unable to confirm the chunk count/mapping from my side.

**Diagnostics I can provide if needed**

- Output of:

- Any other logs or endpoints you suggest.

Thanks in advance for any guidance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [November 25, 2025, 11:15am UTC](https://forum.opensearch.org/t/deploying-custom-text-embedding-model-fails-with-model-content-changed-despite-matching-sha-256/27156/2 "2025-11-25T11:15:50Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
