Closed EnterpriseBCMe closed 9 months ago
Hello, a possible reason could be that you haven't set
model.eval()
If the model is in training mode, the use_cache parameter will not work (as mentioned in line 573 of cnet.py, which is now commented out).
If the problem persists, could you provide the complete code that is causing the error?
Hey, @Liyuhui-12 sorry for the late response, how could I forget the eval mode XD. It's exactly the reason and your explaination quite help me a lot to understand the code.
Hi,I encountered some problem when benchmarking throughputs. Here are the tracebacks
Maybe there is some bug within the forward? I've noticed that forward only return 1 value, hidden_states