Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix dora deployment #1821

Merged
merged 4 commits into from
Aug 26, 2024
Merged

fix dora deployment #1821

merged 4 commits into from
Aug 26, 2024

Conversation

tastelikefeet
Copy link
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).

adapter_names = None
for lora_req in _args.lora_request_list:
if lora_req.lora_name == request.model:
adapter_names = request.model
break
assert adapter_names is not None
adapter_kwargs['adapter_names'] = [adapter_names]
elif _args.use_dora:
assert request.model == 'default-lora', 'Dora only support default-lora'
pass
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove

for i, lora_module in enumerate(lora_modules):
lora_name, lora_local_path = lora_module.split('=')
lora_local_path = swift_to_peft_format(lora_local_path)
with open(os.path.join(lora_local_path, 'adapter_config.json'), 'r') as f:
Copy link
Collaborator

Choose a reason for hiding this comment

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

tuner_backend swift

@tastelikefeet tastelikefeet merged commit b950a9d into modelscope:main Aug 26, 2024
1 of 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.

2 participants