Skip to content

Many bug fixes#2087

Merged
danielhanchen merged 756 commits intomainfrom
nightly
Mar 18, 2025
Merged

Many bug fixes#2087
danielhanchen merged 756 commits intomainfrom
nightly

Conversation

@danielhanchen
Copy link
Copy Markdown
Contributor

No description provided.

danielhanchen and others added 29 commits March 17, 2025 21:44
…rror` (#2080)

When loading a PEFT model fails, only the `autoconfig_error` is shown. Instead of the `peft_error`, which is what really matters when we're trying to load a PEFT adapter, the user will see something like this:

```
RuntimeError: Unrecognized model in my_model. Should have a `model_type` key in its config.json, or contain one of the following strings in its name: albert, align, altclip, ...
```

This PR just changes it so `autoconfig_error` and `peft_error` are both displayed.
@danielhanchen danielhanchen merged commit 6df04a3 into main Mar 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants