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 varint to MDS #574

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Add varint to MDS #574

wants to merge 4 commits into from

Conversation

knighton
Copy link
Contributor

Add varint, varuint encodings to MDS.

@knighton knighton changed the title James/add varint to mds Add varint to mds Jan 23, 2024
@knighton knighton changed the title Add varint to mds Add varint to MDS Jan 23, 2024
Copy link
Collaborator

@snarayan21 snarayan21 left a comment

Choose a reason for hiding this comment

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

some testing changes

for x in range(-700, 700, 7):
y = mds_encode('varint', x)
z = mds_decode('varint', y)
print(x, y, z)
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need the print statements both here and below?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, can we test ints and their expected lengths that we would encode through tokenization? For example, the vocab_size of many models customers train is between 50 and 150k. Testing ints in that range would be useful

Copy link
Contributor Author

Choose a reason for hiding this comment

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

your spurious print statement life debt is paid

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.

2 participants