Closed frankdarkluo closed 7 months ago
Thanks for the reply! But I am not asking about the drawing. I am curious how do you get the probability distribution from the middle (not output) layers? Thanks.
Just insert some code to the transformers package (modeling_llama.py
and generation/utils.py
) and get the predictions along the decoding steps. It makes the code ugly but it works. I didn't use any tools for that.
Hi @frankdarkluo
I simply use matplotlib to make a table for figure 2!