Skip to content

Commit

Permalink
Update sdp_on_bf16 option for ST example (huggingface#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhengHongming888 authored and Liangyx2 committed Jan 20, 2025
1 parent 8224c09 commit 40c5242
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def main():
warmup_ratio=0.1,
# fp16=True, # Set to False if you get an error that your GPU can't run on FP16
bf16=args.bf16, # Set to True if you have a GPU that supports BF16
# sdp_on_bf16=True, #Set to True for better performance (but this setting can affect accuracy)
# Optional tracking/debugging parameters:
evaluation_strategy="steps",
eval_steps=100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def main():
warmup_ratio=0.1,
# fp16=True, # Set to False if you get an error that your GPU can't run on FP16
# bf16=False, # Set to True if you have a GPU that supports BF16
# sdp_on_bf16=True, #Set to True for better performance (but this setting can affect accuracy)
batch_sampler=BatchSamplers.NO_DUPLICATES,
# Optional tracking/debugging parameters:
evaluation_strategy="steps",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def main():
warmup_ratio=0.1,
# fp16=True, # Set to False if you get an error that your GPU can't run on FP16
# bf16=False, # Set to True if you have a GPU that supports BF16
# sdp_on_bf16=True, #Set to True for better performance (but this setting can affect accuracy)
batch_sampler=BatchSamplers.NO_DUPLICATES,
# Optional tracking/debugging parameters:
evaluation_strategy="steps",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
warmup_ratio=0.1,
# fp16=True, # Set to False if you get an error that your GPU can't run on FP16
# bf16=False, # Set to True if you have a GPU that supports BF16
# sdp_on_bf16=True, #Set to True for better performance (but this setting can affect accuracy)
batch_sampler=BatchSamplers.NO_DUPLICATES, # MultipleNegativesRankingLoss benefits from no duplicate samples in a batch
# We can use ROUND_ROBIN or PROPORTIONAL - to avoid focusing too much on one dataset, we will
# use round robin, which samples the same amount of batches from each dataset, until one dataset is empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def main():
warmup_ratio=0.1,
# fp16=True, # Set to False if you get an error that your GPU can't run on FP16
bf16=args.bf16, # Set to True if you have a GPU that supports BF16
# sdp_on_bf16=True, #Set to True for better performance (but this setting can affect accuracy)
# Optional tracking/debugging parameters:
evaluation_strategy="steps",
eval_steps=100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def main():
warmup_ratio=0.1,
# fp16=True, # Set to False if you get an error that your GPU can't run on FP16
# bf16=False, # Set to True if you have a GPU that supports BF16
# sdp_on_bf16=True, #Set to True for better performance (but this setting can affect accuracy)
# Optional tracking/debugging parameters:
evaluation_strategy="steps",
eval_steps=100,
Expand Down

0 comments on commit 40c5242

Please sign in to comment.