Skip to content

Commit ce54498

Browse files
committed
Fix
1 parent 5b8c1e0 commit ce54498

File tree

15 files changed

+57
-57
lines changed

15 files changed

+57
-57
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ option(WITH_ARM "Compile PaddlePaddle with arm support" OFF)
322322
option(WITH_SW "Compile PaddlePaddle with sw support" OFF)
323323
option(WITH_MIPS "Compile PaddlePaddle with mips support" OFF)
324324
option(WITH_LOONGARCH "Compile PaddlePaddle with loongarch support" OFF)
325-
option(WITH_MUSL "Compile with musl libc instead of gblic" OFF)
325+
option(WITH_MUSL "Compile with musl libc instead of glibc" OFF)
326326
option(WITH_UNITY_BUILD "Compile with UnityBuild mode" OFF)
327327
option(WITH_STRIP "Strip so files of Whl packages" OFF)
328328
option(NEW_RELEASE_PYPI

python/paddle/distributed/auto_parallel/pipelining/stage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def _create_grad_send_info(
282282
def map_recv_to_send(a):
283283
# Note: we send gradients back to previous stage as long as in
284284
# forward it is a received input, regardless of whether it requires
285-
# grad. It is up to the previous stage to disgard this gradient.
285+
# grad. It is up to the previous stage to discard this gradient.
286286
if isinstance(a, _RecvInfo):
287287
grad_send_info.append(a.source)
288288
return a.source

python/paddle/distributed/auto_parallel/static/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def _coordinate2linear_idx(mesh_shape, coordinate):
373373
# that the processes in mesh are
374374
# 1. starts from 0
375375
# 2. continuous
376-
# it will be wrong if ths above condition does not meet,
376+
# it will be wrong if the above condition does not meet,
377377
# e.g. process_mesh = { process_groups = [7, 8, 9,10, 12, 13, 14, 15], mesh = [2, 4]}
378378
# if you want a more general mapping, you should use cartesian product
379379

python/paddle/incubate/optimizer/functional/bfgs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def minimize_bfgs(
8181
8282
- is_converge (bool): Indicates whether found the minimum within tolerance.
8383
- num_func_calls (int): number of objective function called.
84-
- position (Tensor): the position of the last iteration. If the search converged, this value is the argmin of the objective function regrading to the initial position.
84+
- position (Tensor): the position of the last iteration. If the search converged, this value is the argmin of the objective function regarding to the initial position.
8585
- objective_value (Tensor): objective function value at the `position`.
8686
- objective_gradient (Tensor): objective function gradient at the `position`.
8787
- inverse_hessian_estimate (Tensor): the estimate of inverse hessian at the `position`.

python/paddle/incubate/optimizer/functional/lbfgs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def minimize_lbfgs(
8383
8484
- is_converge (bool): Indicates whether found the minimum within tolerance.
8585
- num_func_calls (int): number of objective function called.
86-
- position (Tensor): the position of the last iteration. If the search converged, this value is the argmin of the objective function regrading to the initial position.
86+
- position (Tensor): the position of the last iteration. If the search converged, this value is the argmin of the objective function regarding to the initial position.
8787
- objective_value (Tensor): objective function value at the `position`.
8888
- objective_gradient (Tensor): objective function gradient at the `position`.
8989

python/paddle/incubate/optimizer/recompute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def _parse_backward(self):
390390
self._record_fetch_op(idx)
391391
)
392392

393-
# should check the current used checkpoint is ths last fetch one
393+
# should check the current used checkpoint is the last fetch one
394394
assert (
395395
second_to_last_fetch_checkpoint == input_var
396396
), f"Current recompute segment should use [{second_to_last_fetch_checkpoint}] BUT got [{input_var}]"

python/paddle/nn/functional/flash_attention.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ def flash_attn_varlen_func(
11561156
"FLAGS_flash_attn_version"
11571157
]
11581158
== 3
1159-
), "FLAGS_flash_attn_version is 2, conflits with flash_attn_varlen_func"
1159+
), "FLAGS_flash_attn_version is 2, conflicts with flash_attn_varlen_func"
11601160

11611161
assert (
11621162
in_dynamic_or_pir_mode()
@@ -1650,7 +1650,7 @@ def flashmask_attention(
16501650
If causal mode is disabled, Query at position i will only attend to keys between [i - window_size, i + window_size] or [i - window_size[0], i + window_size[1]].
16511651
return_softmax_lse (bool): Whether to return the log-sum-exp of the softmax. Default is False.
16521652
return_seed_offset (bool): Whether to return the random seed offset. Default is False.
1653-
fixed_seed_of fset(Tensor, optional): With fixed seed, offset for dropout mask.
1653+
fixed_seed_offset(Tensor, optional): With fixed seed, offset for dropout mask.
16541654
rng_name (str): The name to select Generator.
16551655
training (bool): Whether the module is in training mode. Default is True.
16561656
name (str, optional): Name of the operation. Default is None. Normally, users do not need to set this property.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def run(self):
273273
egg_info.run(self)
274274

275275

276-
# class Installlib is rewritten to add header files to .egg/paddle
276+
# class InstallLib is rewritten to add header files to .egg/paddle
277277
class InstallLib(install_lib):
278278
def run(self):
279279
self.build()

test/ir/inference/test_trt_convert_cross_multihead_matmul.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def teller1(program_config, predictor_config):
293293
self.add_skip_case(
294294
teller1,
295295
SkipReasons.TRT_NOT_IMPLEMENTED,
296-
"TThe cross attention trt oss plugin do not support static shape yet",
296+
"The cross attention trt oss plugin do not support static shape yet",
297297
)
298298

299299
def teller2(program_config, predictor_config):

test/ir/inference/test_trt_convert_flash_multihead_matmul.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def teller1(program_config, predictor_config):
294294
self.add_skip_case(
295295
teller1,
296296
SkipReasons.TRT_NOT_IMPLEMENTED,
297-
"TThe flash attention trt oss plugin do not support static shape yet",
297+
"The flash attention trt oss plugin do not support static shape yet",
298298
)
299299

300300
def teller2(program_config, predictor_config):
@@ -603,7 +603,7 @@ def teller1(program_config, predictor_config):
603603
self.add_skip_case(
604604
teller1,
605605
SkipReasons.TRT_NOT_IMPLEMENTED,
606-
"TThe flash attention trt oss plugin do not support static shape yet",
606+
"The flash attention trt oss plugin do not support static shape yet",
607607
)
608608

609609
def teller2(program_config, predictor_config):

0 commit comments

Comments
 (0)