# CUDA out of memory error while predicting (evaluation)

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcuda-out-of-memory-error-while-predicting-evaluation%2F47014%3E%5C
**Category:** 🤗Transformers\
**Created:** [July 16, 2023, 8:34pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcuda-out-of-memory-error-while-predicting-evaluation%2F47014 "2023-07-16T20:34:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![MoritzLaurer](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/moritzlaurer/32/18932_2.png) [@MoritzLaurer](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FMoritzLaurer)%5C
**Post date:** [March 22, 2024, 9:14am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcuda-out-of-memory-error-while-predicting-evaluation%2F47014%2F2 "2024-03-22T09:14:21Z")

</div>

had the same problem, found the solution here: [CUDA out of memory when using Trainer with compute\_metrics - #13 by morenolq](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcuda-out-of-memory-when-using-trainer-with-compute-metrics%2F2941%2F13)

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcuda-out-of-memory-error-while-predicting-evaluation%2F47014)._
