Skip to content

Commit

Permalink
style fixup, fix doc builder
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Jan 13, 2025
1 parent dd6816d commit bf2bd24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/source/en/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,8 @@
title: Granite
- local: model_doc/granitemoe
title: GraniteMoe
- local: model_doc/helium
title: Helium
- local: model_doc/herbert
title: HerBERT
- local: model_doc/ibert
Expand Down
6 changes: 3 additions & 3 deletions tests/models/helium/test_modeling_helium.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ def test_model_2b(self):
"Hello, today is a great day to start a new project. I have been working on a new project for a while now and I have"
]

model = AutoModelForCausalLM.from_pretrained(model_id, low_cpu_mem_usage=True, torch_dtype=torch.bfloat16, revision="refs/pr/1").to(
torch_device
)
model = AutoModelForCausalLM.from_pretrained(
model_id, low_cpu_mem_usage=True, torch_dtype=torch.bfloat16, revision="refs/pr/1"
).to(torch_device)
tokenizer = AutoTokenizer.from_pretrained(model_id, revision="refs/pr/1")
inputs = tokenizer(self.input_text, return_tensors="pt", padding=True).to(torch_device)

Expand Down

0 comments on commit bf2bd24

Please sign in to comment.