> ## 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: Save merged model to Hugging Face Hub.

# save\_model\_merged

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

> This is a method of the [**UploadVisionModel**](../classes/UploadVisionModel) class in the [**upload\_vision**](../modules/upload_vision) module.

Save merged model to Hugging Face Hub.

## 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/upload_vision.py#L38">
  `praisonai/upload_vision.py` at line 38
</Card>
