Skip to content

fix transformers model loading#150

Merged
tastelikefeet merged 1 commit intomodelscope:mainfrom
tastelikefeet:fix/0410-1
Apr 10, 2026
Merged

fix transformers model loading#150
tastelikefeet merged 1 commit intomodelscope:mainfrom
tastelikefeet:fix/0410-1

Conversation

@tastelikefeet
Copy link
Copy Markdown
Collaborator

PR type

  • Bug Fix
  • New Feature
  • Document Updates
  • More Models or Datasets Support

PR information

Write the detail information belongs to this PR.

Experiment results

Paste your experiment result here(if needed).

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the initialization logic for MultiLoraTransformersModel and TransformersModel to support automatic model class inference and configuration loading. The feedback identifies several issues, including a potential TypeError due to a missing None check on model_id before downloading, and the requirement to respect the trust_remote_code parameter from kwargs instead of hardcoding it. Additionally, MultiLoraTransformersModel should be updated to support initialization from a configuration when model_id is absent to ensure consistency across the models.

@tastelikefeet tastelikefeet merged commit 2431d25 into modelscope:main Apr 10, 2026
1 of 3 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.

2 participants