Skip to content

Commit

Permalink
Load bfloat16
Browse files Browse the repository at this point in the history
  • Loading branch information
pomonam committed Jun 28, 2024
1 parent b6eaddd commit d9df4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/openwebtext/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

def construct_llama3() -> nn.Module:
config = AutoConfig.from_pretrained(
MODEL_NAME, trust_remote_code=True, device_map="auto"
MODEL_NAME, trust_remote_code=True, torch_dtype=torch.bfloat16, device_map="auto"
)
model = AutoModelForCausalLM.from_pretrained(
MODEL_NAME,
Expand Down

0 comments on commit d9df4ed

Please sign in to comment.