3.2. unit_scaling.analysis
Tools for analysing scale (and other metrics) within PyTorch models.
Functions
|
Generates a batch of token IDs from a given dataset, along with an attention mask and labels (just the shifted token IDs). |
Converts a |
|
|
Generate a |
|
[Experimental] Generate a plot visualising the scales in the forward (and optionally backward) pass of all tensors in an arbitrary |