Any chance you could include the value head weights?

#1
by niklasstoehr - opened

Screenshot 2024-10-31 at 17.38.29.png

LLaMA Factory org
from trl import AutoModelForCausalLMWithValueHead

AutoModelForCausalLMWithValueHead.from_pretrained()

Thanks so much for your reply @hiyouga —ah sorry, had imported AutoModelForCausalLMWithValueHead earlier... still getting the same error.
Screenshot 2024-11-01 at 11.45.36.png

LLaMA Factory org
This comment has been hidden

Thanks @hiyouga , this is very helpful, would you mind providing a complete code snippet on how to download your model including value head?

LLaMA Factory org

@niklasstoehr I have tried in my own computer, just using the following code to load the model. You can safely ignore the warnings

from trl import AutoModelForCausalLMWithValueHead

AutoModelForCausalLMWithValueHead.from_pretrained("llamafactory/tiny-random-Llama-3-valuehead")

Sign up or log in to comment