Ambitions to become GitHub for machine learning? Hugging Face adds Decision Transformer to its library – Analytics India Magazine
Hugging Face is one of the most promising companies in the world. It has set to achieve a unique feat to become the GitHub for machine learning. Over the last few years, the company has open-sourced a number of libraries and tools, especially in the NLP space. Now, the company has integrated Decision Transformer, an offline reinforcement learning method, into the transformers library and the Hugging Face Hub.
Decision transformers were first introduced by Chen L. and his team in the paper Decision Transformer: Reinforcement Learning via Sequence Modelling. This paper introduced this framework that abstracts reinforcement learning as a sequence modelling problem. Unlike previous approaches, Decision Transformers output the optimal actions by leveraging a causally masked Transformer. A Decision Transformer can generate future actions that achieve desired return by conditioning an autoregressive model on desired reward, past states, and actions. The authors concluded that despite the simple design of this transformer, it matches, even exceeds, the performance of the state-of-art model and free offline reinforcement learning baselines on Atari, OpenAI Gym, and Key-to-Door tasks.
Decision Transformer architecture
The idea of using a sequence modelling algorithm is that instead of training a policy using reinforcement methods that would suggest action to maximise the return, Decision Transformers generate future actions based on a set of desired parameters. It is a shift in the reinforcement learning paradigm since the user is using a generative trajectory modelling to replace conventional reinforcement learning algorithms. The important steps involved in this are feeding the last K timesteps in the Decision Transformer with three inputs (return-to-go, state, action); embedding the tokens with a linear layer (if the state is a vector) or CNN encoder if it is a frame; processing the inputs by GPT-2 model that predicts future actions through autoregressive modelling.
Reinforcement learning is a framework to build decision making agents that learn optimal behaviour by interacting with the environment via trial and error method. The ultimate goal of an agent is to maximise the cumulative reward called return. One can say that reinforcement learning is based on the reward hypothesis and all the goals are the maximisation of the expected cumulative reward. Most reinforcement learning techniques are geared in the online learning setting, where the agents interact with the environment and gather information using current policy and exploration schemes to find higher-reward areas. The drawback with this method is that the agent has to be trained directly in the real world or have a simulator. In case a simulator is not available, one would be required to build it, which is a very complex process. Simulators may even have flaws that can be exploited by agents to gain a competitive advantage.
Credit: Hugging Face
This problem is present in the case of offline reinforcement learning. In this case, the agent only uses the data collected from other agents or human demonstrations without interacting with the environment. Offline reinforcement learning learns skills only from previously collected datasets without active environment interaction and provides a way to utilise previously collected datasets from sources like human demonstrations, prior experiments, and domain-specific solutions.
Hugging Faces startup journey has been nothing short of being phenomenal. The company, which started as a chatbot, has gained massive attention from the industry in a very short period; big companies like Apple, Monzo, and Bing use their libraries in production. Hugging Faces transformer library is backed by PyTorch and TensorFlow, and it offers thousands of pretrained models for tasks like text classification, summarisation, and information retrieval.
In September last year, the company released Datasets, a community library for contemporary NLP, which contains 650 unique datasets and more than 250 contributors. With Datasets, the company aims at standardising end-user interface, versioning, and documentation. This sits well with the companys larger vision of democratising AI, which would extend the benefits of emerging technologies to smaller technologies, which is otherwise concentrated in a few powerful hands.
The rest is here:
Ambitions to become GitHub for machine learning? Hugging Face adds Decision Transformer to its library - Analytics India Magazine
- Machine Learning Reshapes Credit Scoring - Communications of the ACM - September 13th, 2026 [September 13th, 2026]
- Machine Learning With Threshold Optimization Could Help Reduce Unnecessary Appendectomies in Adults - bioengineer.org - September 13th, 2026 [September 13th, 2026]
- Information Theory Meets Machine Learning to Catch Industrial Cyberattacks - bioengineer.org - September 13th, 2026 [September 13th, 2026]
- Machine Learning Gets a Robustness Boost by Turning Labels into Preferences - bioengineer.org - September 13th, 2026 [September 13th, 2026]
- Machine Learning Meets X-Rays to Reveal the Hidden Architecture of Pea Seeds - bioengineer.org - September 13th, 2026 [September 13th, 2026]
- Machine Learning Predicts Which Women Will Face Early Ovarian Failure Within Three Years - bioengineer.org - September 13th, 2026 [September 13th, 2026]
- Machine Learning Cracks the Code of Nitinol Wear, a Metal That Remembers Its Shape - bioengineer.org - September 13th, 2026 [September 13th, 2026]
- Using machine learning to see how living brains learn - The University of Utah - September 8th, 2026 [September 8th, 2026]
- Applying causal machine learning to assess and improve cleantech policy design - Nature - September 8th, 2026 [September 8th, 2026]
- Frontier Tech Leaders Programme Celebrates First Machine Learning Bootcamp Graduation and AI for Sustainable Tourism Hackathon in Angola - United... - September 8th, 2026 [September 8th, 2026]
- From the Knowledge to machine learning: Wayve takes AI driving to London - IOT Insider - September 8th, 2026 [September 8th, 2026]
- Algorithm optimizes machine learning techniques that use linear, tunable resistor networks - AIP.ORG - September 2nd, 2026 [September 2nd, 2026]
- Math Modeling Seminar: Applications of Topological Data Analysis and Machine Learning Models in Predictive Biology and Drug Discovery | Events | RIT -... - September 2nd, 2026 [September 2nd, 2026]
- UC Berkeley Announces New Professional Graduate Degree in AI and Machine Learning - University of California, Berkeley - August 25th, 2026 [August 25th, 2026]
- DedeepyaYarraand the rise of Trustworthy AI: Where Machine Learning meets cybersecurity - India.com - August 25th, 2026 [August 25th, 2026]
- Machine learning smooths the road from idea to real-world climate impact - EurekAlert! - August 18th, 2026 [August 18th, 2026]
- Chris Latham Interviews Henry Zelikovsky, Founder & CEO of Softlab360: Successful Applications of AI/Machine Learning in Wealth Management -... - August 18th, 2026 [August 18th, 2026]
- Integrated data and machine learning transform lung cancer diagnosis and treatment - Bioengineer.org - August 18th, 2026 [August 18th, 2026]
- Machine learning accelerates climate solutions from ideas to real-world impact - Bioengineer.org - August 18th, 2026 [August 18th, 2026]
- Identification of weight loss predictors using machine learning approaches in adolescents with obesity - Nature - August 16th, 2026 [August 16th, 2026]
- Quantitative Hedge Fund Strategies: The Machine Learning Revolution of 2026 - rebellionresearch.com - August 16th, 2026 [August 16th, 2026]
- Healthcare Machine Learning Hits Production Scale as Governance Falls Behind, Black Book's Fourth Annual Report Finds - bhpioneer.com - August 16th, 2026 [August 16th, 2026]
- Machine Learning Identifies Predictors of Weight Loss in Adolescents With Obesity - Bioengineer.org - August 16th, 2026 [August 16th, 2026]
- How AI is changing hurricane forecasting as scientists track storms with machine learning - Gulf Coast News and Weather - August 12th, 2026 [August 12th, 2026]
- Scalable prediction of suicidal risk in university students: a three steps machine learning approach in university settings - Nature - August 12th, 2026 [August 12th, 2026]
- Identification of critical brain regions for young adults with obesity and their relationships with impulsivity using machine learning based on... - August 12th, 2026 [August 12th, 2026]
- UNIVERSITY OF ALBERTA Drones and machine learning team up to map forest soil health - Education News Canada - August 12th, 2026 [August 12th, 2026]
- Meet Millie Pradawong, the 14-year-old Virginia student using machine learning and CRISPR to make microal - The Times of India - August 7th, 2026 [August 7th, 2026]
- UWs Machine Learning for High School Teachers Workshop Enriches Classrooms - University of Wyoming - August 7th, 2026 [August 7th, 2026]
- Assessment and pathways of the energy production revolution in the Yellow River Basin, China towards carbon peaking: a machine learning approach -... - August 7th, 2026 [August 7th, 2026]
- TN Agri Budget: Govt bets on AI, Machine Learning to deliver real-time assistance to farmers - ThePrint - August 7th, 2026 [August 7th, 2026]
- Machine Learning Identifies Cognitive Impairment From Patient Speech - Psychiatry Advisor - August 5th, 2026 [August 5th, 2026]
- The Evolution of AI and Machine Learning: Powering the Future of Energy - JPT Homepage - August 5th, 2026 [August 5th, 2026]
- How Machine Learning Is Reshaping Extended Detection and Response - Technology Org - August 5th, 2026 [August 5th, 2026]
- AI and machine learning roles boost Indias white-collar recruitment - Staffing Industry Analysts - August 5th, 2026 [August 5th, 2026]
- Machine learning narrows search for additional particles in the Higgs boson family - Phys.org - July 24th, 2026 [July 24th, 2026]
- F1 in Belgium: Machine learning algorithms are ruining the sport - Ars Technica - July 24th, 2026 [July 24th, 2026]
- Researchers use AI and machine learning to design two new promising blue TADF OLED emitters - OLED-Info - July 24th, 2026 [July 24th, 2026]
- Machine learning professor breaks down OpenAI model's hack of another AI company - CBS News - July 24th, 2026 [July 24th, 2026]
- Barlast Tests Folk Tradition and Machine Learning On Imitation Game - World Music Central - July 24th, 2026 [July 24th, 2026]
- Predicting Outcomes with Machine Learning | Mathematical Sciences | College of Arts & Sciences - University of Delaware - July 6th, 2026 [July 6th, 2026]
- Machine Learning in Public Health: A 3-day Intensive Workshop - American Public Health Association - July 6th, 2026 [July 6th, 2026]
- Tunable band-stop photodetection with machine learning-enabled broadband spectral adaptation - Nature - July 3rd, 2026 [July 3rd, 2026]
- Basic machine learning with lessR : Easy, simple, and free - Open Access Government - July 3rd, 2026 [July 3rd, 2026]
- QuadSci Named Machine Learning Company of the Year - MarTech Cube - July 3rd, 2026 [July 3rd, 2026]
- From Conventional to Intelligent Triage: A Systematic Review of Artificial Intelligence and Machine Learning Applications in Emergency Departments -... - July 3rd, 2026 [July 3rd, 2026]
- On Robustness and Chain-of-Thought Consistency of RL-Finetuned VLMs - Apple Machine Learning Research - July 3rd, 2026 [July 3rd, 2026]
- Improving Wildfire Prediction with Machine Learning and Firebreaks - University of Reading - July 3rd, 2026 [July 3rd, 2026]
- A 3X Leader for the Agentic Era: DataRobot Named a Leader Again in the Gartner Magic Quadrant for Data Science and Machine Learning Platforms -... - June 24th, 2026 [June 24th, 2026]
- A 3X Leader for the Agentic Era: DataRobot Named a Leader Again in the Gartner Magic Quadrant for Data Science and Machine Learning Platforms - Yahoo... - June 24th, 2026 [June 24th, 2026]
- Undergrads gain hands-on machine learning experience in summer program - The Pennsylvania State University - June 24th, 2026 [June 24th, 2026]
- Python and Machine Learning: Why the Two Skills Are Increasingly Inseparable - BNO News - June 24th, 2026 [June 24th, 2026]
- Domino Data Lab Named a Visionary for the Third Consecutive Year in the 2026 Gartner Magic Quadrant for AI Platforms for Data Science and Machine... - June 24th, 2026 [June 24th, 2026]
- Machine Learning Boosts Smart Thermochromic Window Efficiency - Bioengineer.org - June 24th, 2026 [June 24th, 2026]
- A.I. VS HUMAN ROAST BATTLE to Pit Machine Learning Against Live Rapper in SF - BroadwayWorld - June 16th, 2026 [June 16th, 2026]
- Machine learning gives the U.S. a 1% chance of winning the World Cup final in its own backyard - Fortune - June 16th, 2026 [June 16th, 2026]
- Machine Learning Reveals Genes That Help Yeasts Resist Stress - Department of Energy (.gov) - June 16th, 2026 [June 16th, 2026]
- Machine Learning Reveals AED Impact on LGG Prognosis - Bioengineer.org - June 16th, 2026 [June 16th, 2026]
- Introducing the Third Generation of Apples Foundation Models - Apple Machine Learning Research - June 12th, 2026 [June 12th, 2026]
- Machine learning model predicts T2D risk up to 10 years before onset - Managed Healthcare Executive - June 12th, 2026 [June 12th, 2026]
- GPU as a Service Market to Reach USD 14.4 Billion by 2033 at 16.0% CAGR, Fueled by Generative AI, Machine Learning, and Cloud Infrastructure Expansion... - June 12th, 2026 [June 12th, 2026]
- Machine learning-guided design of mechanoadaptive bioglues for multitissue trauma and first-aid applications - Nature - June 12th, 2026 [June 12th, 2026]
- OUCRU scientists are using machine learning to forecast the next dengue outbreak - tropicalmedicine.ox.ac.uk - June 12th, 2026 [June 12th, 2026]
- IIT Roorkee invites applications for 11th Batch of Data Science, Machine Learning & Generative AI Programme - Elets Technomedia - June 12th, 2026 [June 12th, 2026]
- RAG Is Not Machine Learning, and the ML Toolkit Solves the Wrong Problem - Towards Data Science - June 3rd, 2026 [June 3rd, 2026]
- A reality check on the AI jobs hysteria - Machine Learning Week US - June 3rd, 2026 [June 3rd, 2026]
- STMicroelectronics Releases Vibration Sensor With Integrated Machine Learning for Industrial Monitoring - geneonline.com - June 3rd, 2026 [June 3rd, 2026]
- NAVER LABS Europe is offering a 2026 Research Internship in Large Language Models, focusing on AI Alignment, Controlled Generation, and Machine... - May 29th, 2026 [May 29th, 2026]
- Q&A: A Machine-Learning-Based Tool to Enhance Clinical Care of Patients With Multiple Sclerosis - Physician's Weekly - May 29th, 2026 [May 29th, 2026]
- Evaluating the Diagnostic Performance of AI and Machine Learning in Sickle Cell Disease Detection: A Systematic Review - Cureus - May 29th, 2026 [May 29th, 2026]
- HTC-19 Update: Artificial Intelligence and Machine Learning - Chromatography Online - May 29th, 2026 [May 29th, 2026]
- Multimodal phenotypic classification of generalized anxiety and panic using structural MRI data and psychosocial factors: machine learning results... - May 29th, 2026 [May 29th, 2026]
- Machine Learning Personalizes Depression Treatment with the Help of Wearable Technology - UC San Diego Today - May 27th, 2026 [May 27th, 2026]
- How Machine Learning Makes Complex Knowledge Useable in Real-World Conditions - Supply & Demand Chain Executive - May 25th, 2026 [May 25th, 2026]
- How Airbnbs machine-learning tools aim to prevent Memorial Day weekend parties in Las Vegas - FOX5 Vegas - May 25th, 2026 [May 25th, 2026]
- Artificial Intelligence and Machine Learning in Hospital Quality Management, Patient Safety, and Accreditation Readiness: A Systematic Review and... - May 25th, 2026 [May 25th, 2026]
- Machine learning accelerates analysis of fusion materials - Technology Org - May 25th, 2026 [May 25th, 2026]
- Dr. Kaveh Heidary Presents Innovations in AI, Machine Learning and Multispectral Imaging - aamu.edu - May 25th, 2026 [May 25th, 2026]
- Comparison of Prognostic Performance Between a Machine Learning Model and Manually Measured Grey-White-Matter Ratio on Early Brain Computed Tomography... - May 25th, 2026 [May 25th, 2026]
- Machine learning proves that graphene is hydrophobic - Phys.org - May 13th, 2026 [May 13th, 2026]