Trainable agent for role-playing, learning from experiences, characteristics, and emotions
Top 57.5% on sourcepulse
This repository provides the code and datasets for Character-LLM, a trainable agent designed for role-playing. It enables LLMs to embody specific historical figures or fictional characters with distinct personalities and knowledge, offering a more authentic role-playing experience than prompt-based methods. The target audience includes researchers and developers working on conversational AI, character simulation, and creative LLM applications.
How It Works
Character-LLMs are trained using a novel "Experience Reconstruction" process. This involves generating detailed experience data for target characters, including profiles, scenes, and multi-turn interactions. This data is then used to fine-tune base LLMs (like Llama 1) to imbue them with character-specific traits, knowledge, and emotional nuances, allowing them to respond authentically without requiring external prompts during inference.
Quick Start & Requirements
python3 -m fastchat.model.apply_delta
.Highlighted Details
Maintenance & Community
The project is associated with the EMNLP 2023 paper "Character-LLM: A Trainable Agent for Role-Playing." No specific community channels (like Discord/Slack) or active maintenance signals are mentioned in the README.
Licensing & Compatibility
Limitations & Caveats
The project's resources are strictly for academic research and prohibit commercial use. Output quality and accuracy are subject to uncontrollable variables like randomness, and the authors disclaim responsibility for any consequences arising from resource usage.
9 months ago
1 day