-
Notifications
You must be signed in to change notification settings - Fork 33
Fix mismatched doc comments on exported weight config constants #204
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -40,13 +40,13 @@ const ( | |||||
| // MediaTypeModelWeightConfigRaw is the media type used for an unarchived, uncompressed model weights, including files like `tokenizer.json`, `config.json`, etc. | ||||||
| MediaTypeModelWeightConfigRaw = "application/vnd.cncf.model.weight.config.v1.raw" | ||||||
|
|
||||||
| // MediaTypeModelConfig specifies the media type for configuration of the model weights, including files like `tokenizer.json`, `config.json`, etc. | ||||||
| // MediaTypeModelWeightConfig specifies the media type for configuration of the model weights, including files like `tokenizer.json`, `config.json`, etc. | ||||||
| MediaTypeModelWeightConfig = "application/vnd.cncf.model.weight.config.v1.tar" | ||||||
|
|
||||||
| // MediaTypeModelConfigGzip specifies the media type for gzipped configuration of the model weights, including files like `tokenizer.json`, `config.json`, etc. | ||||||
| // MediaTypeModelWeightConfigGzip specifies the media type for gzipped configuration of the model weights, including files like `tokenizer.json`, `config.json`, etc. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with the base constant and other compressed media types in this file, consider using 'gzipped model weight configuration'.
Suggested change
|
||||||
| MediaTypeModelWeightConfigGzip = "application/vnd.cncf.model.weight.config.v1.tar+gzip" | ||||||
|
|
||||||
| // MediaTypeModelConfigZstd specifies the media type for zstd compressed configuration of the model weights, including files like `tokenizer.json`, `config.json`, etc. | ||||||
| // MediaTypeModelWeightConfigZstd specifies the media type for zstd compressed configuration of the model weights, including files like `tokenizer.json`, `config.json`, etc. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with the base constant and other compressed media types in this file, consider using 'zstd compressed model weight configuration'.
Suggested change
|
||||||
| MediaTypeModelWeightConfigZstd = "application/vnd.cncf.model.weight.config.v1.tar+zstd" | ||||||
|
|
||||||
| // MediaTypeModelDocRaw is the media type used for an unarchived, uncompressed model documentation, including documentation files like `README.md`, `LICENSE`, etc. | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For better consistency with the
MediaTypeModelConfigdefinition (line 25) and the constant name itself, consider using the phrasing 'model weight configuration' instead of 'configuration of the model weights'. This also aligns with the singular 'weight' used in the identifier and media type string.