> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Save Model Merged • AI Agents Framework

> save_model_merged: API reference for TrainModel.save_model_merged

# save\_model\_merged

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**TrainModel**](../classes/TrainModel) class in the [**train**](../modules/train) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def save_model_merged() -> Any
```

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Uses

* `exists`
* `shutil.rmtree`
* `push_to_hub_merged`
* `os.getenv`

## Used By

* [`TrainModel.run`](../functions/TrainModel-run)
* [`TrainVisionModel.run`](../functions/TrainVisionModel-run)
* [`UploadVisionModel.upload`](../functions/UploadVisionModel-upload)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/train.py#L294">
  `praisonai/train.py` at line 294
</Card>
