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

[breaking] improve API by removing the Quantizer class and adds in memory support #21

Merged
merged 4 commits into from
Nov 19, 2021

Conversation

rom1504
Copy link
Contributor

@rom1504 rom1504 commented Nov 17, 2021

No description provided.

@rom1504 rom1504 changed the title [breaking] improve API by removing the Quantizer class [breaking] improve API by removing the Quantizer class and adds in memory support Nov 18, 2021


def quantize(
embeddings_path: str,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change name to embeddings_or_path and type to Union[str, np.ndarray] ?

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 done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed the type but actually I think it's better if we don't change the argument name, it would be an annoying breaking change with no obvious benefit

print("Recap:")
pp(metric_infos)

return index
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you also return the output path ?

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

@rom1504 rom1504 force-pushed the improve_api branch 2 times, most recently from 203e0e3 to 14bd0d6 Compare November 18, 2021 17:56
@rom1504
Copy link
Contributor Author

rom1504 commented Nov 19, 2021

reviewed with victor

@rom1504 rom1504 deleted the improve_api branch November 19, 2021 17:20
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