PraisonAI 2.0.12__cp311-cp311-macosx_15_0_arm64.whl → 2.2.16__cp311-cp311-macosx_15_0_arm64.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.
Potentially problematic release.
This version of PraisonAI might be problematic. Click here for more details.
- praisonai/README.md +5 -0
- praisonai/agents_generator.py +83 -44
- praisonai/api/call.py +3 -3
- praisonai/auto.py +1 -1
- praisonai/cli.py +151 -16
- praisonai/deploy.py +1 -1
- praisonai/inbuilt_tools/__init__.py +1 -1
- praisonai/public/praison-ai-agents-architecture-dark.png +0 -0
- praisonai/public/praison-ai-agents-architecture.png +0 -0
- praisonai/setup/setup_conda_env.sh +55 -22
- praisonai/train.py +442 -156
- praisonai/train_vision.py +306 -0
- praisonai/ui/agents.py +822 -0
- praisonai/ui/callbacks.py +57 -0
- praisonai/ui/code.py +4 -2
- praisonai/ui/colab.py +474 -0
- praisonai/ui/colab_chainlit.py +81 -0
- praisonai/ui/config/chainlit.md +1 -1
- praisonai/ui/realtime.py +65 -10
- praisonai/ui/sql_alchemy.py +6 -5
- praisonai/ui/tools.md +133 -0
- praisonai/upload_vision.py +140 -0
- praisonai-2.2.16.dist-info/METADATA +103 -0
- {praisonai-2.0.12.dist-info → praisonai-2.2.16.dist-info}/RECORD +26 -29
- {praisonai-2.0.12.dist-info → praisonai-2.2.16.dist-info}/WHEEL +1 -1
- praisonai/ui/config/.chainlit/config.toml +0 -120
- praisonai/ui/config/.chainlit/translations/bn.json +0 -231
- praisonai/ui/config/.chainlit/translations/en-US.json +0 -229
- praisonai/ui/config/.chainlit/translations/gu.json +0 -231
- praisonai/ui/config/.chainlit/translations/he-IL.json +0 -231
- praisonai/ui/config/.chainlit/translations/hi.json +0 -231
- praisonai/ui/config/.chainlit/translations/kn.json +0 -231
- praisonai/ui/config/.chainlit/translations/ml.json +0 -231
- praisonai/ui/config/.chainlit/translations/mr.json +0 -231
- praisonai/ui/config/.chainlit/translations/ta.json +0 -231
- praisonai/ui/config/.chainlit/translations/te.json +0 -231
- praisonai/ui/config/.chainlit/translations/zh-CN.json +0 -229
- praisonai-2.0.12.dist-info/LICENSE +0 -20
- praisonai-2.0.12.dist-info/METADATA +0 -498
- {praisonai-2.0.12.dist-info → praisonai-2.2.16.dist-info}/entry_points.txt +0 -0
|
@@ -11,6 +11,38 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
|
11
11
|
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
12
12
|
# Linux
|
|
13
13
|
MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"
|
|
14
|
+
|
|
15
|
+
# Install libcurl development package if not present (Debian based)
|
|
16
|
+
if command -v dpkg &> /dev/null; then
|
|
17
|
+
if ! dpkg -s libcurl4-openssl-dev &> /dev/null; then
|
|
18
|
+
echo "libcurl4-openssl-dev is not installed. Installing..."
|
|
19
|
+
sudo apt-get update
|
|
20
|
+
sudo apt-get install -y libcurl4-openssl-dev
|
|
21
|
+
else
|
|
22
|
+
echo "libcurl4-openssl-dev is already installed."
|
|
23
|
+
fi
|
|
24
|
+
else
|
|
25
|
+
echo "Non-Debian based Linux detected. Please ensure libcurl development libraries are installed."
|
|
26
|
+
fi
|
|
27
|
+
|
|
28
|
+
# Check if ollama is installed and executable; if not, install it
|
|
29
|
+
if ! command -v ollama &> /dev/null; then
|
|
30
|
+
echo "Ollama is not installed. Installing Ollama..."
|
|
31
|
+
curl -fsSL https://ollama.com/install.sh | sh
|
|
32
|
+
|
|
33
|
+
# Generate SSH key non-interactively only if it doesn't already exist
|
|
34
|
+
if [ ! -f ~/.ssh/id_ed25519 ]; then
|
|
35
|
+
echo "Generating SSH key for Ollama..."
|
|
36
|
+
ssh-keygen -t ed25519 -N "" -f ~/.ssh/id_ed25519 -q
|
|
37
|
+
else
|
|
38
|
+
echo "SSH key ~/.ssh/id_ed25519 already exists. Skipping generation."
|
|
39
|
+
fi
|
|
40
|
+
echo "Copying SSH key to /usr/share/ollama/.ollama..."
|
|
41
|
+
sudo cp ~/.ssh/id_ed25519 /usr/share/ollama/.ollama
|
|
42
|
+
else
|
|
43
|
+
echo "Ollama is already installed."
|
|
44
|
+
fi
|
|
45
|
+
|
|
14
46
|
elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
|
|
15
47
|
# Windows
|
|
16
48
|
MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe"
|
|
@@ -21,12 +53,12 @@ else
|
|
|
21
53
|
exit 1
|
|
22
54
|
fi
|
|
23
55
|
|
|
24
|
-
# Check if conda is
|
|
56
|
+
# Check if conda is installed
|
|
25
57
|
if ! command -v conda &> /dev/null; then
|
|
26
58
|
echo "Conda is not installed. Installing Miniconda..."
|
|
27
|
-
wget $MINICONDA_URL -O ~/miniconda.sh
|
|
28
|
-
bash ~/miniconda.sh -b -p $HOME/miniconda
|
|
29
|
-
source $HOME/miniconda/bin/activate
|
|
59
|
+
wget "$MINICONDA_URL" -O ~/miniconda.sh
|
|
60
|
+
bash ~/miniconda.sh -b -p "$HOME/miniconda"
|
|
61
|
+
source "$HOME/miniconda/bin/activate"
|
|
30
62
|
conda init
|
|
31
63
|
else
|
|
32
64
|
echo "Conda is already installed."
|
|
@@ -34,39 +66,40 @@ fi
|
|
|
34
66
|
|
|
35
67
|
# Create and activate the Conda environment
|
|
36
68
|
ENV_NAME="praison_env"
|
|
37
|
-
if conda info --envs | grep -q $ENV_NAME; then
|
|
69
|
+
if conda info --envs | grep -q "$ENV_NAME"; then
|
|
38
70
|
echo "Environment $ENV_NAME already exists. Recreating..."
|
|
39
|
-
conda env remove -y -n $ENV_NAME
|
|
71
|
+
conda env remove -y -n "$ENV_NAME"
|
|
40
72
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
41
|
-
|
|
42
|
-
conda create --name $ENV_NAME python=3.10 pytorch=2.3.0 -c pytorch -y
|
|
73
|
+
conda create --name "$ENV_NAME" python=3.10 pytorch=2.3.0 -c pytorch -y
|
|
43
74
|
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
44
|
-
|
|
45
|
-
conda create --name $ENV_NAME python=3.10 pytorch=2.3.0 cudatoolkit=11.8 -c pytorch -c nvidia -y
|
|
75
|
+
conda create --name "$ENV_NAME" python=3.10 pytorch=2.3.0 cudatoolkit=11.8 -c pytorch -c nvidia -y
|
|
46
76
|
fi
|
|
47
|
-
# conda activate $ENV_NAME
|
|
48
77
|
else
|
|
49
78
|
echo "Creating new environment $ENV_NAME..."
|
|
50
79
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
51
|
-
|
|
52
|
-
conda create --name $ENV_NAME python=3.10 pytorch=2.3.0 -c pytorch -y
|
|
80
|
+
conda create --name "$ENV_NAME" python=3.10 pytorch=2.3.0 -c pytorch -y
|
|
53
81
|
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
54
|
-
|
|
55
|
-
conda create --name $ENV_NAME python=3.10 pytorch=2.3.0 cudatoolkit=11.8 -c pytorch -c nvidia -y
|
|
82
|
+
conda create --name "$ENV_NAME" python=3.10 pytorch=2.3.0 cudatoolkit=11.8 -c pytorch -c nvidia -y
|
|
56
83
|
fi
|
|
57
|
-
# conda activate $ENV_NAME
|
|
58
84
|
fi
|
|
59
85
|
|
|
60
|
-
#
|
|
86
|
+
# Activate the environment
|
|
87
|
+
source "$HOME/miniconda/bin/activate" "$ENV_NAME"
|
|
88
|
+
|
|
89
|
+
# Install cmake via conda
|
|
90
|
+
echo "Installing cmake..."
|
|
91
|
+
conda install -y cmake
|
|
61
92
|
|
|
62
|
-
# Get full path of pip
|
|
63
|
-
PIP_FULL_PATH=$(conda run -n $ENV_NAME which pip)
|
|
93
|
+
# Get full path of pip within the activated environment
|
|
94
|
+
PIP_FULL_PATH=$(conda run -n "$ENV_NAME" which pip)
|
|
64
95
|
|
|
65
|
-
# Install other packages
|
|
66
|
-
# Use PIP_FULL_PATH to run pip commands
|
|
96
|
+
# Install other packages using pip
|
|
67
97
|
$PIP_FULL_PATH install --upgrade pip
|
|
68
98
|
$PIP_FULL_PATH install "xformers==0.0.26.post1"
|
|
69
|
-
$PIP_FULL_PATH install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git@
|
|
99
|
+
$PIP_FULL_PATH install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git@53a773e4fbc53a1d96c7ba107e5fe75dab07027b"
|
|
70
100
|
$PIP_FULL_PATH install --no-deps "trl<0.9.0" peft accelerate bitsandbytes
|
|
101
|
+
$PIP_FULL_PATH install unsloth_zoo
|
|
102
|
+
$PIP_FULL_PATH install cut_cross_entropy
|
|
103
|
+
$PIP_FULL_PATH install sentencepiece protobuf datasets huggingface_hub hf_transfer wandb
|
|
71
104
|
|
|
72
105
|
echo "Setup completed successfully!"
|