diff --git a/src/transformers/models/persimmon/modeling_persimmon.py b/src/transformers/models/persimmon/modeling_persimmon.py index 654660e4fa9f00..e65141f1263f98 100644 --- a/src/transformers/models/persimmon/modeling_persimmon.py +++ b/src/transformers/models/persimmon/modeling_persimmon.py @@ -790,11 +790,11 @@ def forward( ```python >>> from transformers import AutoTokenizer, PersimmonForCausalLM - >>> model = PersimmonForCausalLM.from_pretrained("ArthurZ/persimmon-8b-base").cuda() + >>> model = PersimmonForCausalLM.from_pretrained("ArthurZ/persimmon-8b-base") >>> tokenizer = AutoTokenizer.from_pretrained("ArthurZ/persimmon-8b-base") >>> prompt = "human: Hey, what should I eat for dinner?" - >>> inputs = tokenizer(prompt, return_tensors="pt").cuda() + >>> inputs = tokenizer(prompt, return_tensors="pt") >>> # Generate >>> generate_ids = model.generate(inputs.input_ids, max_length=30) diff --git a/utils/not_doctested.txt b/utils/not_doctested.txt index 8254f12084dd79..da8ab9981c4e9f 100644 --- a/utils/not_doctested.txt +++ b/utils/not_doctested.txt @@ -710,6 +710,7 @@ src/transformers/models/pegasus_x/modeling_pegasus_x.py src/transformers/models/perceiver/configuration_perceiver.py src/transformers/models/perceiver/convert_perceiver_haiku_to_pytorch.py src/transformers/models/persimmon/convert_persimmon_weights_to_hf.py +src/transformers/models/persimmon/modeling_persimmon.py src/transformers/models/pix2struct/configuration_pix2struct.py src/transformers/models/pix2struct/convert_pix2struct_original_pytorch_to_hf.py src/transformers/models/pix2struct/image_processing_pix2struct.py