OFASys: Enabling Multitask Learning with One Line of Code!
- Source
- qwenlm.github.io
- Publisher
- Qwen
- Author
- Qwen Team
- Date

Context
OFASys lets researchers describe a task's inputs and outputs through a shared format, then assembles the processing needed to train or run it. In the Qwen team's system description, an image-captioning task names the image input and the text output; the framework selects components that convert those data types into sequences a shared model can .
For multiple tasks, OFASys shares trainable components and schedules work across tasks and devices. Its one-line interface therefore describes the task while the framework handles much of the underlying coordination. This can make experiments spanning text, images, and other data types easier to organize; the datasets and model remain part of the work.
- Instruction — A statement in the context that tells the model how to behave or what to do; module 3's first layer.
- Process — A running instance of a program, with its own working memory, open files and identity.
- Training — The process that adjusts a model using examples and a measure of how well it performs.
- multimodal — A model that works with more than text — reading images, audio, or video, and sometimes generating them too.
“We all see an opportunity towards a real generalist model by multimodal multitask learning.”
“For example, it is hard to set up multiple tasks concerning multiple modalities, and it is hard to organize multitask learning, e.g., how to batchify your data and how to make your training stable.”




