Skip to content
View BTAgent's full-sized avatar

Block or report BTAgent

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
BTAgent/README.md

BTAgent

This repository contains the official code for the paper "BTAgent: Large Language Model for Behavior Tree Generation with Constrained DPO".

Step 1: Generation

python3 generate_instruction_bt.py generate_instruction_following_data

The generated data is in json format where each data contains the following attributes:

{
    "chosen": [{"role": "user", "content": <prompt>}, 
               {"role": "assistant", "content": <chosen bt>}],
    "rejected": [{"role": "user", "content": <prompt>}, 
                 {"role": "assistant", "content": <rejected bt>}]
}

Example. The following code generates 800 synthetic data for iteration 0.

bash scripts/generate.sh

Step 2: Fine-tuning

accelerate launch --config_file configs/deepspeed_zero3.yaml bt_lora.py configs/config.yaml --num_train_epochs=6

You might need to change the configuration in configs/config.yaml.

Example.

bash scripts/finetune.sh

Popular repositories Loading

  1. BTAgent BTAgent Public