For Llama3, use the same example code, minus tokenizer, as Llama2. Please see the Llama2 README page for details.