Open tcexeexe opened 10 months ago
Hello~ I want to get the embedding matrix and of the model , and the embeddings when l input a text or image. Can you tell me how to get it? l have tried "model.embed_tokens.weight" and “model.model.embed_tokens(input)” but it failed.
Hello~ I want to get the embedding matrix and of the model , and the embeddings when l input a text or image. Can you tell me how to get it? l have tried "model.embed_tokens.weight" and “model.model.embed_tokens(input)” but it failed.