prepforge 0.1.0__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.
- major_project/__init__.py +0 -0
- major_project/cli.py +186 -0
- major_project/config.py +17 -0
- major_project/core/__init__.py +0 -0
- major_project/core/config_store.py +20 -0
- major_project/core/model.py +112 -0
- major_project/core/train.py +149 -0
- major_project/core/utils.py +222 -0
- major_project/gui_app.py +227 -0
- major_project/streamlit_app.py +171 -0
- major_project/tui_app.py +241 -0
- prepforge-0.1.0.dist-info/METADATA +149 -0
- prepforge-0.1.0.dist-info/RECORD +17 -0
- prepforge-0.1.0.dist-info/WHEEL +5 -0
- prepforge-0.1.0.dist-info/entry_points.txt +2 -0
- prepforge-0.1.0.dist-info/licenses/LICENSE +21 -0
- prepforge-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: prepforge
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: AI Exam Preparation System with TUI, GUI, and Streamlit
|
|
5
|
+
Author: Himanshu Arora
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: transformers
|
|
13
|
+
Requires-Dist: peft
|
|
14
|
+
Requires-Dist: rich
|
|
15
|
+
Requires-Dist: prompt_toolkit
|
|
16
|
+
Provides-Extra: gui
|
|
17
|
+
Requires-Dist: PyQt6; extra == "gui"
|
|
18
|
+
Provides-Extra: web
|
|
19
|
+
Requires-Dist: streamlit; extra == "web"
|
|
20
|
+
Provides-Extra: train
|
|
21
|
+
Requires-Dist: datasets; extra == "train"
|
|
22
|
+
Requires-Dist: trl; extra == "train"
|
|
23
|
+
Provides-Extra: gpu
|
|
24
|
+
Requires-Dist: torch; extra == "gpu"
|
|
25
|
+
Provides-Extra: fast
|
|
26
|
+
Requires-Dist: unsloth; extra == "fast"
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
|
|
29
|
+
# 🎓 PrepForge
|
|
30
|
+
|
|
31
|
+
PrepForge is an AI-powered exam preparation system with multiple interfaces and support for base LLMs and LoRA adapters.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 📦 Installation
|
|
36
|
+
|
|
37
|
+
Install directly from PyPI:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pip install prepforge
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
PyPI: https://pypi.org/project/prepforge/0.1.0/
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## ✨ Features
|
|
48
|
+
|
|
49
|
+
- 🖥 Terminal UI (TUI)
|
|
50
|
+
- 🪟 Desktop GUI (PyQt6)
|
|
51
|
+
- 🌐 Web interface (Streamlit)
|
|
52
|
+
- 🧠 Supports base models and LoRA adapters
|
|
53
|
+
- 🏋️ Built-in training pipeline (QLoRA / Unsloth)
|
|
54
|
+
- ⚡ Offline inference support
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 🚀 Usage
|
|
59
|
+
|
|
60
|
+
### Terminal Interface (TUI)
|
|
61
|
+
```bash
|
|
62
|
+
prepforge run tui
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Desktop GUI
|
|
66
|
+
```bash
|
|
67
|
+
prepforge run gui
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Web Interface
|
|
71
|
+
```bash
|
|
72
|
+
prepforge run streamlit
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## ⚙️ Configuration
|
|
78
|
+
|
|
79
|
+
Set default model:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
prepforge config --model <model_name_or_path>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Set LoRA adapter:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
prepforge config --lora <adapter_path>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## 🏋️ Training
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
prepforge train \
|
|
97
|
+
--dataset dataset.jsonl \
|
|
98
|
+
--epochs 3 \
|
|
99
|
+
--output trained_model
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## 📊 Dataset Format
|
|
105
|
+
|
|
106
|
+
```json
|
|
107
|
+
{
|
|
108
|
+
"instruction": "Explain Newton's laws",
|
|
109
|
+
"input": "",
|
|
110
|
+
"output": "Newton's laws describe motion..."
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## 📂 Project Structure
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
major_project/
|
|
120
|
+
├── core/
|
|
121
|
+
│ ├── model.py
|
|
122
|
+
│ ├── train.py
|
|
123
|
+
│ └── utils.py
|
|
124
|
+
├── tui_app.py
|
|
125
|
+
├── gui_app.py
|
|
126
|
+
├── streamlit_app.py
|
|
127
|
+
├── cli.py
|
|
128
|
+
├── config.py
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## ⚠️ Notes
|
|
134
|
+
|
|
135
|
+
- Models are not bundled with the package
|
|
136
|
+
- Users must download base models separately
|
|
137
|
+
- GPU (CUDA) is recommended for best performance
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## 🧑💻 Author
|
|
142
|
+
|
|
143
|
+
Himanshu Arora
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## 📜 License
|
|
148
|
+
|
|
149
|
+
MIT License
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
major_project/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
major_project/cli.py,sha256=4Z0BNnva0PWad8QaDi-rGEPCpqmqNwCDBWFj29P6yk0,5061
|
|
3
|
+
major_project/config.py,sha256=lDQPgxLjX5NIdAcw5EdBQK5bn7qyx2K9NNNCgG3YKtw,480
|
|
4
|
+
major_project/gui_app.py,sha256=1cB-V2kBPica9dhbOkuNnPZn_Lub-121tzvRSCE5q28,6255
|
|
5
|
+
major_project/streamlit_app.py,sha256=HVieTpFj3gNBYa8EnNOWS0wjgKDpjDVf5JSDEZt1-Oo,4422
|
|
6
|
+
major_project/tui_app.py,sha256=Vu0YxULVr7kVXUevJ0XMjz9J7LlCMbkfW5jxR481PXk,6904
|
|
7
|
+
major_project/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
major_project/core/config_store.py,sha256=qFhjPfC4Sjzk_v8dOGI_Mg-Y2fa47lVkgZi35vZEX20,429
|
|
9
|
+
major_project/core/model.py,sha256=gwGsnfxO671XqDKpPPwVxiNt-ZBosiDKHCvOfdBIQ9Y,3042
|
|
10
|
+
major_project/core/train.py,sha256=63h78yRmUBTpIvbH9B7PjVyxRac539SAdCXeADd_2u0,3985
|
|
11
|
+
major_project/core/utils.py,sha256=p-t3IUjLdyd8T0WGJAw_0ZWbqbxKjczaAF5PaFCEhls,4707
|
|
12
|
+
prepforge-0.1.0.dist-info/licenses/LICENSE,sha256=_hK6cj4OA6D26MHQDfwq19BsOMoDljgu1SGBpKtbkKs,1071
|
|
13
|
+
prepforge-0.1.0.dist-info/METADATA,sha256=AHxlcv80qqt-uVBGFMzKigjgdyShDlQBvoYT3WuuW0w,2458
|
|
14
|
+
prepforge-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
15
|
+
prepforge-0.1.0.dist-info/entry_points.txt,sha256=eAIPv_j49PGKQglDE_K0cwgTM7qyHbfPkw3oGbb8PdQ,53
|
|
16
|
+
prepforge-0.1.0.dist-info/top_level.txt,sha256=u76B3FLhB-plat2UyzqEmwKRpYjMHPlVcgcXOhiTP-I,14
|
|
17
|
+
prepforge-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Himanshu Arora
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
major_project
|