Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sdp_on_bf16 option for ST example #1615

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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