You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can then use these messages with a chat template or the chat completion API. If you wish to implement your own message processing logic, please refer to the protocol definition in `lmms_eval/protocol.py` for more details.
135
133
134
+
**Replacing the Simple Model with a Chat Model**
135
+
136
+
To use the `doc_to_messages` function, you must implement a chat model capable of processing the message format it produces. Examples of such models can be found in the `lmms_eval/models/chat` directory.
137
+
138
+
If you prefer to fall back to the previous simple model implementation, you can add the `--force_simple` flag to the launch command.
139
+
140
+
To implement a new chat model, follow these steps:
141
+
142
+
1. Create the chat model (e.g., `lmms_eval/models/vllm.py`).
143
+
2. Register the model in `lmms_eval/models/__init__.py`.
0 commit comments