Skip to content

Conversation

@seanshi-scale
Copy link
Contributor

Pull Request Summary

Previous pr allowed pydantic 2 to be compatible with the client, however we didn't update the requirements to note this.

Test Plan and Usage Guide

Pip install -e and check which version of pydantic it asks for. It asks for pydantic >= 1.10 which is correct.

@seanshi-scale seanshi-scale self-assigned this Feb 7, 2024
@seanshi-scale seanshi-scale changed the title Allow pydantic 2 in requirements the python client asks for Allow pydantic 2 in python client requested requirements Feb 7, 2024
gpus: int
memory: StorageSpecificationType
gpu_type: GpuType
gpu_type: Optional[GpuType]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious, why not default GpuType to None as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The location in the code does specify a value for GpuType, and I think it's pretty reasonable to make us specify some value of GpuType. For most of the other ones I changed, there isn't a value passed in, so None seems like a reasonable default.

gpus: int
memory: StorageSpecificationType
gpu_type: GpuType
gpu_type: Optional[GpuType]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, why is this optional, will we deploy LLMs on CPU?

Copy link
Contributor Author

@seanshi-scale seanshi-scale Feb 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

offline discussion: we're gonna add some defaults for the model architectures, I'm gonna keep this as optional since we may want overriding of defaults at some point

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for posterity: the Optional comes from the argument to Model.create()

@seanshi-scale seanshi-scale enabled auto-merge (squash) February 7, 2024 01:09
@seanshi-scale seanshi-scale merged commit ea38f1e into main Feb 7, 2024
@seanshi-scale seanshi-scale deleted the seanshi/allow-pydantic-2-in-reqs branch February 7, 2024 01:18
@yunfeng-scale yunfeng-scale mentioned this pull request Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants