Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Apr 12, 2024
1 parent 3352701 commit 974d5a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/doctests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Doctests
on:
push:
branches:
- run_doctest*
- fix_doctest_based_on_refactor_doctest
repository_dispatch:
schedule:
- cron: "17 2 * * *"
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/models/fuyu/modeling_fuyu.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def forward(
>>> inputs = processor(text=prompt, images=image, return_tensors="pt")
>>> outputs = model(**inputs)
>>> generated_ids = model.generate(**model_inputs, max_new_tokens=7)
>>> generated_ids = model.generate(**inputs, max_new_tokens=7)
>>> generation_text = processor.batch_decode(generated_ids, skip_special_tokens=True)
>>> print(generation_text)
'A bus parked on the side of a road.'
Expand Down
4 changes: 4 additions & 0 deletions utils/split_doctest_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@
end = start + num_jobs_per_splits + (1 if idx < num_jobs % args.num_splits else 0)
file_directory_splits.append(sorted_file_dirs[start:end])

file_directory_splits = [
["src/transformers/models/fuyu"],
]

if args.only_return_keys:
print(file_directory_splits)
else:
Expand Down

0 comments on commit 974d5a5

Please sign in to comment.