Cette page n'est pas encore disponible dans votre langue. Nous nous efforçons d'ajouter d'autres langues. Nous vous remercions de votre compréhension.

On this page
Help Center/ ModelArts/ Troubleshooting/ Training Jobs/ Service Code Issues/ Training Job Failed Because the Maximum Recursion Depth Is Exceeded

Training Job Failed Because the Maximum Recursion Depth Is Exceeded

Updated on 2024-06-11 GMT+08:00

Symptom

An error occurs for a ModelArts training job.

RuntimeError: maximum recursion depth exceeded in __instancecheck__

Possible Causes

The training failed because the recursion depth exceeded the default recursion depth of Python.

Solution

If the maximum recursion depth is exceeded, increase the recursion depth in the boot file as follows:

import sys
sys.setrecursionlimit(1000000)
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback