Skip to content

Commit

Permalink
Use json_schema_extra instead of extra keyword in Field (#6764)
Browse files Browse the repository at this point in the history
> Using extra keyword arguments on `Field` is deprecated and will be
removed. Use `json_schema_extra` instead. (Extra keys: 'new_param').
Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2
Migration Guide at https://errors.pydantic.dev/2.9/migration/

Co-authored-by: Logan Adams <114770087+loadams@users.noreply.github.com>
  • Loading branch information
qgallouedec and loadams authored Nov 20, 2024
1 parent 065398d commit 83e4364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepspeed/runtime/zero/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class DeepSpeedZeroConfig(DeepSpeedConfigModel):
for efficient all_2_all_reduce comm
"""

mics_shard_size: int = Field(-1, new_param="mics_shard_size")
mics_shard_size: int = Field(-1, json_schema_extra={"new_param": "mics_shard_size"})

mics_hierarchical_params_gather: bool = False

Expand Down

0 comments on commit 83e4364

Please sign in to comment.