gptmodel 1.0.2__py3-none-any.whl → 1.0.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gptmodel/__init__.py +10 -0
- gptmodel/gptmodel.py +1 -1
- {gptmodel-1.0.2.dist-info → gptmodel-1.0.4.dist-info}/METADATA +6 -5
- gptmodel-1.0.4.dist-info/RECORD +7 -0
- gptmodel-1.0.2.dist-info/RECORD +0 -7
- {gptmodel-1.0.2.dist-info → gptmodel-1.0.4.dist-info}/LICENSE.txt +0 -0
- {gptmodel-1.0.2.dist-info → gptmodel-1.0.4.dist-info}/WHEEL +0 -0
- {gptmodel-1.0.2.dist-info → gptmodel-1.0.4.dist-info}/top_level.txt +0 -0
gptmodel/__init__.py
CHANGED
@@ -1 +1,11 @@
|
|
1
|
+
# This is a standard code of a GPT (Generative Pre-trained Transformer) model, developed by Sapiens Technology®️,
|
2
|
+
# which faithfully follows the mathematical structure of the article “Attention Is All You Need” for the construction of the Transformer architecture
|
3
|
+
# used in the pattern recognition of the model that is saved. Some optimizations that do not influence the Transformer architecture
|
4
|
+
# were applied only to facilitate the adjustments of the parameters and variables of the training, saving, loading, fine-tuning and inference of the pre-trained model.
|
5
|
+
# --------------------------> A SAPIENS TECHNOLOGY®️ PRODUCTION) <--------------------------
|
1
6
|
from .gptmodel import *
|
7
|
+
# This is a standard code of a GPT (Generative Pre-trained Transformer) model, developed by Sapiens Technology®️,
|
8
|
+
# which faithfully follows the mathematical structure of the article “Attention Is All You Need” for the construction of the Transformer architecture
|
9
|
+
# used in the pattern recognition of the model that is saved. Some optimizations that do not influence the Transformer architecture
|
10
|
+
# were applied only to facilitate the adjustments of the parameters and variables of the training, saving, loading, fine-tuning and inference of the pre-trained model.
|
11
|
+
# --------------------------> A SAPIENS TECHNOLOGY®️ PRODUCTION) <--------------------------
|
gptmodel/gptmodel.py
CHANGED
@@ -306,7 +306,7 @@ class GPTModel:
|
|
306
306
|
training_metrics['loss'] = loss_item if current_precision >= precision else average_train_loss
|
307
307
|
training_metrics['precision'] = current_precision
|
308
308
|
if progress:
|
309
|
-
description = f'
|
309
|
+
description = f'Finalization of backpropagations... current precision is '+f'{current_precision:.4f}'.ljust(5, '0')+f'; aiming for precision >= {string_precision} in training'
|
310
310
|
self.__tqdm(train_loader, desc=description, unit='it', unit_scale=True, unit_divisor=1000, smoothing=0.1, bar_format=formatted_string).update(len(train_loader))
|
311
311
|
print()
|
312
312
|
break
|
@@ -1,13 +1,14 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: gptmodel
|
3
|
-
Version: 1.0.
|
4
|
-
Home-page: https://github.com/
|
3
|
+
Version: 1.0.4
|
4
|
+
Home-page: https://github.com/sapiens-technology/gptmodel
|
5
5
|
Author: SAPIENS TECHNOLOGY
|
6
6
|
License: Proprietary Software
|
7
7
|
License-File: LICENSE.txt
|
8
|
-
Requires-Dist:
|
9
|
-
Requires-Dist:
|
10
|
-
Requires-Dist:
|
8
|
+
Requires-Dist: tqdm==4.67.1
|
9
|
+
Requires-Dist: numpy==1.25.2
|
10
|
+
Requires-Dist: torch==2.4.1
|
11
|
+
Requires-Dist: tiktoken==0.4.0
|
11
12
|
Dynamic: author
|
12
13
|
Dynamic: home-page
|
13
14
|
Dynamic: license
|
@@ -0,0 +1,7 @@
|
|
1
|
+
gptmodel/__init__.py,sha256=ifnJnBPHcBZwiHgt_mNp9gd1OJYCCHB3bgml6TmKBIw,1358
|
2
|
+
gptmodel/gptmodel.py,sha256=3qbXbCEkXSsakFAuLu6RCacyHhdu9nIHagNriEi9NEE,33414
|
3
|
+
gptmodel-1.0.4.dist-info/LICENSE.txt,sha256=WqB2vIA5tH5lqLTr53yT_oy1m0wYfuvCPQKxdDHWimg,115
|
4
|
+
gptmodel-1.0.4.dist-info/METADATA,sha256=23KkOothlS852QRWKN6xP7BrKj1cLh0SQ723fet3Mps,384
|
5
|
+
gptmodel-1.0.4.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
6
|
+
gptmodel-1.0.4.dist-info/top_level.txt,sha256=585C0QclguIkVPKKPpoeD2FxYAc5n5EAuvJNK4vMeQk,9
|
7
|
+
gptmodel-1.0.4.dist-info/RECORD,,
|
gptmodel-1.0.2.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
gptmodel/__init__.py,sha256=UCXG7pgytIN6ODBWxcfF5tQJkE6uMdzbvvVRDuRsSYs,24
|
2
|
-
gptmodel/gptmodel.py,sha256=GBPnOgY547dZiI3LJfOpCHzbCSq1vzEzoQ_oeMWUxhw,33411
|
3
|
-
gptmodel-1.0.2.dist-info/LICENSE.txt,sha256=WqB2vIA5tH5lqLTr53yT_oy1m0wYfuvCPQKxdDHWimg,115
|
4
|
-
gptmodel-1.0.2.dist-info/METADATA,sha256=rjE3QhfKwdwwaZv7dRw9T5nFGCs6NBg6BpDBj9WcIfA,306
|
5
|
-
gptmodel-1.0.2.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
6
|
-
gptmodel-1.0.2.dist-info/top_level.txt,sha256=585C0QclguIkVPKKPpoeD2FxYAc5n5EAuvJNK4vMeQk,9
|
7
|
-
gptmodel-1.0.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|