Repository navigation
chore(deps): update loader dependencies non-major - #309
Open
dreadnode-renovate-bot[bot] wants to merge 1 commit into
Open
dreadnode-renovate-bot[bot] wants to merge 1 commit into
dreadnode-renovate-bot[bot] wants to merge 1 commit into
Conversation
dreadnode-renovate-bot
Bot
force-pushed
the
renovate/loader-deps
branch
from
November 22, 2026 00:34
be9627f to
d71cb16
Compare
| datasource | package | from | to | | ---------- | ------------ | ------ | ------ | | pypi | accelerate | 1.15.0 | 1.16.0 | | pypi | peft | 0.21.2 | 0.22.0 | | pypi | pydantic | 2.14.3 | 2.14.4 | | pypi | transformers | 5.22.2 | 5.24.0 |
dreadnode-renovate-bot
Bot
force-pushed
the
renovate/loader-deps
branch
from
November 25, 2026 00:32
d71cb16 to
671b598
Compare
This branch has not been deployed
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.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
==1.15.0→==1.16.0==0.21.2→==0.22.0==2.14.3→==2.14.4==5.22.2→==5.24.0Release Notes
huggingface/accelerate (accelerate)
v1.16.0: : broader accelerator support, launcher and FSDP improvementsCompare Source
Accelerator support
Accelerate now uses
torch.acceleratormore broadly to support registered PyTorch backends without requiring a separate device-specific branch throughout the library. Existing integrations retain their native APIs where needed for compatibility.This also includes initial improvements for single-chip TPU usage through
torch-tpu. Broader TPU support remains in progress.torch-tpuusage — @tengomucho (#4570).Launcher improvements
accelerate launchnow exits cleanly when interrupted with Ctrl+C or SIGTERM, cleaning up child workers. Distributed launches also handle torchrun shutdown signals without an extra launcher traceback.--quietand--debugbehavior — @SunMarc (#4573).simple_launcherwhile preserving live output — @albertvillanova (#4305).FSDP
Several fixes address RAM-efficient loading, including compatibility with Transformers loading models onto the meta device on nonzero ranks. FSDP1 now reconnects optimizer references when initialization replaces meta parameters, and FSDP2 correctly distinguishes those parameters when mapping them to their sharded replacements.
FSDP2 also supports preparing a model without an optimizer, allowing workflows such as
Trainer.evaluate()before training.🚨🚨🚨 ## Requirements and removals
Accelerate now requires Python 3.11+ and PyTorch 2.6+. This release also removes several deprecated integrations and APIs.
FP8RecipeKwargs. UseAORecipeKwargsfor TorchAO orTERecipeKwargsfor Transformer Engine — @SunMarc (#4464).Minor fixes
notebook_launchermixed precision to worker processes — @simpleqt (#4331).accelerate launchfrom forcingtorch.compile(dynamic=False)— @yupengtang (#4254).torch.distributedinmodel_has_dtensoron builds without distributed support — @shoemoney (#4250)._no_split_modulesclasses absent from the model when configuring auto-wrapping — @qgallouedec (#4384).clip_grad_value_under FSDP2 — @hjinnkim (#4386).compile_regions— @qgallouedec (#4524).Accelerator.clip_grad_norm_with Transformers — @michaelbenayoun (#4266).all_gather_singleover the deprecatedall_gather_into_tensor— @Yi-111-a (#4272).wait_for_everyone()in CPU distributed mode on machines with an accelerator — @JoeyTan21 (#4354).OffloadedWeightsLoader— @emme1t (#4281).balanced_low_0looking up memory limits by position instead of device ID — @Om-singhaI (#4298).IndexErrorwhen a tied parameter’s partner module is split — @simpleqt (#4344).unwrap_model(keep_fp32_wrapper=False)— @yupengtang (#4255).AlignDevicesHookto the offload path — @jiqing-feng (#4327).skip_first_batches, includingdrop_last, nonblocking transfers, the slicing function, and the device mesh — @truecallerabreham (#4296).skip_first_batches— @Excelius-Wang (#4235).split_between_processeson tuples withapply_padding=True— @shoutoutuoadi325 (#4307).ACCELERATE_BYPASS_DEVICE_MAPcase-insensitively — @Sreekant13 (#4241).ParallelismConfig.to_json()returningNone— @Linxiushen (#4326).New contributors
Thanks to everyone making their first contribution!
Full changelog: v1.15.0 → v1.16.0
huggingface/peft (peft)
v0.22.0Compare Source
Highlights
New methods
PaCA (Partial Connection Adaptation)
PaCA documentation (Partial Connection Adaptation, ICLR 2025), added in #3927 by @WooSunghyeon, is a PEFT method that fine-tunes randomly selected input columns ("partial connections") of the pretrained weights instead of adding adapter layers. This eliminates the sequential computation of adapter layers and stores only partial activations for the backward pass. Therefore, PaCA trains faster and uses less memory than LoRA with comparable accuracy (from the paper: 22% less training time, 16% less memory, 23% longer sequences). Use it when training time or activation memory is the bottleneck, also with quantized models (QPaCA). It is less effective when there are few tokens per step or only light modules such as q/v are adapted, and it supports only nn.Linear layers.
Astra initialization for LoRA
Astra (Activation-Space Tail-Eigenvector Low-Rank Adaptation of Large Language Models), added in by @LyoAI in #3725, uses a small task-specific calibration dataset to estimate each target layer's output-activation covariance. It initializes LoRA in the subspace of the covariance matrix's lowest-variance directions, giving the adapter a task-aware starting point. Set
init_lora_weights="astra"and runpreprocess_astrabefore injecting the adapter.NoRA initialization for LoRA
@Joluck implemented Normalized Low-Rank Adaptation initialization for LoRA in #3908. Like normal LoRA, the B weight is initalized to zero so the adapter starts as a no-op, but each column of the randomly initialized LoRA A matrix is normalized along the rank axis. Experimentally, this resulted in faster and better conversion compared to standard LoRA initialization. Set the
lora_alphavalue equal to the rankrwhen passinginit_lora_weights="nora".Tensor Parallelism (TP) and FSDP2
One focus of the v0.22.0 release of PEFT was to improve the support for TP and FSDP2, which came through numerous changes. Please install the latest Transformers version (at least v5.17) to benefit from these improvements.
Tensor Parallelism with LoRA
LoRA now supports the
embedding_colwiseTP plan. Replicated LoRA weights also start from synchronized values across TP ranks, including withinit_lora_weights=Falseand on output heads that gather their output (#4112, #3965). Please also check the updated LoRA TP guide.FSDP2 training, checkpointing, and merging
disable_adapter()reshards only when needed (#3838, #3839, #3895, #3938).save_pretrained()on every participating rank and setis_main_process=Trueonly on the rank that writes the files (#4065, #4108).merge_adapter()andunmerge_adapter()now update the FSDP2 parameter shards even whenreshard_after_forward=False. LoRA also preserves registeredMultiheadAttentionparameter identities during FSDP2 setup (#4077, #4083).Big thanks to @hivaze, @rupeshpoojary9, @Levius-Fubuki, @RerankerGuo, and @DaoyuanLi2816.
Enhancements
PEFT model health check
Call
model.print_healthcheck()for a summary of adapter state, dtypes, device, etc. (ormodel.healthcheck()for a JSON-serializable report). It can flag issues that PEFT detects with the PEFT model. Since it also reports the number of trainable and total parameters, it should be used in place ofmodel.print_trainable_parameters()(#3798, #3944, #4089 thanks to @eSVeeF).Example output for a LoRA on Llama-3.2-1B (no errors were found):
LoRA hotswapping across different target layers
PEFT already supports hotswapping LoRA adapters for some time, but the first loaded adapter must be able to accomodate all following adapters.
peft.helpers.create_dummy_lora_confighelps with this by building a dummy starting adapter with enough rank and layer coverage for a set of compatible LoRA adapters (#3739). PEFT also now checks the adapter being replaced and resolves its rank and alpha patterns during hotswapping (#3865, #3752, thanks to @DaoyuanLi2816).More adapters can be converted to LoRA
LoRA conversion, i.e. the conversion of other PEFT methods to LoRA adapters, now supports OFT and BOFT linear adapters, DEFT, and standard and mini MiSS modes (#3360).
Use this feature to make your PEFT checkpoints compatible with frameworks that only support LoRA.
More efficient adapter merging
LoRA and several other methods scale their merge deltas in place, avoiding an extra full-size allocation per layer. This should save a little bit of memory and should speed up merging (#4147, thanks to @Hang-get).
Changes
Python support
PEFT now requires Python 3.11 or newer, Python 3.10 has reached its end of life.
Adapter loading and target validation
PeftModel.from_pretrained()andload_adapter()now warn by default about both missing and unexpected adapter keys. Usestrict_adapter_check="error"to fail on a mismatch or"ignore"to suppress these checks (#3832 by @rupeshpoojary9).Activation checkpointing for k-bit training
prepare_model_for_kbit_training()now uses the Transformers default for activation checkpointing (aka "gradient checkpointing") when no kwargs are supplied, selecting non-reentrant checkpointing on current Transformers versions. Passactivation_checkpointing_kwargs={“use_reentrant”: True}in the checkpointing kwargs to opt into reentrant checkpointing (#4146).low_cpu_mem_usagelow_cpu_mem_usage=Truenow keeps dtypes, i.e. doesn’t restore the dtypes in the model to the ones from the checkpoint (which would most likely result in a type mismatch error, see #3509 by @vineethsaivs)OFT
In #4157, @MaiAditya fixed the forward code of OFT
Conv2dlayers, which previously could produce incorrect results. This means that existing OFT checkpoints that targetConv2dlayers may produce different outputs when used without merging.modules_to_savesuffix matching logicmodules_to_saveused to match purely by suffix, but now the whole sub-module name must match. This is best understood with an example: if you passmodules_to_save=["classifier"], it used to matchmodel.classifierand alsomodel.other_classifer. Now it only matchesmodel.classifier. If you want to keep the previous behavior, please passmodules_to_save=["classifier", "other_classifier"]or edit theadapter_config.jsonaccordingly if you have an existing checkpoint (#3824 by @AHSharan).Outlook: PEFT v1.0
The next PEFT release will be the 1.0 release! For this, we have planned a couple of sweet additions that will extend the scope of what PEFT is currently capable of doing, so stay tuned.
We will also take the opportunity to clean up PEFT and to streamline the API. This will mostly concern PEFT internals and we will take great care of ensuring backwards compatibility in the places where it matters, as well as to keep existing checkpoints working. Still, expect a few smaller breaking changes for the more uncommon workflows. Just as an example: Right now, if you have a PEFT model with multiple active adapters, and then you merge a single of those adapters, all other active adapters are completely ignored. This is very surprising and will raise an error in the future. For most PEFT users, however, everything will keep working as expected. We will have a release candidate so that you can check if anything breaks and give us feedback.
All changes
modules_to_savebuffer handling inconvert_to_loraby @eSVeeF in #3481unload()returns the trainedmodules_to_savecopy instead of the original module by @Sergasgr in #3957Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate CLI.