-
Notifications
You must be signed in to change notification settings - Fork 36
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
Save tensors in lower precision #273
Open
LuukSuurmeijer
wants to merge
9
commits into
inseq-team:main
Choose a base branch
from
LuukSuurmeijer:feature/score_precision
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Save tensors in lower precision #273
LuukSuurmeijer
wants to merge
9
commits into
inseq-team:main
from
LuukSuurmeijer:feature/score_precision
Commits on May 10, 2024
-
Save attribution tensors with a lower precision.
inseq-team#202 Adds functionality for saving feature attributions objects and tensors in float16 or float8 format, depending on `scores_precision` parameters. Tensors are saved in huggingface safetensor format, and quantized using zeropoint quantization. Because safetensors are bytes objects, they are encoded with b64 to be saved in the output json and decoded upon reloading.
Configuration menu - View commit details
-
Copy full SHA for 62298a2 - Browse repository at this point
Copy the full SHA 62298a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e9828c - Browse repository at this point
Copy the full SHA 0e9828cView commit details -
Add support for
device_map
use (inseq-team#264)* Add device_map support * Fix device setter in HF model
Configuration menu - View commit details
-
Copy full SHA for 5c7e10f - Browse repository at this point
Copy the full SHA 5c7e10fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6133a50 - Browse repository at this point
Copy the full SHA 6133a50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9168e39 - Browse repository at this point
Copy the full SHA 9168e39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c1627e - Browse repository at this point
Copy the full SHA 3c1627eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 647c8b4 - Browse repository at this point
Copy the full SHA 647c8b4View commit details -
Merge branch 'feature/score_precision' of github.com:LuukSuurmeijer/i…
…nseq into feature/score_precision
Configuration menu - View commit details
-
Copy full SHA for 96f9629 - Browse repository at this point
Copy the full SHA 96f9629View commit details
Commits on May 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a682761 - Browse repository at this point
Copy the full SHA a682761View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.