Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Empty file added openmanus_rl/__init__.py
Empty file.
Binary file added openmanus_rl/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added openmanus_rl/__pycache__/configs.cpython-310.pyc
Binary file not shown.
Binary file added openmanus_rl/__pycache__/sft.cpython-310.pyc
Binary file not shown.
Binary file added openmanus_rl/__pycache__/utils.cpython-310.pyc
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion openmanus-rl/utils.py β†’ openmanus_rl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from transformers import AutoTokenizer, PreTrainedTokenizer
from trl import ModelConfig

from ..configs import GRPOConfig, SFTConfig
from .configs import GRPOConfig, SFTConfig

DEFAULT_CHAT_TEMPLATE = "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}"

Expand Down
Loading