/usr/local/lib/python3.6/site-packages/transformers/commands
NameSizeModeActions
__pycache__/-0755rm
add_new_model.py106640644editdlrm
add_new_model_like.py638010644editdlrm
convert.py78710644editdlrm
download.py18600644editdlrm
env.py33100644editdlrm
lfs.py79480644editdlrm
run.py42490644editdlrm
serving.py80270644editdlrm
train.py63470644editdlrm
transformers_cli.py19560644editdlrm
user.py84150644editdlrm
__init__.py9230644editdlrm
Edit: /usr/local/lib/python3.6/site-packages/transformers/commands/__init__.py (923B)
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from abc import ABC, abstractmethod from argparse import ArgumentParser class BaseTransformersCLICommand(ABC): @staticmethod @abstractmethod def register_subcommand(parser: ArgumentParser): raise NotImplementedError() @abstractmethod def run(self): raise NotImplementedError()