pytorch-lightning

Форк
0
57 строк · 2.1 Кб
1
# Copyright The Lightning AI team.
2
#
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
# you may not use this file except in compliance with the License.
5
# You may obtain a copy of the License at
6
#
7
#     http://www.apache.org/licenses/LICENSE-2.0
8
#
9
# Unless required by applicable law or agreed to in writing, software
10
# distributed under the License is distributed on an "AS IS" BASIS,
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
import time
15

16
__author__ = "Lightning AI et al."
17
__author_email__ = "pytorch@lightning.ai"
18
__license__ = "Apache-2.0"
19
__copyright__ = f"Copyright (c) 2018-{time.strftime('%Y')}, {__author__}."
20
__homepage__ = "https://github.com/Lightning-AI/lightning"
21
__docs_url__ = "https://lightning.ai/docs/pytorch/stable/"
22
# this has to be simple string, see: https://github.com/pypa/twine/issues/522
23
__docs__ = (
24
    "PyTorch Lightning is the lightweight PyTorch wrapper for ML researchers."
25
    " Scale your models. Write less boilerplate."
26
)
27
__long_docs__ = """
28
Lightning is a way to organize your PyTorch code to decouple the science code from the engineering.
29
 It's more of a style-guide than a framework.
30

31
In Lightning, you organize your code into 3 distinct categories:
32

33
1. Research code (goes in the LightningModule).
34
2. Engineering code (you delete, and is handled by the Trainer).
35
3. Non-essential research code (logging, etc. this goes in Callbacks).
36

37
Although your research/production project might start simple, once you add things like GPU AND TPU training,
38
 16-bit precision, etc, you end up spending more time engineering than researching.
39
 Lightning automates AND rigorously tests those parts for you.
40

41
Overall, Lightning guarantees rigorously tested, correct, modern best practices for the automated parts.
42

43
Documentation
44
-------------
45
- https://lightning.ai/docs/pytorch/en/latest
46
- https://lightning.ai/docs/pytorch/en/stable
47
"""
48

49
__all__ = [
50
    "__author__",
51
    "__author_email__",
52
    "__copyright__",
53
    "__docs__",
54
    "__docs_url__",
55
    "__homepage__",
56
    "__license__",
57
]
58

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.