Langchain agent without openai reddit. from_pretrained(model_id) model = AutoModelForCausalLM.