salesforce/ctrl
A conditional transformer language model that enables controllable text generation through control codes.

CTRL is a conditional transformer language model released by Salesforce research that generates text with user-specified control over style, domain, and other attributes via control codes. The model can be fine-tuned on custom datasets and was subsequently integrated into the HuggingFace Transformers library. It includes utilities for converting TensorFlow checkpoints to PyTorch format and supports various text generation parameters like temperature and repetition penalty.
Frequently asked
- What is salesforce/ctrl?
- A conditional transformer language model that enables controllable text generation through control codes.
- Is ctrl open source?
- Yes — salesforce/ctrl is open source, released under the BSD-3-Clause license.
- What language is ctrl written in?
- salesforce/ctrl is primarily written in Python.
- How popular is ctrl?
- salesforce/ctrl has 1.9k stars on GitHub.
- Where can I find ctrl?
- salesforce/ctrl is on GitHub at https://github.com/salesforce/ctrl.