← Open Source
InteractiveNLP-Team

RoleLLM-public

RoleLLM: Benchmarking, Eliciting, and Enhancing Role-Playing Abilities of Large Language Models.

Model DevelopmentDataset engineeringFine-tuning
Open on GitHub
Momentum
+0stars in 24 hours0.0%
533
Stars
18
Forks
+0
This week
1
Contributors
Created 2023-10-01 · Updated 2026-10-08 · #17556 today
Top developers
ZenMoore

InteractiveNLP-Team/RoleLLM-public is ranked 17,556 with 533 stars.

Same-category comparison

InteractiveNLP-Team/RoleLLM-public is ranked 17,556 among these 8 peers; Justin-Tan/generative-compression is ranked 17,558.

Same-category comparison
NameRankMetrics
bigscience-workshop/xmtf17,539
Language:
Jupyter Notebook
Stars:
534
Forks:
43
Description:
Crosslingual Generalization through Multitask Finetuning.
bohanli/BERT-flow17,540
Language:
Python
Stars:
534
Forks:
68
Description:
TensorFlow implementation of On the Sentence Embeddings from Pre-trained Language Models (EMNLP 2020).
znxlwm/pytorch-MNIST-CelebA-cGAN-cDCGAN17,551
Language:
Python
Stars:
534
Forks:
128
Description:
Pytorch implementation of conditional Generative Adversarial Networks (cGAN) and conditional Deep Convolutional Generative Adversarial Networks (cDCGAN) for MNIST dataset.
BCG-X-Official/facet17,553
Language:
Jupyter Notebook
Stars:
533
Forks:
47
Description:
Human-explainable AI.
Justin-Tan/generative-compression17,558
Language:
Python
Stars:
533
Forks:
105
Description:
TensorFlow Implementation of Generative Adversarial Networks for Extreme Learned Image Compression.
chaitjo/efficient-gnns17,565
Language:
Python
Stars:
533
Forks:
63
Description:
Code and resources on scalable and efficient Graph Neural Networks (TNNLS 2023).
eyounx/VirtualTaobao17,567
Language:
Python
Stars:
533
Forks:
97
Description:
Virtual-Taobao simulators with OpenAI Gym interface.
johnsmith0031/alpaca_lora_4bit17,570
Language:
Python
Stars:
533
Forks:
83
Key parameters and specifications
Key parameters and specifications
ParameterValue
CategoryModel Development
SubcategoryDataset engineering, Fine-tuning
KeywordsRoleplaying
Stars533
Forks18
Contributors1
Created date2023-10-01
Updated date2026-10-08
Stars in 1 day0
Stars in 7 days0
Rank17,556
Previous rank17,339
Rank change-217
7-day stars rank16,170
Previous 7-day stars rank11,523
7-day stars rank change-4,647
Total stars rank18,405
Previous total stars rank18,383
Total stars rank change-22
CountryChina
README summary

RoleLLM: Benchmarking, Eliciting, and Enhancing Role-Playing Abilities of Large Language Models Paper ; Data We introduce RoleLLM, a role-playing framework of data construction and evaluation (RoleBench), as well as solutions for both closed-source and open-source models (RoleGPT, RoleLLaMA, RoleGLM). We also propose Context-Instruct for long-text knowledge extraction and role-specific knowledge injection. Abstract The advent of Large Language Models (LLMs) has paved the way for complex tasks such as role-playing, which enhances user interactions

by enabling models to imitate various characters. However, the closed-source nature of state-of-the-art LLMs and their general-purpose training limit role-playing optimization. In this paper, we introduce **RoleLLM**, a framework to benchmark, elicit, and enhance role-playing abilities in LLMs. RoleLLM comprises four stages: (1) Role Profile Construction for **100 roles**; (2) Context-Based Instruction Generation (**Context-Instruct**) for role-specific knowledge extraction; (3) Role Prompting using GPT (**RoleGPT**) for speaking style imitation; and (4

) Role-Conditioned Instruction Tuning (**RoCIT**) for fine-tuning open-source models along with role customization. By Context-Instruct and RoleGPT, we create **RoleBench**, the first systematic and fine-grained character-level benchmark dataset for role-playing with **168,093 samples**. Moreover, RoCIT on RoleBench yields **RoleLLaMA (English)** and **RoleGLM (Chinese)**, significantly enhancing role-playing abilities and even achieving comparable results with RoleGPT (using GPT-4). What's New **[2023/12/1]** Our RoleBench is integrated into OpenCompass for comprehensive evaluation of

LLM. **[2023/10/19]** Our RoleBench data is released. Jessep, Coriolanus, D_Artagnan, David Aames, Doctor Who, Dr. All the mentioned roles are showcased with portraits in the role panorama at the beginning. Framework RoleLLM comprises four stages: (1) role profile construction; (2) context-based instruction generation (Context-Instruct), primarily aimed at extracting role-specific knowledge and episodic memories; (3) role prompting using GPT (RoleGPT), chiefly for the imitation of speaking styles; and (4) role-conditioned instruction tuning (RoCIT), which

utilizes the data generated by Context-Instruct and RoleGPT to enhance existing open-source LLMs. Experimental Results Non-Cherry-Picked Demonstrations Star History Citation Feel free to cite us if you like RoleBench and RoleLLM.

Frequently asked questions

How many stars and forks are recorded?

InteractiveNLP-Team/RoleLLM-public has 533 stars and 18 forks.

What is the repository rank?

InteractiveNLP-Team/RoleLLM-public is ranked 17,556.

Which repository is closest in rank?

InteractiveNLP-Team/RoleLLM-public is compared with Justin-Tan/generative-compression, ranked 17,558 with 533 stars.

Nearby in the ranking
Similar items