gptmed 0.5.1__tar.gz → 0.5.3__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.
- {gptmed-0.5.1/gptmed.egg-info → gptmed-0.5.3}/PKG-INFO +2 -2
- {gptmed-0.5.1 → gptmed-0.5.3}/README.md +1 -1
- gptmed-0.5.3/gptmed/framework/__init__.py +1 -0
- gptmed-0.5.3/gptmed/framework/cli/__init__.py +8 -0
- gptmed-0.5.3/gptmed/framework/cli/startproject.py +17 -0
- {gptmed-0.5.1 → gptmed-0.5.3/gptmed.egg-info}/PKG-INFO +2 -2
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed.egg-info/SOURCES.txt +3 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/pyproject.toml +10 -8
- {gptmed-0.5.1 → gptmed-0.5.3}/LICENSE +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/MANIFEST.in +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/__init__.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/api.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/configs/__init__.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/configs/config_loader.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/configs/configs.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/configs/train_config.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/configs/training_config.yaml +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/data/__init__.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/data/parsers/__init__.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/data/parsers/medquad_parser.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/data/parsers/text_formatter.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/inference/__init__.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/inference/decoding_utils.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/inference/generation_config.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/inference/generator.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/inference/sampling.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/model/__init__.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/model/architecture/__init__.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/model/architecture/attention.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/model/architecture/decoder_block.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/model/architecture/embeddings.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/model/architecture/feedforward.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/model/architecture/transformer.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/model/configs/__init__.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/model/configs/model_config.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/observability/__init__.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/observability/base.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/observability/callbacks.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/observability/metrics_tracker.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/observability/redis_metrics_storage.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/services/__init__.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/services/device_manager.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/services/training_service.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/tokenizer/__init__.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/tokenizer/tokenize_data.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/tokenizer/train_tokenizer.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/training/__init__.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/training/dataset.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/training/train.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/training/trainer.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/training/utils.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/utils/__init__.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/utils/checkpoints.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed/utils/logging.py +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed.egg-info/dependency_links.txt +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed.egg-info/entry_points.txt +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed.egg-info/requires.txt +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/gptmed.egg-info/top_level.txt +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/requirements.txt +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/setup.cfg +0 -0
- {gptmed-0.5.1 → gptmed-0.5.3}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gptmed
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.3
|
|
4
4
|
Summary: A lightweight GPT-based language model framework for training custom question-answering models on any domain
|
|
5
5
|
Author-email: Sanjog Sigdel <sigdelsanjog@gmail.com>, Sanjog Sigdel <sanjog.sigdel@ku.edu.np>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -438,7 +438,7 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
438
438
|
|
|
439
439
|
## Changelog
|
|
440
440
|
|
|
441
|
-
|
|
441
|
+
[Full Changelog](https://github.com/sigdelsanjog/gptmed/blob/main/CHANGELOG.md)
|
|
442
442
|
|
|
443
443
|
---
|
|
444
444
|
|
|
@@ -389,7 +389,7 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
389
389
|
|
|
390
390
|
## Changelog
|
|
391
391
|
|
|
392
|
-
|
|
392
|
+
[Full Changelog](https://github.com/sigdelsanjog/gptmed/blob/main/CHANGELOG.md)
|
|
393
393
|
|
|
394
394
|
---
|
|
395
395
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# framework package init
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
def startproject(project_name):
|
|
5
|
+
if not project_name.isidentifier():
|
|
6
|
+
print("Invalid project name. Your project name must be a valid Python identifier. Donot use hyphens or spaces. Use underscores instead.")
|
|
7
|
+
sys.exit(1)
|
|
8
|
+
if os.path.exists(project_name):
|
|
9
|
+
print(f"Directory '{project_name}' already exists.")
|
|
10
|
+
sys.exit(1)
|
|
11
|
+
os.makedirs(os.path.join(project_name, "configs"))
|
|
12
|
+
os.makedirs(os.path.join(project_name, "tasks"))
|
|
13
|
+
os.makedirs(os.path.join(project_name, "models"))
|
|
14
|
+
os.makedirs(os.path.join(project_name, "data"))
|
|
15
|
+
with open(os.path.join(project_name, "main.py"), "w") as f:
|
|
16
|
+
f.write("import gptmed\n\n# Your project entrypoint\n")
|
|
17
|
+
print(f"Project '{project_name}' created.")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gptmed
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.3
|
|
4
4
|
Summary: A lightweight GPT-based language model framework for training custom question-answering models on any domain
|
|
5
5
|
Author-email: Sanjog Sigdel <sigdelsanjog@gmail.com>, Sanjog Sigdel <sanjog.sigdel@ku.edu.np>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -438,7 +438,7 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
438
438
|
|
|
439
439
|
## Changelog
|
|
440
440
|
|
|
441
|
-
|
|
441
|
+
[Full Changelog](https://github.com/sigdelsanjog/gptmed/blob/main/CHANGELOG.md)
|
|
442
442
|
|
|
443
443
|
---
|
|
444
444
|
|
|
@@ -21,6 +21,9 @@ gptmed/data/__init__.py
|
|
|
21
21
|
gptmed/data/parsers/__init__.py
|
|
22
22
|
gptmed/data/parsers/medquad_parser.py
|
|
23
23
|
gptmed/data/parsers/text_formatter.py
|
|
24
|
+
gptmed/framework/__init__.py
|
|
25
|
+
gptmed/framework/cli/__init__.py
|
|
26
|
+
gptmed/framework/cli/startproject.py
|
|
24
27
|
gptmed/inference/__init__.py
|
|
25
28
|
gptmed/inference/decoding_utils.py
|
|
26
29
|
gptmed/inference/generation_config.py
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "gptmed"
|
|
7
|
-
version = "0.5.
|
|
7
|
+
version = "0.5.3"
|
|
8
8
|
description = "A lightweight GPT-based language model framework for training custom question-answering models on any domain"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
@@ -75,18 +75,20 @@ gptmed-train = "gptmed.training.train:main"
|
|
|
75
75
|
[tool.setuptools]
|
|
76
76
|
packages = [
|
|
77
77
|
"gptmed",
|
|
78
|
+
"gptmed.configs",
|
|
79
|
+
"gptmed.data",
|
|
80
|
+
"gptmed.data.parsers",
|
|
81
|
+
"gptmed.framework",
|
|
82
|
+
"gptmed.framework.cli",
|
|
83
|
+
"gptmed.inference",
|
|
78
84
|
"gptmed.model",
|
|
79
85
|
"gptmed.model.architecture",
|
|
80
86
|
"gptmed.model.configs",
|
|
81
|
-
"gptmed.
|
|
82
|
-
"gptmed.training",
|
|
87
|
+
"gptmed.observability",
|
|
83
88
|
"gptmed.services",
|
|
84
|
-
"gptmed.
|
|
85
|
-
"gptmed.configs",
|
|
86
|
-
"gptmed.data",
|
|
87
|
-
"gptmed.data.parsers",
|
|
89
|
+
"gptmed.training",
|
|
88
90
|
"gptmed.tokenizer",
|
|
89
|
-
"gptmed.
|
|
91
|
+
"gptmed.utils",
|
|
90
92
|
]
|
|
91
93
|
|
|
92
94
|
[tool.setuptools.package-data]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|