Update README.md
Browse files35 unmodified lines3637383940414235 unmodified lines## Uses<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->### Direct Use35 unmodified lines36373839404142434445464748495051525354555657585960616263646535 unmodified lines## Uses### Use with transformersMake sure to update your transformers installation via `pip install --upgrade transformers`.```pythonimport torchfrom transformers import pipelinemodel_id = "meta-llama/Llama-3.2-3B-Instruct"pipe = pipeline("text-generation",model=model_id,torch_dtype=torch.bfloat16,device_map="auto",)messages = [{"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},{"role": "user", "content": "Who are you?"},]outputs = pipe(messages,max_new_tokens=256,)print(outputs[0]["generated_text"][-1])```### Direct Use
README.md+24-1