PraisonAI 2.0.70__cp313-cp313-manylinux_2_39_x86_64.whl → 2.0.72__cp313-cp313-manylinux_2_39_x86_64.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.
- praisonai/cli.py +12 -3
- praisonai/deploy.py +1 -1
- praisonai/train.py +2 -4
- {praisonai-2.0.70.dist-info → praisonai-2.0.72.dist-info}/METADATA +1 -1
- {praisonai-2.0.70.dist-info → praisonai-2.0.72.dist-info}/RECORD +8 -8
- {praisonai-2.0.70.dist-info → praisonai-2.0.72.dist-info}/LICENSE +0 -0
- {praisonai-2.0.70.dist-info → praisonai-2.0.72.dist-info}/WHEEL +0 -0
- {praisonai-2.0.70.dist-info → praisonai-2.0.72.dist-info}/entry_points.txt +0 -0
praisonai/cli.py
CHANGED
|
@@ -189,8 +189,18 @@ class PraisonAI:
|
|
|
189
189
|
package_root = os.path.dirname(os.path.abspath(__file__))
|
|
190
190
|
config_yaml_destination = os.path.join(os.getcwd(), 'config.yaml')
|
|
191
191
|
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
if not os.path.exists(config_yaml_destination):
|
|
193
|
+
config = generate_config(
|
|
194
|
+
model_name=args.model,
|
|
195
|
+
hf_model_name=args.hf,
|
|
196
|
+
ollama_model_name=args.ollama,
|
|
197
|
+
dataset=[{
|
|
198
|
+
"name": args.dataset
|
|
199
|
+
}]
|
|
200
|
+
)
|
|
201
|
+
with open('config.yaml', 'w') as f:
|
|
202
|
+
yaml.dump(config, f, default_flow_style=False, indent=2)
|
|
203
|
+
elif args.model or args.hf or args.ollama or (args.dataset and args.dataset != "yahma/alpaca-cleaned"):
|
|
194
204
|
config = generate_config(
|
|
195
205
|
model_name=args.model,
|
|
196
206
|
hf_model_name=args.hf,
|
|
@@ -202,7 +212,6 @@ class PraisonAI:
|
|
|
202
212
|
with open('config.yaml', 'w') as f:
|
|
203
213
|
yaml.dump(config, f, default_flow_style=False, indent=2)
|
|
204
214
|
else:
|
|
205
|
-
# Load existing config
|
|
206
215
|
with open(config_yaml_destination, 'r') as f:
|
|
207
216
|
config = yaml.safe_load(f)
|
|
208
217
|
|
praisonai/deploy.py
CHANGED
|
@@ -56,7 +56,7 @@ class CloudDeployer:
|
|
|
56
56
|
file.write("FROM python:3.11-slim\n")
|
|
57
57
|
file.write("WORKDIR /app\n")
|
|
58
58
|
file.write("COPY . .\n")
|
|
59
|
-
file.write("RUN pip install flask praisonai==2.0.
|
|
59
|
+
file.write("RUN pip install flask praisonai==2.0.72 gunicorn markdown\n")
|
|
60
60
|
file.write("EXPOSE 8080\n")
|
|
61
61
|
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
|
|
62
62
|
|
praisonai/train.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
2
|
# -*- coding: utf-8 -*-
|
|
3
3
|
"""
|
|
4
|
-
This script finetunes a model using Unsloth
|
|
4
|
+
This script finetunes a model using Unsloth's fast training framework.
|
|
5
5
|
It supports both ShareGPT and Alpaca‑style datasets by converting raw conversation
|
|
6
6
|
data into plain-text prompts using a chat template, then pre‑tokenizing the prompts.
|
|
7
7
|
Extra debug logging is added to help trace the root cause of errors.
|
|
@@ -27,7 +27,7 @@ from functools import partial
|
|
|
27
27
|
#####################################
|
|
28
28
|
def formatting_prompts_func(examples, tokenizer):
|
|
29
29
|
"""
|
|
30
|
-
Converts each example
|
|
30
|
+
Converts each example's conversation into a single plain-text prompt.
|
|
31
31
|
If the example has a "conversations" field, process it as ShareGPT-style.
|
|
32
32
|
Otherwise, assume Alpaca-style data with "instruction", "input", and "output" fields.
|
|
33
33
|
"""
|
|
@@ -513,8 +513,6 @@ class TrainModel:
|
|
|
513
513
|
{system_line}{num_ctx_line}{stop_params}
|
|
514
514
|
"""
|
|
515
515
|
|
|
516
|
-
|
|
517
|
-
|
|
518
516
|
def create_and_push_ollama_model(self):
|
|
519
517
|
modelfile_content = self.prepare_modelfile_content()
|
|
520
518
|
with open("Modelfile", "w") as file:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: PraisonAI
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.72
|
|
4
4
|
Summary: PraisonAI is an AI Agents Framework with Self Reflection. PraisonAI application combines PraisonAI Agents, AutoGen, and CrewAI into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customisation, and efficient human-agent collaboration.
|
|
5
5
|
Author: Mervin Praison
|
|
6
6
|
Requires-Python: >=3.10,<3.13
|
|
@@ -4,8 +4,8 @@ praisonai/agents_generator.py,sha256=j8lYudAr3wlVBQLng3iYL6mfRqx2i9M6wlryxIVRzDA
|
|
|
4
4
|
praisonai/api/call.py,sha256=krOfTCZM_bdbsNuWQ1PijzCHECkDvEi9jIvvZaDQUUU,11035
|
|
5
5
|
praisonai/auto.py,sha256=uLDm8CU3L_3amZsd55yzf9RdBF1uW-BGSx7nl9ctNZ4,8680
|
|
6
6
|
praisonai/chainlit_ui.py,sha256=bNR7s509lp0I9JlJNvwCZRUZosC64qdvlFCt8NmFamQ,12216
|
|
7
|
-
praisonai/cli.py,sha256=
|
|
8
|
-
praisonai/deploy.py,sha256=
|
|
7
|
+
praisonai/cli.py,sha256=cu7Eit5i-UIcEkylDl0iJvrDBrW-ueobHmjwlx8dmQo,25442
|
|
8
|
+
praisonai/deploy.py,sha256=d7nxIqHt2tKwhG9SJ2iJZeQ7CFmF97dEgnHKbTt8JfU,6028
|
|
9
9
|
praisonai/inbuilt_tools/__init__.py,sha256=fai4ZJIKz7-iOnGZv5jJX0wmT77PKa4x2jqyaJddKFA,569
|
|
10
10
|
praisonai/inbuilt_tools/autogen_tools.py,sha256=kJdEv61BTYvdHOaURNEpBcWq8Rs-oC03loNFTIjT-ak,4687
|
|
11
11
|
praisonai/inc/__init__.py,sha256=sPDlYBBwdk0VlWzaaM_lG0_LD07lS2HRGvPdxXJFiYg,62
|
|
@@ -33,7 +33,7 @@ praisonai/setup/setup_conda_env.py,sha256=4QiWrqgEObivzOMwfJgWaCPpUEpB68cQ6lFwVw
|
|
|
33
33
|
praisonai/setup/setup_conda_env.sh,sha256=tU6CeQdOB-Tka21C4qYhaCtVNOzLf1A6jlYEf_DIXuo,4087
|
|
34
34
|
praisonai/setup.py,sha256=0jHgKnIPCtBZiGYaYyTz3PzrJI6nBy55VXk2UctXlDo,373
|
|
35
35
|
praisonai/test.py,sha256=OL-wesjA5JTohr8rtr6kWoaS4ImkJg2l0GXJ-dUUfRU,4090
|
|
36
|
-
praisonai/train.py,sha256=
|
|
36
|
+
praisonai/train.py,sha256=ADuIMICCtnDhcGwmcZK-D_6m-Mjaps8JYRFwD-W0fw0,23598
|
|
37
37
|
praisonai/ui/README.md,sha256=QG9yucvBieVjCjWFzu6hL9xNtYllkoqyJ_q1b0YYAco,1124
|
|
38
38
|
praisonai/ui/agents.py,sha256=1qsWE2yCaQKhuc-1uLHdMfZJeOXzBtp4pe5q7bk2EuA,32813
|
|
39
39
|
praisonai/ui/callbacks.py,sha256=V4_-GjxmjDFmugUZGfQHKtNSysx7rT6i1UblbM_8lIM,1968
|
|
@@ -82,8 +82,8 @@ praisonai/ui/realtimeclient/tools.py,sha256=IJOYwVOBW5Ocn5_iV9pFkmSKR3WU3YpX3kwF
|
|
|
82
82
|
praisonai/ui/sql_alchemy.py,sha256=oekZOXlRGMJ2SuC-lmgMMIzAmvbMg2DWeGTSpOzbVBM,29674
|
|
83
83
|
praisonai/ui/tools.md,sha256=Ad3YH_ZCLMWlz3mDXllQnQ_S5l55LWqLdcZSh-EXrHI,3956
|
|
84
84
|
praisonai/version.py,sha256=ugyuFliEqtAwQmH4sTlc16YXKYbFWDmfyk87fErB8-8,21
|
|
85
|
-
praisonai-2.0.
|
|
86
|
-
praisonai-2.0.
|
|
87
|
-
praisonai-2.0.
|
|
88
|
-
praisonai-2.0.
|
|
89
|
-
praisonai-2.0.
|
|
85
|
+
praisonai-2.0.72.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
|
|
86
|
+
praisonai-2.0.72.dist-info/METADATA,sha256=aJ_lIcbYqQ_PWaPZCFMVC756_jzZrtFTjLbppLr0ktE,21942
|
|
87
|
+
praisonai-2.0.72.dist-info/WHEEL,sha256=OiNztsphQWM3l0xJ9BHQRElMnxzHbt1M68r2N60f8T8,110
|
|
88
|
+
praisonai-2.0.72.dist-info/entry_points.txt,sha256=I_xc6a6MNTTfLxYmAxe0rgey0G-_hbY07oFW-ZDnkw4,135
|
|
89
|
+
praisonai-2.0.72.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|