[BFCL] Add support for LGAI-EXAONE/EXAONE-4.0 series models #1264
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for LG AI Research's EXAONE 4.0 series models to BFCL.
EXAONE 4.0 is a unified large language model developed by LG AI Research.
The model supports agentic tool use with Hermes-style tool calling format and provides multilingual capabilities for English, Korean, and Spanish.
The implementation follows the existing Qwen FC handler pattern, with modifications for EXAONE 4.0's specific chat template format:
[|system|],[|user|],[|assistant|],[|endofturn|]as special tokens<tool></tool>tags<tool_call>{"name": ..., "arguments": ...}</tool_call>format<tool_response></tool_response>tagsModels Added
Changes
New Files
bfcl_eval/model_handler/local_inference/exaone4.py- Prompting mode handlerbfcl_eval/model_handler/local_inference/exaone4_fc.py- Function Calling mode handlerModified Files
bfcl_eval/constants/model_config.py- Added EXAONE 4.0 model configurationsEXAONE 4.0 Details
[|system|],[|user|],[|assistant|],[|endofturn|]<tool_call>{"name": ..., "arguments": ...}</tool_call>)<think>...</think>block supportReferences
Testing
Tested with:
bfcl generate --model LGAI-EXAONE/EXAONE-4.0-32B-FC --backend vllm --num-gpus 4 --local-model-path /local/model/path --test-category multi_turn,single_turnbfcl evaluate --model LGAI-EXAONE/EXAONE-4.0-32B-FC --test-category multi_turn,single_turn