Unverified Commit ce50305e authored by Aymeric Augustin's avatar Aymeric Augustin Committed by GitHub
Browse files

Merge pull request #2270 from aaugustin/remove-python-2

Remove support for Python 2
parents b6ea0f43 1a948d70
......@@ -14,7 +14,6 @@
# limitations under the License.
""" Auto Model class. """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
......
......@@ -15,7 +15,6 @@
# limitations under the License.
""" BERT model configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
......
......@@ -15,7 +15,6 @@
# limitations under the License.
""" CamemBERT configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
......
......@@ -14,7 +14,6 @@
# limitations under the License.
""" Salesforce CTRL configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
......
......@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
""" DistilBERT model configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
......
......@@ -15,7 +15,6 @@
# limitations under the License.
""" OpenAI GPT-2 configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
......
......@@ -15,7 +15,6 @@
# limitations under the License.
""" MMBT configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
......
......@@ -15,7 +15,6 @@
# limitations under the License.
""" OpenAI GPT configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
......
......@@ -15,7 +15,6 @@
# limitations under the License.
""" RoBERTa configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
......
......@@ -14,7 +14,6 @@
# limitations under the License.
""" T5 model configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
......
......@@ -15,7 +15,6 @@
# limitations under the License.
""" Transformer XL configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
......
......@@ -15,13 +15,11 @@
# limitations under the License.
""" Configuration base class and utilities."""
from __future__ import absolute_import, division, print_function, unicode_literals
import copy
import json
import logging
import os
from io import open
from .file_utils import CONFIG_NAME, cached_path, hf_bucket_url, is_remote_url
......
......@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
""" XLM configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
......
......@@ -15,7 +15,6 @@
# limitations under the License.
""" XLM-RoBERTa configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
......
......@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
""" XLNet configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
......
......@@ -14,7 +14,6 @@
# limitations under the License.
"""Convert ALBERT checkpoint."""
from __future__ import absolute_import, division, print_function
import argparse
import logging
......
......@@ -14,7 +14,6 @@
# limitations under the License.
"""Convert BERT checkpoint."""
from __future__ import absolute_import, division, print_function
import argparse
import logging
......
......@@ -14,11 +14,9 @@
# limitations under the License.
"""Convert OpenAI GPT checkpoint."""
from __future__ import absolute_import, division, print_function
import argparse
import logging
from io import open
import torch
......
......@@ -14,11 +14,9 @@
# limitations under the License.
"""Convert OpenAI GPT checkpoint."""
from __future__ import absolute_import, division, print_function
import argparse
import logging
from io import open
import torch
......
......@@ -14,7 +14,6 @@
# limitations under the License.
""" Convert pytorch checkpoints to TensorFlow """
from __future__ import absolute_import, division, print_function
import argparse
import logging
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment