Repository navigation
Updating documentation and closing some small gaps from 4.x - #2016
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
ActivationCacheto cover edge cases and improve DRY stateSVDInterpreter with a lazy load to reduce basetransformer_lens` loadbridge_core.pyto be able to determine_registered_block_countwith a method, to reduce the repeated calculations around that valuestop_layersystem. Now processed as part of the bridge, where the indexes are already known, so they do not need to be reconstructed by theblockcomponents_epshelper for normalizationpatching_HYBRID_VARIANT_NAMESset and replaced with dynamic hybrid detectionstatisticsto use sub-functions instead of mulitlayerifand variable declarationsChanges in behavior
input_to_embedon a padded string batch returns the tokenizer's mask for either padding side. Before, a right-padding tokenizer gotNoneand only a left-padding tokenizer got a mask (rebuilt from the ids).input_to_embed(..., padding_side="right")on a left-padding tokenizer used to ignore the argument when building the mask, so it returned a left-side mask read off right-padded ids. It now returns the mask for the side used.to_dataframe()row counts change on GQA results.NotImplementedErrorfor hybrids, it succeeds or raisesValueError.w_inoutputs change for every checkpointblocks.{i}.ln1/ln1_post/ln2/ln2_post.hook_scale/hook_normalized, and its post-norm head/neuron decompositions now return output.validate_model/fit.run_with_cache(stop_at_layer=k)raisesNotImplementedErroron bridges without ablocksstack.start_at_layerresumes correctly on Bloom and opaque/SSM stacks, and raisesNotImplementedErroron AltUp blocks.±infeffects give NaN p-values (was p = 0 or 1/(n_perm+1)). DLAunit="component"refuses an incomplete decomposition before the forward (was after a full forward).Type of change
Checklist: