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
can we add support for streaming safetensors while loading using from_single_file. source:https://github.com/run-ai/runai-model-streamer
from_single_file
example:
from runai_model_streamer import SafetensorsStreamer file_path = "/path/to/file.safetensors" with SafetensorsStreamer() as streamer: streamer.stream_file(file_path) for name, tensor in streamer.get_tensors(): tensor.to('CUDA:0')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
can we add support for streaming safetensors while loading using
from_single_file
.source:https://github.com/run-ai/runai-model-streamer
example:
The text was updated successfully, but these errors were encountered: