Hugging Face Transformers v0.6.2stable Released Apr 25, 2019
โš ๏ธ Breaking Change Impact Score: 7/10

Hugging Face Transformers: Better model/tokenizer serialization, relax network connection requirements, new scripts and bug fixes

Source available โ€” automated, not human-reviewed

Component: transformers ยท Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-01.

Breaking-change evidence from the source

  • Breaking changes: - `warmup_linear` method in `OpenAIAdam` and `BertAdam` is now replaced by flexible [schedule classes](https://github.com/huggingface/pytorch-pretrained-BERT#learning-rate-schedules) for linear, cosine and multi-cycles schedules.
Read the original context โ†—
Source flags breaking changes โ€” review applicability
$ python -m pip install 'transformers==0.6.2'
๐Ÿ“„ .MD
โšก Executive Summary (TL;DR)

Hugging Face Transformers v0.6.2. Source highlight: Better serialization for all models and tokenizers (BERT, GPT, GPT-2 and Transformer-XL) with best practices for saving/loading in readme and examples.

Who Does This Impact? (Role-Based Analysis)

๐Ÿ’ป Software Engineers & Devs

Check the source notes against the package and APIs you use before upgrading.

๐Ÿ“Š Product & Engineering Leads

Use the documented changes to assess relevance to your product; release frequency alone is not a quality measure.

โš™๏ธ DevOps & Security

Verify the target version, runtime requirements and rollback procedure in the official documentation.

โš ๏ธ Breaking Changes & Deprecations (1)

  • Breaking changes: - `warmup_linear` method in `OpenAIAdam` and `BertAdam` is now replaced by flexible [schedule classes](https://github.com/huggingface/pytorch-pretrained-BERT#learning-rate-schedules) for linear, cosine and multi-cycles schedules.

โœจ New Features & Capabilities (2)

  • Add BERT language model fine-tuning scripts (@Rocketknight1)
  • Added SST-2 task and remaining GLUE tasks to 'run_classifier.py' (@ananyahjha93, @jplehmann)

๐Ÿ”ง Bug Fixes & Patches (6)

  • add a flag in BertTokenizer to skip basic tokenization (@john-hewitt)
  • Allow tokenization of sequences > 512 (@CatalinVoss)
  • clean up and extend learning rate schedules in BertAdam and OpenAIAdam (@lukovnikov)
  • Update GPT/GPT-2 Loss computation (@CatalinVoss, @thomwolf)
  • Make the TensorFlow conversion tool more robust (@marpaia)
  • fixed BertForMultipleChoice model init and forward pass (@dhpollack)
๐Ÿ“„ View Raw Release Notes (Original Developer Log)
## General updates: - Better serialization for all models and tokenizers (BERT, GPT, GPT-2 and Transformer-XL) with [best practices for saving/loading](https://github.com/huggingface/pytorch-pretrained-BERT#serialization-best-practices) in readme and examples. - Relaxing network connection requirements (fallback on the last downloaded model in the cache when we can't reach AWS to check eTag) ## Breaking changes: - `warmup_linear` method in `OpenAIAdam` and `BertAdam` is now replaced by flexible [schedule classes](https://github.com/huggingface/pytorch-pretrained-BERT#learning-rate-schedules) for linear, cosine and multi-cycles schedules. ## Bug fixes and improvements to the library modules: - add a flag in BertTokenizer to skip basic tokenization (@john-hewitt) - Allow tokenization of sequences > 512 (@CatalinVoss) - clean up and extend learning rate schedules in BertAdam and OpenAIAdam (@lukovnikov) - Update GPT/GPT-2 Loss computation (@CatalinVoss, @thomwolf) - Make the TensorFlow conversion tool more robust (@marpaia) - fixed BertForMultipleChoice model init and forward pass (@dhpollack) - Fix gradient overflow in GPT-2 FP16 training (@SudoSharma) - catch exception if pathlib not installed (@potatochip) - Use Dropout Layer in OpenAIGPTMultipleChoiceHead (@pglock) ## New scripts and improvements to the examples scripts: - Add BERT language model fine-tuning scripts (@Rocketknight1) - Added SST-2 task and remaining GLUE tasks to 'run_classifier.py' (@ananyahjha93, @jplehmann) - GPT-2 generation fixes (@CatalinVoss, @spolu, @dhanajitb, @8enmann, @SudoSharma, @cynthia)