Skip to content

Fix LoRA freezing for non-linear modules - #3456

Merged
tianyu-l merged 10 commits into
pytorch:mainfrom
yinli-systems:kevin/freeze-non-lora-params
Jun 25, 2026
Merged

tianyu-l merged 10 commits into
pytorch:mainfrom
yinli-systems:kevin/freeze-non-lora-params

Conversation

@yinli-systems

Copy link
Copy Markdown
Contributor

Fixes #3438.

Summary

  • add an optional recurse mode to Configurable.Config.traverse while preserving the default stop-at-match behavior
  • make FrozenConfig a Module.Config wrapper so frozen configs still satisfy module-config type checks
  • freeze non-Linear leaf module configs during LoRA conversion, preventing embeddings/norms from remaining trainable
  • extend LoRA coverage to assert that only adapter parameters are trainable

Test plan

  • python3 -m compileall -q torchtitan/config/configurable.py torchtitan/components/lora.py tests/unit_tests/test_lora.py tests/unit_tests/test_configurable.py
  • git diff --check
  • .venv/bin/python -m ruff check torchtitan/config/configurable.py torchtitan/components/lora.py tests/unit_tests/test_lora.py tests/unit_tests/test_configurable.py
  • PYTHONPATH=. /tmp/torchtitan-py311-nightly/bin/python -m pytest -q tests/unit_tests/test_lora.py tests/unit_tests/test_configurable.py

@meta-cla

meta-cla Bot commented May 29, 2026

Copy link
Copy Markdown

Hi @Kevin-Li-2025!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@pytorch-bot

pytorch-bot Bot commented May 29, 2026 •

Copy link
Copy Markdown

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

@yinli-systems
yinli-systems force-pushed the kevin/freeze-non-lora-params branch from 699760a to 455ded9 Compare May 29, 2026 16:28
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label May 29, 2026
@yinli-systems
yinli-systems force-pushed the kevin/freeze-non-lora-params branch from 455ded9 to 69eb84f Compare May 29, 2026 16:29
Comment thread torchtitan/components/lora.py Outdated

def __setattr__(self, name: str, value) -> None:
if name in type(self).__slots__:
if name in {f.name for f in fields(type(self))}:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious what's the motivation of this change

Comment thread torchtitan/components/lora.py Outdated

@dataclass(kw_only=True, slots=True)
class FrozenConfig(Configurable.Config):
class FrozenConfig(Module.Config):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this change? I understand that FrozenConfig always wraps a Module, but Module has many metadata which is probably not needed by this class.

Comment thread torchtitan/components/lora.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably should make this Module.Config?

Comment thread torchtitan/components/lora.py Outdated
else:
setattr(parent, attr, new_cfg)

# Second pass: freeze non-Linear leaf modules such as embeddings and

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need two passes? I had thought one pass should suffice.

@yinli-systems

yinli-systems commented May 30, 2026 via email

Copy link
Copy Markdown
Contributor Author

