Skip to content
Open
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
6 changes: 3 additions & 3 deletions specs-go/v1/mediatype.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

For better consistency with the MediaTypeModelConfig definition (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.

Suggested change
// MediaTypeModelWeightConfig specifies the media type for configuration of the model weights, including files like `tokenizer.json`, `config.json`, etc.
// MediaTypeModelWeightConfig specifies the media type for a model weight configuration, 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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

For consistency with the base constant and other compressed media types in this file, consider using 'gzipped model weight configuration'.

Suggested change
// MediaTypeModelWeightConfigGzip 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 a gzipped model weight configuration, including files like tokenizer.json, config.json, etc.

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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

For consistency with the base constant and other compressed media types in this file, consider using 'zstd compressed model weight configuration'.

Suggested change
// MediaTypeModelWeightConfigZstd 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 a zstd compressed model weight configuration, including files like tokenizer.json, config.json, etc.

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.
Expand Down
Loading