instruct mode added to pipiline

This commit is contained in:
Your Name
2025-08-28 16:46:24 +00:00
parent 78d519efbf
commit 77c563f358
16 changed files with 19404 additions and 161 deletions
+46
View File
@@ -0,0 +1,46 @@
#!/usr/bin/env bash
set -e # exit on error
# Step 1: Download Miniconda installer
echo ">>> Downloading Miniconda..."
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
# Step 2: Run the installer
echo ">>> Installing Miniconda..."
bash ~/miniconda.sh -b -p $HOME/miniconda
# Step 3: Initialize conda for bash
echo ">>> Initializing Conda..."
eval "$($HOME/miniconda/bin/conda shell.bash hook)"
# Step 4: Add conda to PATH permanently
if ! grep -q "miniconda/bin" ~/.bashrc; then
echo "export PATH=\$HOME/miniconda/bin:\$PATH" >> ~/.bashrc
fi
source ~/.bashrc
# Step 5: Verify installation
echo ">>> Conda version:"
conda --version
# Step 6: Create environment
echo ">>> Creating environment: llm-env (python=3.10)..."
conda create -n llm-env python=3.10 -y
# Step 7: Activate environment
echo ">>> Activating environment..."
conda activate llm-env
# Step 8: Install dependencies
echo ">>> Installing scikit-learn..."
conda install scikit-learn -y
if [ -f requirements.txt ]; then
echo ">>> Installing Python requirements..."
pip install -r requirements.txt
else
echo ">>> No requirements.txt found, skipping pip install."
fi
echo ">>> Setup complete. To activate your environment run:"
echo "conda activate llm-env"