@yinli-systems
yinli-systems force-pushed the kevin/freeze-non-lora-params branch from 69eb84f to a9489fd Compare May 30, 2026 18:02
Comment thread torchtitan/components/lora.py Outdated
Comment on lines +212 to +222
def _is_parameterized_non_linear_config(cfg: Module.Config) -> bool:
return isinstance(
cfg,
(
Conv2d.Config,
Embedding.Config,
GroupNorm.Config,
LayerNorm.Config,
RMSNorm.Config,
),
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only cover the existing cases today, which won't extend well when a model has new types of submodules.

In fact, I don't think we have to test if something is parametrized at all. Can we just apply FrozenConfig wrapping regardless?

Comment thread torchtitan/components/lora.py Outdated
Comment on lines +248 to +251
elif (
self._is_parameterized_non_linear_config(cfg)
and not self._has_nested_module_config(cfg)
):

@tianyu-l tianyu-l May 31, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is necessary / sufficient either.

What if a Module has submodule and trainable parameters -- would you skip setting requires_grad=False?

I think we just need to have two cases:

  • if Linear.Config and matching target, do lora wrapping
  • else do FrozenConfig wrapping

WDYT?

Overall there might be the tricky case where a Module has Linear submodule, and a trainable parameter, which we need to make sure traverse order and wrapping order is compatible.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this makes sense. I updated the PR to use the two-case logic:

  • matching Linear.Config -> LoRA wrapping
  • every other Module.Config -> FrozenConfig wrapping

To handle the composite-module case, FrozenConfig now freezes only direct parameters via parameters(recurse=False). Traversal still recurses into the original config tree, so child configs are converted/wrapped separately; this avoids recursively freezing nested LoRA adapters while still freezing direct parameters on a parent module that owns both parameters and submodules.

I also added a regression test with a composite module that has a direct Parameter plus a child Linear target, asserting the direct param and base weight are frozen and only LoRA adapter weights remain trainable.

Updated commit: 9d25530

@yinli-systems
yinli-systems force-pushed the kevin/freeze-non-lora-params branch from a9489fd to 9d25530 Compare May 31, 2026 12:22
Comment thread torchtitan/components/lora.py Outdated
Comment on lines +131 to +134
if self.param_init is not None:
self.inner.param_init = self.param_init
if self.sharding_config is not None:
self.inner.sharding_config = self.sharding_config

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming you are adding this because the order follows:

However, 3 should already be covered by the __setattr__ override above. Thus

  • it is not necessary to do it here one more time
  • actually I feel this could be wrong, because self.sharding_config is not really set due to the setattr override (unless the override itself has bugs)

Comment thread torchtitan/components/lora.py Outdated
@dataclass(kw_only=True, slots=True)
class FrozenConfig(Configurable.Config):
"""Config wrapper that freezes all parameters at build time.
class FrozenConfig(Module.Config):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the reason mentioned below, this should still not be a Module.Config subclass?

@yh8899

yh8899 commented Jun 1, 2026

Copy link
Copy Markdown

What should we do if we have nn.Parameter?

@tianyu-l

tianyu-l commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

What should we do if we have nn.Parameter?

what's the context of this question?

@yh8899

yh8899 commented Jun 1, 2026

Copy link
Copy Markdown

what's the context of this question?

Like this 'self.scale_shift_table = nn.Parameter(torch.empty(video_mod_param_num, config.dim))', bare nn.Parameter, not Module.

@tianyu-l

tianyu-l commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Like this 'self.scale_shift_table = nn.Parameter(torch.empty(video_mod_param_num, config.dim))', bare nn.Parameter, not Module.

What is "self", can we not wrap its config by FrozenConfig?

@yh8899

yh8899 commented Jun 1, 2026

Copy link
Copy Markdown

What is "self", can we not wrap its config by FrozenConfig?

Here:
https://github.com/huggingface/diffusers/blob/b003a47354ca3a28b4b21fceb4d649656d8cee99/src/diffusers/models/transformers/transformer_ltx2.py#L571

like this, it is not wraped by Config. After convert, parameter still trainable.

@yh8899

yh8899 commented Jun 1, 2026

Copy link
Copy Markdown

emm,i haven't test the latest change, is this can freeze its parameters?

@yh8899

yh8899 commented Jun 1, 2026

Copy link
Copy Markdown

Yeah, it can solve the ltx block, but it can't solve parameter in top model,like the WanTransformer3DModel:
https://github.com/huggingface/diffusers/blob/b003a47354ca3a28b4b21fceb4d649656d8cee99/src/diffusers/models/transformers/transformer_wan.py#L624

FrozenConfig is not a BaseModel.Config

@tianyu-l

tianyu-l commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

FrozenConfig is not a BaseModel.Config

oh, I think that was caused by

model_config.traverse(Module.Config, recurse=True)

not searching the model_config itself. Should be an easy fix. @Kevin-Li-2025

@yinli-systems
yinli-systems force-pushed the kevin/freeze-non-lora-params branch from a2f1dbc to a67de64 Compare June 2, 2026 04:02
@yinli-systems

Copy link
Copy Markdown
Contributor Author

Thanks for pointing out the top-level bare nn.Parameter case. I pushed a follow-up in a67de64c0 that handles the root Module.Config explicitly.

What changed:

  • Configurable.Config.traverse(..., include_self=True) can now opt into yielding the root config. The root yield uses parent=None / attr=None because it cannot be replaced through a parent container.
  • LoRAConverter uses that root yield to mark the root Module.Config for direct-parameter freezing instead of trying to wrap/replace the root with FrozenConfig.
  • Module.Config.build() freezes only direct parameters when that internal flag is set, so nested LoRA adapters remain trainable.
  • _make_lora_config now copies only dataclass init fields, so the private freeze flag does not leak into generated LoRA configs.

I also added regression coverage for:

  • traverse(..., include_self=True) root traversal semantics.
  • A root module with a direct bare nn.Parameter plus a child Linear converted to LoRA, verifying that only LoRA adapter params remain trainable.

Validation run locally in a Python 3.10 + PyTorch nightly CPU environment matching the unit-test workflow setup:

  • pytest tests/unit_tests/test_lora.py tests/unit_tests/test_configurable.py -q: 20 passed.
  • pytest tests/unit_tests -q -k 'not TestTokenizerIntegration': 372 passed, 2 skipped, 5 deselected.
  • git diff --check: passed.
  • pre-commit hooks on modified files, excluding pyrefly: passed.
  • targeted pyrefly on torchtitan/components/lora.py, torchtitan/config/configurable.py, and torchtitan/protocols/module.py: 0 errors.

The full tests/unit_tests run had two unrelated tokenizer integration failures: one HuggingFace gated Llama repo 401 and one DeepSeek tokenizer/transformers behavior mismatch. The PR is now rebased on upstream/main and GitHub reports it as mergeable, pending review.

@tianyu-l tianyu-l left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plus some of my earlier comments not addressed

Comment thread torchtitan/config/configurable.py Outdated
config_cls: type,
*,
recurse: bool = False,
include_self: bool = False,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why providing False option? Should always include self.

Comment thread torchtitan/components/lora.py Outdated
"in-place. Pass a model config that owns the target "
"Linear.Config as a field."
)
cfg._freeze_direct_params = True

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why we have to introduce this mechanism. Couldn't we make it self contained here?

Comment thread torchtitan/protocols/module.py Outdated
class Config(Configurable.Config):
param_init: dict | None = None
sharding_config: ShardingConfig | None = None
_freeze_direct_params: bool = field(default=False, init=False, repr=False)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't introduce this, I need to be convinced o/w

@yinli-systems

Copy link
Copy Markdown
Contributor Author

Thanks, this is fair. I tried to cover the top-level bare nn.Parameter case by adding _freeze_direct_params to Module.Config, but I agree that makes a LoRA-specific concern leak into the base module protocol. I don't want to defend that direction.

I'll rework the patch along these lines:

  • make root traversal the normal behavior instead of adding an include_self=False option;
  • move FrozenConfig back to a small Configurable.Config wrapper with inner: Module.Config;
  • remove the explicit param_init / sharding_config copying in FrozenConfig.build() since __setattr__ already forwards those updates to inner;
  • remove _freeze_direct_params from Module.Config entirely;
  • keep the LoRA converter self-contained: matching Linear.Config gets LoRA wrapping, other replaceable Module.Configs get FrozenConfig wrapping.

For the root bare-parameter case, I think the current in-place convert(config) -> None API is the awkward part: we cannot actually replace the root config through a parent container. Instead of hiding that by mutating Module.Config, I'll either make that limitation explicit in this PR or handle it with an explicit converter API change if that still seems worth it after simplifying the patch.

I also see the earlier FrozenConfig / Module.Config and sharding comments were still effectively unresolved. I'll address those directly in the next push rather than stacking more special cases on top of this version.

@tianyu-l

tianyu-l commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

handle it with an explicit converter API change if that still seems worth it after simplifying the patch.

I think this is fair, we can change ModelConfigConverter to return a modified model_config, not necessarily inplace.
https://github.com/pytorch/torchtitan/blob/main/torchtitan/protocols/model.py#L27

@yinli-systems
yinli-systems force-pushed the kevin/freeze-non-lora-params branch from a67de64 to e620d31 Compare June 17, 2026 01:08
@yinli-systems
yinli-systems force-pushed the kevin/freeze-non-lora-params branch from e620d31 to 338a6f0 Compare June 17, 2026 01:08
@yinli-systems

Copy link
Copy Markdown
Contributor Author

Pushed an updated version at 338a6f0. This should address the earlier review comments and the top-level bare parameter case without keeping the LoRA-specific flag in Module.Config.

What changed:

  • ModelConfigConverter.convert now returns the possibly modified model config, and the model registries use that return value. This lets a converter replace/wrap the root config explicitly instead of mutating base Module.Config state.
  • Configurable.Config.traverse now includes the root config by default. There is no include_self option anymore; the root yield uses parent=None / attr=None, and nested recursive yields preserve the actual replaceable parent/attr.
  • FrozenConfig is back to a small Configurable.Config wrapper with inner: Module.Config. It no longer inherits Module.Config, no longer carries param_init/sharding_config metadata, and no longer needs _freeze_direct_params.
  • LoRAConverter is self-contained now: matching Linear.Config nodes become LoRA configs, every other Module.Config is wrapped with FrozenConfig, including the root via the returned config. FrozenConfig freezes only direct params, so nested LoRA adapters remain trainable.
  • The quantization converters now also return model_config so the converter protocol remains consistent.

I added regression coverage for recursive traversal parent/attr semantics, composite modules with direct parameters, and root modules with direct parameters.

Local validation:

  • py_compile on the touched Python files: passed
  • git diff --check: passed
  • ruff format --check on touched files: passed
  • pytest tests/unit_tests/test_configurable.py -q: 13 passed

I could not run test_lora.py end-to-end on my local macOS/Python 3.14 environment because the import path requires triton and there is no triton wheel for this environment, but the LoRA changes are covered by the added tests and should run in the Linux CI environment.

Comment thread torchtitan/components/lora.py Outdated
@@ -106,13 +107,13 @@ def forward(self, input: torch.Tensor) -> torch.Tensor:

@dataclass(kw_only=True, slots=True)
class FrozenConfig(Configurable.Config):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CPU unit test failed. It seems caused by instance of this FrozenConfig would fail conditions like

if isinstance(x, FlexAttention.Config):

I'm not sure what's the best solution -- I guess we have to introduce dynamic subclassing?

@yinli-systems
yinli-systems force-pushed the kevin/freeze-non-lora-params branch from 338a6f0 to 5cbb2dc Compare June 17, 2026 10:31
@yinli-systems

Copy link
Copy Markdown
Contributor Author

Pushed an update at 1255e9a to address the CPU unit test failure from the frozen config wrapper.

The previous FrozenConfig(inner=...) wrapper no longer preserved checks like isinstance(inner_attention, FlexAttention.Config). I replaced it with per-config dynamic frozen subclasses, so non-LoRA configs still subclass their original config class while only overriding build() to freeze direct parameters.

One important detail: because the new frozen config is a copy rather than a forwarding wrapper, the converter now applies replacements from leaves to root. That keeps child LoRA replacements visible when the root/composite config is copied into its frozen subclass.

I also added a regression test covering the FlexAttention.Config type-check case.

Local validation:

  • python3 -m py_compile torchtitan/components/lora.py tests/unit_tests/test_lora.py: passed
  • git diff --check -- torchtitan/components/lora.py tests/unit_tests/test_lora.py: passed
  • minimal dynamic subclass behavior check: passed

I still cannot run tests/unit_tests/test_lora.py end-to-end on my local macOS/Python 3.14 setup because collection imports Triton-only modules and there is no usable Triton package for this environment. The added regression should run in the Linux CI environment.

Comment thread torchtitan/components/lora.py Outdated
non-target Linear modules.
"""
class FrozenConfig(config_cls): # type: ignore[valid-type, misc]
_lora_frozen_config = True

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels unnecessary, can we remove?

@yinli-systems

Copy link
Copy Markdown
Contributor Author

Thanks for the review. I removed the redundant _lora_frozen_config marker and pushed the update. The PR is currently approved and mergeable; I only see the Meta checks on the latest commit, so GitHub Actions may need maintainer approval to run on the fork.

Comment thread torchtitan/components/lora.py Outdated
Comment on lines 112 to 116
if any(
issubclass(config_cls, frozen_cls)
for frozen_cls in _frozen_config_class_cache.values()
):
return config_cls

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this? Is the two lines below not enough?

@yinli-systems

Copy link
Copy Markdown
Contributor Author

I updated the branch to address the latest CI state: removed the unrelated fake-backend timeout change from this PR and merged current upstream/main (the branch was 17 commits behind; the latest scheduled RL workflow on main passed). The prior RL failure occurred before LoRA conversion, while Tyro parsed a stale ModelSpec default. The PR diff is back to the LoRA/config-converter scope, and py_compile plus git diff --check pass locally. Could a maintainer approve/rerun the fork workflows on commit 280c352?

@tianyu-l

Copy link
Copy Markdown
Contributor

@yinli-systems

Copy link
Copy Markdown
Contributor Author

I found the RL H100 failure root cause and pushed 639bb4f1.

The PR changed ModelConfigConverter.convert() to return the possibly replaced root config, and the model registries now assign that return value. LMHeadCastConverter was still an in-place converter returning None, so the RL Qwen3 registry path ended up replacing ModelSpec.model with None; that is why the bitwise parity setup failed at model_spec.model.update_from_config(...).

The fix makes LMHeadCastConverter.convert() return the original model config after swapping lm_head, and adds a focused regression test for that contract.

Local checks run:

  • py_compile torchtitan/experiments/rl/models/cast_linear.py torchtitan/experiments/rl/tests/test_cast_linear.py
  • git diff --check

I tried to run torchtitan/experiments/rl/tests/test_cast_linear.py locally, but this Mac environment is missing the full RL/Triton dependency stack; the test collection reaches torchtitan.distributed.minimal_async_ep.kernels and fails on import triton. The H100 CI should now cover the failing RL path.

@yinli-systems

Copy link
Copy Markdown
Contributor Author

CI triage update after 639bb4f1:

I was able to fetch the failing job logs through the job-level logs API (/actions/jobs/{job_id}/logs), even though gh run view --log did not show useful output.

Current failing checks on this PR:

  • RL H100 Integration Tests (28022867130, job 83055788717) failed before running tests while uv pip install torch torchvision vllm xformers ... was fetching numpy metadata from PyPI: Connection reset by peer (os error 104). This looks like a transient runner/network/PyPI failure and should be rerun.
  • 8 GPU Model Tests CUDA/ROCm only failed the gpt_oss flavors. The failing commands do not pass any LoRA/model converter overrides, so these are not exercising the code path changed by this PR. Recent main 8GPU model runs are also failing (28081841013 failed and 28099543230 is still in progress at the time of writing), so I do not see a PR-scoped LoRA/config-converter fix to make safely here.
  • RL Integration Tests on this PR failed in RL GRPO TP=2 no compile during generator/vLLM setup (Cannot set version_counter for inference tensor in RoPE cache reshape). I checked recent main RL workflows as well, and they are currently red too (28099497831, 28100485308), though with a different GPT-OSS RL failure signature. Given that the RL workflow is not green on main right now, I cannot safely attribute this to the LoRA/config-converter diff without a rerun after main recovers.

I do not want to add unrelated fixes to this already-approved LoRA PR. Could a maintainer rerun the H100 job (network failure), and rerun/compare the 8GPU model + RL jobs once the corresponding main workflows are green? If a rerun still leaves a PR-only failure, I can follow up on that specific remaining failure.

@tianyu-l

Copy link
Copy Markdown
Contributor

I believe several issues have been fixed. Would you please rebase to latest main so that we can test this PR again? Thanks!

@yinli-systems
yinli-systems force-pushed the kevin/freeze-non-lora-params branch from 639bb4f to e494cff Compare June 25, 2026 01:34
@yinli-systems

yinli-systems commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Rebased onto latest main and force-pushed the branch. New head: e494cffb.

Local checks I ran after the rebase:

  • git diff --check upstream/main...HEAD
  • PYTHONPYCACHEPREFIX=/tmp/torchtitan-pycache /usr/bin/python3 -m py_compile torchtitan/components/lora.py
  • PYTHONPATH=$PWD PYTHONPYCACHEPREFIX=/tmp/torchtitan-pycache .venv-torchtitan-codex/bin/python -m pytest tests/unit_tests/test_configurable.py -q (13 passed)

I also tried tests/unit_tests/test_lora.py, but local collection is blocked on this Mac venv by missing triton; CI should cover it on the Linux GPU environment. Thanks!

@tianyu-l
tianyu-l merged commit b3213ef into pytorch:main Jun 25, 2026
17 of 21 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in TorchTitan Development Jun 25, 2026
saforem2 added a commit to saforem2/torchtitan that referenced this pull request Jun 25, 2026
Clean merge, no conflicts, no code replays. Fused-QKV-by-default (pytorch#3714)
flows via common/ but ezpz/agpt keeps fuse_qkv=False (zero checkpoint
risk to 2B/80B chains); LoRA/protocol convert() change (pytorch#3456) benign for
ezpz (moe quant builds OK); varlen+PP assert (pytorch#3777) and SPMD Partial
size-1 fix (pytorch#3762) are no-op/free-win. Config-build smoke passed for
agpt_2b/2b_real/80b + moe_10b_2b/sdpa.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/rl ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot. high priority

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

LoRAConverter silently leaves non-Linear parameters trainable

4 participants