Closed lucasjinreal closed 1 year ago
Is there a convenient way to do this?
cfg = AutoConfig() llm = AutoModelForCausalLM.from_pretrained(m_f, gpu_layers=150)
Hi, you can pass it to from_pretrained():
from_pretrained()
llm = AutoModelForCausalLM.from_pretrained(..., max_new_tokens=256)
or pass it to llm():
llm()
llm(prompt, max_new_tokens=256)
Is there a convenient way to do this?
cfg = AutoConfig() llm = AutoModelForCausalLM.from_pretrained(m_f, gpu_layers=150)