Repository: huggingface/transformers
Pull request: Fix license text, duplicate assignment, and typo in constant names

# What does this PR do?

This PR fixes several minor but important issues across the codebase:

1. **License text completion** in Italian documentation
2. **Code syntax error** in Perceiver model conversion script  
3. **Typo in metadata constant** name

## Changes Made

### 📄 Documentation Fix
- **File**: `docs/source/it/perf_train_special.md`
- **Issue**: Incomplete Apache License 2.0 text (missing ending)
- **Fix**: Added the missing license text ending

### 🐍 Code Syntax Fix  
- **File**: `src/transformers/models/perceiver/convert_perceiver_haiku_to_pytorch.py`
- **Issue**: Duplicate assignment `name = name = name.replace(...)`
- **Fix**: Removed duplicate assignment to `name = name.replace(...)`

### 🔧 Metadata Constant Fix
- **File**: `utils/update_metadata.py`
- **Issue**: Typo in constant name `"MODEL_FOR_FOR_VISION_2_SEQ_MAPPING_NAMES"` (duplicate "FOR")
- **Fix**: Corrected to `"MODEL_FOR_VISION_2_SEQ_MAPPING_NAMES"`

## Testing

- All changes are minor text/syntax fixes
- No functional changes to model behavior
- Verified syntax correctness in Python files

## Before submitting
- [x] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [x] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#create-a-pull-request), Pull Request section?
- [x] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link to it if that's the case. (N/A - minor fixes)
- [x] Did you make sure to update the documentation with your changes? (Documentation fix included)
- [x] Did you write any new necessary tests? (N/A - no functional changes)

## Who can review?

@stevhliu (Documentation fixes) or any community member - these are minor text/syntax corrections.

Changed files:
filename: docs/source/it/perf_train_special.md
patch: @@ -7,6 +7,7 @@ http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
+specific language governing permissions and limitations under the License.
 
 ⚠️ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be
 rendered properly in your Markdown viewer.

filename: src/transformers/models/perceiver/convert_perceiver_haiku_to_pytorch.py
patch: @@ -148,7 +148,7 @@ def rename_keys(state_dict, architecture):
         )
         name = name.replace("classification_decoder/~/basic_decoder/output/b", "decoder.decoder.final_layer.bias")
         name = name.replace("classification_decoder/~/basic_decoder/output/w", "decoder.decoder.final_layer.weight")
-        name = name = name.replace("classification_decoder/~/basic_decoder/~/", "decoder.decoder.")
+        name = name.replace("classification_decoder/~/basic_decoder/~/", "decoder.decoder.")
         name = name.replace("basic_decoder/cross_attention/", "decoder.decoding_cross_attention.")
         name = name.replace("basic_decoder/~/", "decoder.")
 

filename: utils/update_metadata.py
patch: @@ -109,7 +109,7 @@
         "MODEL_FOR_VISUAL_QUESTION_ANSWERING_MAPPING_NAMES",
         "AutoModelForVisualQuestionAnswering",
     ),
-    ("image-to-text", "MODEL_FOR_FOR_VISION_2_SEQ_MAPPING_NAMES", "AutoModelForVision2Seq"),
+    ("image-to-text", "MODEL_FOR_VISION_2_SEQ_MAPPING_NAMES", "AutoModelForVision2Seq"),
     (
         "zero-shot-image-classification",
         "MODEL_FOR_ZERO_SHOT_IMAGE_CLASSIFICATION_MAPPING_NAMES",