Toggle navigation
Toggle navigation
This project
Loading...
Sign in
graykode
/
commit-autosuggestions
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
graykode
2020-09-09 18:24:49 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7d4d876250ef4754909e55832a594ed298a1d64c
7d4d8762
1 parent
7c50108a
(refactor) fixed relative import paths
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
3 deletions
train/__init__.py
train/lightning_base.py
train/modeling_bart.py
train/modeling_utils.py
train/__init__.py
0 → 100644
View file @
7d4d876
# Copyright 2020-present Tae Hwan Jung
#
# 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
.modeling_bart
import
BartForConditionalGeneration
__all__
=
[
'BartForConditionalGeneration'
]
\ No newline at end of file
train/lightning_base.py
View file @
7d4d876
...
...
@@ -21,7 +21,7 @@ from transformers import (
PretrainedConfig
,
PreTrainedTokenizer
,
)
from
modeling_bart
import
BartForConditionalGeneration
from
.
modeling_bart
import
BartForConditionalGeneration
from
transformers.optimization
import
(
Adafactor
,
...
...
train/modeling_bart.py
View file @
7d4d876
...
...
@@ -41,7 +41,7 @@ from transformers.modeling_outputs import (
Seq2SeqQuestionAnsweringModelOutput
,
Seq2SeqSequenceClassifierOutput
,
)
from
modeling_utils
import
PreTrainedModel
from
.
modeling_utils
import
PreTrainedModel
import
logging
logger
=
logging
.
getLogger
(
__name__
)
# pylint: disable=invalid-name
...
...
train/modeling_utils.py
View file @
7d4d876
...
...
@@ -39,7 +39,7 @@ from transformers.file_utils import (
is_torch_tpu_available
,
replace_return_docstrings
,
)
from
generation_utils
import
GenerationMixin
from
.
generation_utils
import
GenerationMixin
import
logging
logger
=
logging
.
getLogger
(
__name__
)
# pylint: disable=invalid-name
...
...
Please
register
or
login
to post a comment