gptmodel 1.0.6__tar.gz → 1.0.8__tar.gz
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-1.0.6 → gptmodel-1.0.8}/PKG-INFO +5 -5
- {gptmodel-1.0.6 → gptmodel-1.0.8}/gptmodel/gptmodel.py +4 -2
- {gptmodel-1.0.6 → gptmodel-1.0.8}/gptmodel.egg-info/PKG-INFO +5 -5
- gptmodel-1.0.8/gptmodel.egg-info/requires.txt +4 -0
- {gptmodel-1.0.6 → gptmodel-1.0.8}/setup.py +2 -2
- gptmodel-1.0.6/gptmodel.egg-info/requires.txt +0 -4
- {gptmodel-1.0.6 → gptmodel-1.0.8}/LICENSE.txt +0 -0
- {gptmodel-1.0.6 → gptmodel-1.0.8}/gptmodel/__init__.py +0 -0
- {gptmodel-1.0.6 → gptmodel-1.0.8}/gptmodel.egg-info/SOURCES.txt +0 -0
- {gptmodel-1.0.6 → gptmodel-1.0.8}/gptmodel.egg-info/dependency_links.txt +0 -0
- {gptmodel-1.0.6 → gptmodel-1.0.8}/gptmodel.egg-info/top_level.txt +0 -0
- {gptmodel-1.0.6 → gptmodel-1.0.8}/setup.cfg +0 -0
@@ -1,14 +1,14 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: gptmodel
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.8
|
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: torch
|
9
|
-
Requires-Dist: numpy
|
10
|
-
Requires-Dist: tiktoken
|
11
|
-
Requires-Dist: tqdm
|
8
|
+
Requires-Dist: torch
|
9
|
+
Requires-Dist: numpy
|
10
|
+
Requires-Dist: tiktoken
|
11
|
+
Requires-Dist: tqdm
|
12
12
|
Dynamic: author
|
13
13
|
Dynamic: home-page
|
14
14
|
Dynamic: license
|
@@ -340,7 +340,7 @@ class GPTModel:
|
|
340
340
|
'embedding_dim': max((1, int(self.__embedding_dim))) if type(self.__embedding_dim) in (bool, int, float) else -1,
|
341
341
|
'vocab_size': max((0, int(self.__vocab_size))) if type(self.__vocab_size) in (bool, int, float) else 0,
|
342
342
|
'block_size': max((1, int(self.__block_size))) if type(self.__block_size) in (bool, int, float) else -1,
|
343
|
-
'end_tag': str(self.__end_tag) if
|
343
|
+
'end_tag': str(self.__end_tag) if self.__end_tag is not None else '',
|
344
344
|
'number_heads': max((1, int(self.__number_heads))) if type(self.__number_heads) in (bool, int, float) else -1,
|
345
345
|
'number_layers': max((1, int(self.__number_layers))) if type(self.__number_layers) in (bool, int, float) else -1,
|
346
346
|
'dropout': max((0, int(self.dropout))) if type(self.dropout) in (bool, int, float) else 0.1,
|
@@ -375,7 +375,9 @@ class GPTModel:
|
|
375
375
|
for _ in self.__tqdm(range(10), desc='Loading model', leave=False):
|
376
376
|
try: checkpoint = self.__load(model_file, map_location=self.__device)
|
377
377
|
except: checkpoint = self.__load(model_file)
|
378
|
-
else:
|
378
|
+
else:
|
379
|
+
try: checkpoint = self.__load(model_file, map_location=self.__device)
|
380
|
+
except: checkpoint = self.__load(model_file)
|
379
381
|
try: self.__tokenizer = str(checkpoint['tokenizer']).lower().strip()
|
380
382
|
except: self.__tokenizer = 'gpt'
|
381
383
|
try: self.__embedding_dim = max((1, int(checkpoint['embedding_dim']))) if checkpoint['embedding_dim'] != -1 else None
|
@@ -1,14 +1,14 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: gptmodel
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.8
|
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: torch
|
9
|
-
Requires-Dist: numpy
|
10
|
-
Requires-Dist: tiktoken
|
11
|
-
Requires-Dist: tqdm
|
8
|
+
Requires-Dist: torch
|
9
|
+
Requires-Dist: numpy
|
10
|
+
Requires-Dist: tiktoken
|
11
|
+
Requires-Dist: tqdm
|
12
12
|
Dynamic: author
|
13
13
|
Dynamic: home-page
|
14
14
|
Dynamic: license
|
@@ -5,13 +5,13 @@
|
|
5
5
|
# --------------------------> A SAPIENS TECHNOLOGY®️ PRODUCTION) <--------------------------
|
6
6
|
from setuptools import setup, find_packages
|
7
7
|
package_name = 'gptmodel'
|
8
|
-
version = '1.0.
|
8
|
+
version = '1.0.8'
|
9
9
|
setup(
|
10
10
|
name=package_name,
|
11
11
|
version=version,
|
12
12
|
author='SAPIENS TECHNOLOGY',
|
13
13
|
packages=find_packages(),
|
14
|
-
install_requires=['torch
|
14
|
+
install_requires=['torch', 'numpy', 'tiktoken', 'tqdm'],
|
15
15
|
url='https://github.com/sapiens-technology/gptmodel',
|
16
16
|
license='Proprietary Software'
|
17
17
|
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|