In a recent development, when I joined Hugging Face nearly 3 years ago, the Transformers documentation was very different from its current form today. It focused on text models and how to train or use them for inference on natural language tasks (text classification, summarization, language modeling, etc.).

The main version of the Transformers documentation today compared to version 4.10.0 from nearly 3 years ago.

Industry observers note that as transformer models increasingly became the default way to approach AI, the documentation expanded significantly to include new models and new usage patterns. But new content was added incrementally without really considering how the audience and the Transformers library have evolved. (Related: Tech Report: IShowSpeed breaks down in tears after fini...)

I think that's the reason why the documentation experience (DocX) feels disjointed, difficult to navigate, and outdated. Basically, a mess.

This is why a Transformers documentation redesign is necessary to make sense of this mess. The goal is to:. (Related: Could Meta fix its glasses privacy concerns with an LED...)

IMO companies that will understand that AI is not just APIs to integrate but a new paradigm to build all tech and who develop this muscle internally (aka build, train their own models) will be able to build 100x better than others and get the differentiation and long-term value.

The Transformers documentation was initially written for machine learning engineers and researchers, model tinkerers.

Recent findings suggest that now that AI is more mainstream and mature, and not just a fad, developers are growing interested in learning how to build AI into products. This means realizing developers interact with documentation differently than machine learning engineers and researchers do.

In a recent development, with the redesign, the Transformers documentation will be more code-first and solution-oriented. Code and explanation of beginner machine learning concepts will be tightly coupled to provide a more complete and beginner-friendly onboarding experience.

Once developers have a basic understanding, they can progressively level up their Transformers knowledge.

One of my first projects at Hugging Face was to align the Transformers documentation with Diátaxis, a documentation approach based on user needs (learning, solving, understanding, reference).

According to recent reports, A latest name, new content, a new look and a new address.https://t.co/PlmtSMQDNXIt’s probably the best documentation authoring system in the world! pic.twitter.com/LTCnIZmRwJ.

It has been revealed that but somewhere along the way, I started using Diátaxis as a strategy instead of a guide. I tried to force content to fit neatly into one of the 4 prescribed categories.

Rigidity prevented naturally occurring content structures from emerging and prevented the documentation from adapting and scaling. Documentation about one topic soon spanned several sections, because it was what the structure dictated, not because it made sense.

It's okay if the structure is complex, but it's not okay if it's complex and not easy to find your way around.

The redesign will replace rigidity with flexibility to enable the documentation to grow and evolve.

Industry observers note that tree rings provide a climatological record of the past (drought, flood, wildfire, etc.). In a way, the Transformers documentation also has its own tree rings or eras that capture its evolution:.

Recent findings suggest that each era incrementally added latest content to the documentation, unbalancing and obscuring its previous parts. Content is sprawled over a greater surface, navigation is more complex.

According to recent reports, in the tree ring model, newly introduced content is layered progressively over the previous content. Whereas in the integrated model, content coexists together as a part of the overall documentation.

Industry observers note that A redesign will help rebalance the overall documentation experience. Content will feel native and integrated rather than added on.

This post explored the reason and motivation behind our quest to redesign the Transformers documentation.

Stay tuned for the next post which identifies the mess in more detail and answers crucial questions such as, who are the intended people and stakeholders, what is the current state of the content, and how is it being interpreted.

Shout out to [@evilpingwin](https://x.com/evilpingwin) for the feedback and motivation to redesign the docs.

→ Read original article