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

Safetensors and model sharding #47

Merged
merged 9 commits into from
Sep 15, 2023
Merged

Safetensors and model sharding #47

merged 9 commits into from
Sep 15, 2023

Conversation

casper-hansen
Copy link
Owner

@casper-hansen casper-hansen commented Sep 13, 2023

This PR introduces the following:

  • sharding model weights, 10GB per shard
  • saving safetensors
  • loading safetensors

Resolves #36

Checks:

  • Quantize model to safetensors
  • Quantize model to torch weights
  • Quantize model to safetensors with shards
  • Quantize model to torch weights with shards
  • Load safetensors without reference to quant filename AND with reference to quant filename
  • Load torch weights without reference to quant filename AND with reference to quant filename
  • Load safetensors from local directory and remote huggingface repository
  • Load torch weights from local directory and remote huggingface repository

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.

Implement weight map and weight sharding
1 participant