I downloaded the weights of a llama model from huggingface. It works for simple tasks, but I don't know how to use it with langgraph to create agents or how to bind tools. Here is how I downloaded it: model_id = "meta-llama/Llama-3.2-3B-Instruct" pipeline = transformers.pipeline( "text-generation", model=model_id, token="hf_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", model_kwargs={"dtype": torch.bfloat16}, device_map="auto", ) The code I try to use...
Originally asked by jottbe on Stack Exchange (stackoverflow) (CC BY-SA 4.0).