# Save mapping to file (Deprecated)

After a mapping was [created or modified ](/user-interface/project/network/network-mapping/create-a-mapping-deprecated.md)and [validated](/user-interface/project/network/network-mapping/validate-mapping.md) in the Network tab, it is highly recommended to save it into file.&#x20;

<figure><img src="/files/CjyTylPzDXAFs1qIViYI" alt=""><figcaption><p>The code integration view from within the Network tab</p></figcaption></figure>

In order to update a mapping, click the "UPDATE" button within the [code integration](/user-interface/project/network/code-integration.md) view. Clicking it would create a new version of your code integration script, that includes a new  [leap\_mapping.yaml](broken://pages/3rU3R1SpB0X70g2DUoJ3).

<figure><img src="/files/waigjmfzaL5I2ev5MHVu" alt=""><figcaption><p>The code integration view expanded to show the created leap_mapping.yaml file</p></figcaption></figure>

This file would ensure this mapping could be applied to new models uploaded to the platform of the same architecture.\
\
In order to ensure future [CLI code uploads](/tensorleap-integration/uploading-with-cli/cli-assets-upload.md) would also include this leap\_mapping.yaml is it highly recommended to download this file to the local environment.

#### Downloading the leap\_mapping.yaml

* The easiest way to download the mapping file is by going to the [network wizard](/user-interface/project/network/network-mapping/create-a-mapping-deprecated/network-wizard.md) and reviewing it. Once assets are visualized, the option to "Download mapping file" should be available from the dropdown menu.

<figure><img src="/files/KQ2YOMrHuTlxNQd3OtCx" alt=""><figcaption><p>The option to download a mapping file from the Network Wizard</p></figcaption></figure>

* Using the CLI `leap code pull`  option would pull the current code into your local repository (inside a folder with the name of your code integration script). You can then locate the leap\_mapping.yaml file and copy it into the root of your project
* Copy Pasting the entire file from the extended code integration view is also possible if the other two options are not available.

Once this file is downloaded placing it within the root folder of your [integration script ](/tensorleap-integration/writing-integration-code.md)where the [leap.yaml](/tensorleap-integration/leap.yaml.md) is located would ensure any future upload of a model would have this mapping automatically applied to it.

{% hint style="warning" %}
Note that in case you change architecture or upgrade your server, you might need to create this mapping file again. In that case, uploading [models](/tensorleap-integration/uploading-with-cli/cli-assets-upload.md#uploading-a-model) would result in errors. If that happens, we recommend deleting or renaming the mapping file so it would not be [automatically applied](/user-interface/project/network/network-mapping/applying-a-mapping-deprecated.md) when uploading a new model.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://docs.tensorleap.ai/user-interface/project/network/network-mapping/save-mapping-to-file-deprecated.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
