Skip to content
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

Add spec v2 #4

Merged
merged 8 commits into from
Sep 29, 2024
Merged

Add spec v2 #4

merged 8 commits into from
Sep 29, 2024

Conversation

aftersnow
Copy link
Contributor

No description provided.

@aftersnow aftersnow requested a review from bergwolf September 26, 2024 09:51
@aftersnow aftersnow self-assigned this Sep 26, 2024
@aftersnow aftersnow added the enhancement New feature or request label Sep 26, 2024
Copy link
Contributor

@bergwolf bergwolf left a comment

Choose a reason for hiding this comment

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

Generally looks good. Just some minor comments. A good start!

//
// This structure is designed to be flexible and accommodate various transformer architectures
// used in state-of-the-art language models.
type TransformerForCausalLLM struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not referenced anywhere. Let's add it when config.go references it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

MediaTypeModelConfig = "application/vnd.cnai.model.config.v2+json"

// MediaTypeModelLicense specifies the media type for model license.
MediaTypeModelLicense = "application/vnd.cnai.model.license.v2+json"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is the license file in json format? Looks like plaintext is better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

const (
// MediaTypeModelProcessorText specifies the media type for text processors.
// This includes tokenizers like sentencepiece, used for processing textual input.
MediaTypeModelProcessorText = "application/vnd.cnai.model.processor.text.v2.tar"
Copy link
Contributor

Choose a reason for hiding this comment

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

The processors are source code files right? Let's compress it with tar+gzip or tar+zstd?

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, I see that zstd is still wip.

@bergwolf bergwolf merged commit 0f12e13 into main Sep 29, 2024
1 check passed
@aftersnow aftersnow deleted the spec-v2 branch October 8, 2024 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants