We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the main class for building dense indexes:
pyserini/pyserini/encode/_auto.py
Line 24 in b7e1da3
the arg fp16 does not seem to be used anywhere (it is kwargs in this line:
fp16
Line 38 in b7e1da3
__init__
self.model = AutoModel.from_pretrained(model_name, torch_dtype=torch.float16)
Moreover, the encode() method coulde use inference_mode(), like:
with torch.inference_mode(): outputs = self.model(**inputs)
which would significantly reduce the memory footprint of inference.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the main class for building dense indexes:
pyserini/pyserini/encode/_auto.py
Line 24 in b7e1da3
the arg
fp16
does not seem to be used anywhere (it is kwargs in this line:pyserini/pyserini/encode/_auto.py
Line 38 in b7e1da3
__init__
as:Moreover, the encode() method coulde use inference_mode(), like:
which would significantly reduce the memory footprint of inference.
The text was updated successfully, but these errors were encountered: