Skip to content

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
Contributor

@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
Contributor

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
Contributor

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