LMSYS-Chat-1M (the LMSYS dataset people usually mean when they search for it) is a collection of one million real-world conversations with 25 large language models, gathered from 210K unique IP addresses on the Vicuna demo and the Chatbot Arena website between April and August 2023. The dataset is published as a gated dataset on Hugging Face: you can see the repository, but you have to accept its conditions before you can reach the files. Its user prompts are real, unfiltered and multilingual. That same rawness is why it needs more care before training or evaluation than a curated benchmark does.
How LMSYS-Chat-1M was collected from Chatbot Arena and the Vicuna demo
The conversations come from people using LMSYS’s public chat site with no registration. The site offered three interfaces: single-model chat, Chatbot Arena’s battle mode with anonymous models, and side-by-side comparison with named models. The authors deliberately applied no quality or duplicate filtering, so the data reflects real-world usage. Users consented through the “Terms of use” section of the collection website.
Coverage is broad. The paper reports more than 150 languages alongside the 25 models. A secondary summary of the paper lists English as the largest language, followed by Portuguese, Russian, Chinese and Spanish. The model list mixes proprietary systems such as GPT-4 and Claude with open models such as Llama-2 and Vicuna, and the paper finds that open models without safety measures tend to produce flagged content more often than proprietary ones.
Every sample carries a conversation ID, the model name, the conversation text in OpenAI API JSON format, a detected language tag and an OpenAI moderation API tag. There is also a “redacted” field that marks whether a conversation has been redacted.
What is the LMSYS dataset used for in practice?
The authors show four uses in the ICLR 2024 paper: content moderation models that perform similarly to GPT-4, a safety benchmark, instruction-following models that perform similarly to Vicuna, and challenging benchmark questions. The dataset card adds a wider research list: studying the distribution of real user prompts, LLM evaluation methods, and model selection and request dispatching.
Content moderation. The authors fine-tuned a Vicuna-7B model on flagged examples with GPT-4-written explanations. According to a secondary summary of the paper, the resulting Vicuna-moderator-7B reached a micro-F1 of 0.70 on hard toxic-content detection, about level with GPT-4. LMSYS also built a separate moderation benchmark, ToxicChat, from the same Vicuna demo data. It has 10,166 examples sampled from April Vicuna demo conversations, and is released under CC-BY-NC-4.0 for non-commercial use only. For the broader question of when a generative model makes a good classifier, see using an LLM for classification.
Safety research. The paper says the dataset holds a non-trivial amount of unfiltered unsafe conversations, which makes it useful for studying LLM safety. The authors catalogue jailbreak techniques found in the logs that got past GPT-4’s safeguards, including framing a request as educational, swapping tokens and round-tripping through translation.
Instruction tuning. This is where the nuance sits. The authors fine-tuned Llama2-7B on two subsets: “HighQuality”, with 45K conversations from OpenAI and Anthropic models, and “Upvote”, with 39K user-voted conversations from open models only. HighQuality-7B came out only slightly behind Vicuna-7B, while Upvote-7B was markedly worse. The authors read this as evidence that the prompts match ShareGPT’s in quality, while the answers from open models are still lacking. The practical reading is that LMSYS-Chat-1M works as a prompt source, and the responses need choosing or regenerating before you treat them as training targets. If you are weighing fine-tuning against retrieval, see retrieval augmented generation examples and guidance.
Benchmark prompts. Starting from the Arena portion of the data, the authors picked the 200 most challenging prompts, which GPT-3.5-Turbo, Claude-2 and GPT-4 all gave a 9+ score, and turned them into Arena-Hard-200. On that set, the gap between open and proprietary models looked wider than on MT-Bench.
Licence, personal data and unsafe content: the checks before you train or evaluate
Here is what the sources establish, and what we would check for each point.
Access is gated, and the terms are yours to read
To get the files you accept the conditions on the dataset card. On Hugging Face, a gated request by default shares your Hugging Face username and email address with the dataset authors. Read the conditions you accept on the card in full before you commit to commercial use. Separately, LMSYS’s sister dataset of Arena conversations tells its users to follow each model’s own terms of use when they work with that model’s direct outputs. That is a sensible default for LMSYS-Chat-1M too.
Personal data removal is best effort
The authors made their best efforts to remove all conversations containing personally identifiable information. They also attached the OpenAI moderation output to each message and deliberately kept unsafe conversations, so that safety questions and the moderation process itself can be studied. Person names were redacted with the OpaquePrompts team, so “Mary” and “James” appear as “NAME_1” and “NAME_2”. The card says redaction can hurt data quality and occasionally redact the wrong thing.
“Best efforts” is the authors’ own phrase, and independent work shows why it matters. A study of real user conversations with commercial GPT models found PII appearing in unexpected tasks: 48% of the time in translation and 16% in code editing. The same study found that PII detection alone misses sensitive topics such as sexual preferences or drug use. Treat any real chat log as potentially carrying personal and sensitive content, and design your pipeline to cope with that.
Unsafe content is kept, and the flags undercount it
About 5% of conversations are flagged as potentially harmful by the OpenAI moderation API. The authors warn that the API’s recall may be low, so the real share is probably higher. The paper’s appendix shows harmful examples that version 005 of the moderation API did not flag. The card tells users to apply filters and safety measures before training dialogue agents on the data.
Contamination, bias and duplicates
The card says no decontamination was run, so the data may contain test questions from popular benchmarks. Most site users were LLM hobbyists and researchers, so results may not carry over to everyday users or other professions. And with no registration and no filtering, the data contains a significant amount of low-quality and duplicate content.
Pre-use checklist
| Check | Why it matters | What we would do |
|---|---|---|
| Licence agreement accepted and read | Access requires accepting the card’s conditions | Record the agreed terms next to the data snapshot |
| Proprietary model outputs | Model-specific terms can apply to direct outputs | Decide per model whether its responses may be used as training targets |
| Residual PII | Removal is best effort and redaction can be wrong | Run your own PII and sensitive-topic pass, and check the redacted field |
| Unsafe content | About 5% flagged, with low recall | Filter on the moderation tags, then add a second classifier |
| Benchmark contamination | No decontamination was run | Deduplicate against your eval sets before you report a score |
| Duplicates and spam | No filtering was applied | Normalise and deduplicate prompts before sampling |
| User skew | Mostly hobbyists and researchers | Do not read prompt distributions as your users’ distribution |
A prompt mix from people stress-testing new models is a fair proxy for adversarial and coding-heavy traffic, but a poor one for a customer-service deployment. If you are tuning an inference stack or a fine-tune against it, sample from it with that skew in mind.
LMSYS-Chat-1M vs LMSYS-Chat-1M-Clean vs Chatbot Arena conversations
All three share the LMSYS-Chat name or Chatbot Arena roots.
Chatbot Arena Conversations is an LMSYS dataset of pairwise human preferences. It holds 33K cleaned conversations with pairwise human preferences, collected from 13K unique IP addresses on Chatbot Arena from April to June 2023. Each sample has two model names, both conversations, the user vote, an anonymised user ID and a timestamp. Its user prompts are licensed CC-BY-4.0 and its model outputs CC-BY-NC-4.0. LMSYS-Chat-1M, by contrast, contains raw conversations with no human preference annotations, and the paper points readers to the separately released preference data instead. If you want human votes, use the preference data; our piece on how Chatbot Arena model ranking works covers the ranking side.
LMSYS-Chat-1M-Clean (OpenLeecher/lmsys_chat_1m_clean) is a derivative published by an independent Hugging Face user. Its author removed exact duplicate instructions after normalising whitespace and punctuation, taking the data from 1M entries to around 500K. They then dropped every entry with PII redactions, judging them largely unusable without that context, and filtered out about 90K spammed and adversarial entries. The remaining ~270K prompts were re-answered with Phi-3-mini and DeepSeek-V3, scored with a reward model, and sorted into about 30 categories. The result has 273,402 rows and is 906 MB.
| LMSYS-Chat-1M | LMSYS-Chat-1M-Clean | Chatbot Arena Conversations | |
|---|---|---|---|
| Publisher | LMSYS | Independent Hugging Face user | LMSYS |
| Size | 1M conversations | 273,402 rows | 33K conversations |
| Responses | From 25 models | Regenerated by Phi-3-mini and DeepSeek-V3 | Full conversation of two models per sample |
| Human votes | None | None; reward-model scores instead | Pairwise user vote |
| Filtering | None, on purpose | Deduplicated, redacted and spam entries removed | Described as cleaned |
| Best fit | Prompt distribution, safety and moderation research | A diverse prompt set with modern responses | Preference modelling and evaluation research |
The cleaned set has already been deduplicated. It also inherits one person’s filtering choices, including removing every redacted conversation. Use it as a convenient starting point, not as a corrected version of the original.
How do I download and query LMSYS-Chat-1M on Hugging Face?
You accept the conditions on the dataset card, then authenticate with a Hugging Face access token and load the data with the datasets library.
- Sign in to Hugging Face, open the
lmsys/lmsys-chat-1mpage and accept the conditions. This by default shares your username and email with the authors. - Create an access token in your account settings and log in from your environment, for example with the Hugging Face CLI.
- Call
load_dataset, which takes atokenargument for gated repositories and astreamingflag that lets you iterate without downloading or caching the whole set first. - Inspect the schema on a handful of rows before writing filters.
from datasets import load_dataset
# Streaming avoids pulling the full dataset before you know what you need
ds = load_dataset(
"lmsys/lmsys-chat-1m",
split="train",
streaming=True,
token=True, # uses the token from your Hugging Face login
)
for row in ds.take(3):
print(row.keys()) # confirm column names against the dataset card
We would start by streaming, filtering on language, moderation tags and the redacted field, and saving only the subset you need as Parquet, versioned alongside the licence terms you accepted. That keeps the full million rows (and their unsafe content) out of shared storage unless someone has a reason to need them.
What the dataset will not tell you
LMSYS-Chat-1M records how a particular, technically curious crowd used chatbots between April and August 2023. The paper finds its prompts strong and the answers from its open models lacking. The question still open for any team using it is how far that crowd’s prompts resemble your production traffic. Only your own logs, handled with the same care for personal data, can answer that.
FAQ
How does Chatbot Arena work?
Users chat with two models side by side, often anonymously, and vote for the one that answered better. Those votes feed the Chatbot Arena leaderboard and form the human-preference data, which LMSYS releases separately from LMSYS-Chat-1M.