Skip to content

fix bugs #3962

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

Merged
merged 8 commits into from
Apr 23, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
  • Loading branch information
Jintao-Huang committed Apr 23, 2025
commit 8b7db9fa409429253572c0d430027f7d079401e4
1 change: 0 additions & 1 deletion swift/llm/argument/base_args/base_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ def get_template(self, processor: 'Processor', template_type: Optional[str] = No
template_kwargs = self.get_template_kwargs()
template_type = template_type or self.template
template = get_template(template_type, processor, **template_kwargs)
logger.info(f'default_system: {template.template_meta.default_system}')
return template

def get_model_processor(self,
Expand Down
2 changes: 2 additions & 0 deletions swift/llm/template/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def __init__(
template_meta.check_system(default_system)
if default_system is not None:
template_meta.default_system = default_system
logger.info(f'default_system: {template_meta.default_system}')
if response_prefix is not None:
template_meta.response_prefix = response_prefix

Expand All @@ -118,6 +119,7 @@ def __init__(
self.padding_side = padding_side
self.sequence_parallel_size = sequence_parallel_size
agent_template = agent_template or template_meta.agent_template
logger.info(f'agent_template: {agent_template}')
self.agent_template = agent_templates[agent_template]()
self.norm_bbox = norm_bbox or self.norm_bbox
if self.is_encoder_decoder:
Expand Down
Loading