[Python] Tensorflow runs out of range during fitting: Local rendezvous is aborting with...

Discussão em 'Python' iniciado por Stack, Abril 3, 2025.

  1. Stack

    Stack Membro Participativo

    I have a dataset containing semantic vectors of length 384. I group them to windows each containing a 100. I batch them to batch sizes of 32. However, I get an error when fitting the model. I feel like it might be because it creates 48 32-sized batches out of 1515 windows making the last batch incomplete given that 1515/32=47,34375, but I don't know whether that should really cause an issue - I never had the problem in the past.

    These are my fit parameters:

    model.fit(training_data, epochs=50, validation_data=validation_data)


    so explicitly, I don't set the steps which should mean it's none that should result in tensorflow running through the whole training_data on each epoch.

    Is the fix for this to somehow drop the incomplete batch or to fill it up with values somehow? If so, could you provide an example how to drop it?

    Full error message


    2025-04-03 12:20:03 [INFO]: Training (151508, 2)
    2025-04-03 12:20:03 [INFO]: Validation (26514, 2)
    2025-04-03 12:20:03 [INFO]: Test (22728, 2)
    I0000 00:00:1743675604.435011 6880 cuda_executor.cc:1015] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355
    2025-04-03 12:20:04.435109: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2343] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
    Skipping registering GPU devices...
    2025-04-03 12:20:04.838231: I tensorflow/core/framework/local_rendezvous.cc:404] Local rendezvous is aborting with status: OUT_OF_RANGE: End of sequence
    Number of windows created: 1515
    Input shape: (32, 100, 384)
    Label shape: (32, 100, 384)
    2025-04-03 12:20:07.074530: I tensorflow/core/framework/local_rendezvous.cc:404] Local rendezvous is aborting with status: OUT_OF_RANGE: End of sequence
    Counted training batches: 48
    Epoch 1/50
    2025-04-03 12:20:09.798596: E tensorflow/core/util/util.cc:131] oneDNN supports DT_INT32 only on platforms with AVX-512. Falling back to the default Eigen-based implementation if present.
    47/Unknown 5s 48ms/step - loss: 0.00172025-04-03 12:20:12.186355: I tensorflow/core/framework/local_rendezvous.cc:404] Local rendezvous is aborting with status: OUT_OF_RANGE: End of sequence
    [[{{node IteratorGetNext}}]]
    /home/xaver/Documents/Repos/logAnomalyDetection/venv/lib/python3.12/site-packages/keras/src/trainers/epoch_iterator.py:151: UserWarning: Your input ran out of data; interrupting training. Make sure that your dataset or generator can generate at least `steps_per_epoch * epochs` batches. You may need to use the `.repeat()` function when building your dataset.
    self._interrupted_warning()

    Additional Info


    My tensorflow version is 2.17.0.

    Continue reading...

Compartilhe esta Página