File size: 4,175 Bytes
f302e20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#!/bin/bash
# BeastBullet One-Click Installer
# Sonnet-level AI on Potato Hardware
# By Shrikant Bhosale (Thalaivar)

set -e

echo "════════════════════════════════════════════════════════════════════"
echo "πŸ₯” BeastBullet v1.0 - Premise-Locked Edition"
echo "════════════════════════════════════════════════════════════════════"
echo "Sonnet-level AI reasoning on potato hardware"
echo "91% quality | 96% confidence | Zero hallucinations"
echo ""

# Check prerequisites
echo "πŸ” Checking prerequisites..."

if ! command -v python3 &> /dev/null; then
    echo "❌ Python 3 not found! Please install Python 3.8+"
    exit 1
fi

if ! command -v git &> /dev/null; then
    echo "❌ Git not found! Please install git"
    exit 1
fi

if ! command -v ollama &> /dev/null; then
    echo "❌ Ollama not found!"
    echo "Install from: https://ollama.com"
    echo "Then run this script again"
    exit 1
fi

echo "βœ… All prerequisites found"

# Pull TinyLlama
echo ""
echo "πŸ“₯ Pulling TinyLlama synthesizer..."
ollama pull tinyllama || {
    echo "⚠️  TinyLlama pull failed, but continuing..."
}

# Ask about upgrade
echo ""
read -p "πŸš€ Use stronger synthesizer? (Qwen2.5-7B recommended for best results) [y/N]: " upgrade
if [[ $upgrade =~ ^[Yy]$ ]]; then
    echo "πŸ“₯ Pulling Qwen2.5-7B (this may take a few minutes)..."
    ollama pull qwen2.5:7b
    SYNTH_MODEL="qwen2.5:7b"
else
    SYNTH_MODEL="tinyllama"
fi

# Clone repository
echo ""
echo "πŸ“¦ Cloning BeastBullet repository..."
INSTALL_DIR="$HOME/beastbullet"

if [ -d "$INSTALL_DIR" ]; then
    echo "⚠️  Directory $INSTALL_DIR already exists"
    read -p "Remove and reinstall? [y/N]: " reinstall
    if [[ $reinstall =~ ^[Yy]$ ]]; then
        rm -rf "$INSTALL_DIR"
    else
        echo "Installation cancelled"
        exit 0
    fi
fi

git clone https://huggingface.co/SetMD/beastbullet-experts "$INSTALL_DIR"
cd "$INSTALL_DIR"

# Create config
echo ""
echo "βš™οΈ  Configuring BeastBullet..."
cat > config.json <<EOF
{
    "synthesizer_model": "$SYNTH_MODEL",
    "experts_dir": "experts/",
    "isl_threshold": 0.80,
    "premise_lock_enabled": true,
    "confidence_penalty_per_violation": 0.20
}
EOF

# Create launcher script
cat > beastbullet.sh <<'EOF'
#!/bin/bash
cd "$HOME/beastbullet"
python3 main.py "$@"
EOF
chmod +x beastbullet.sh

# Add to PATH
if [[ ":$PATH:" != *":$HOME/beastbullet:"* ]]; then
    echo 'export PATH="$HOME/beastbullet:$PATH"' >> ~/.bashrc
    echo 'alias beastbullet="$HOME/beastbullet/beastbullet.sh"' >> ~/.bashrc
fi

echo ""
echo "════════════════════════════════════════════════════════════════════"
echo "πŸ† BEASTBULLET INSTALLED SUCCESSFULLY!"
echo "════════════════════════════════════════════════════════════════════"
echo ""
echo "πŸ“ Installation directory: $INSTALL_DIR"
echo "πŸ€– Synthesizer model: $SYNTH_MODEL"
echo ""
echo "πŸš€ Quick Start:"
echo "   cd $INSTALL_DIR"
echo "   python3 main.py"
echo ""
echo "   Or (after restart):"
echo "   beastbullet"
echo ""
echo "πŸ“š Documentation:"
echo "   README.md - Full documentation"
echo "   BEASTBULLET_V1_SPEC.md - Technical specification"
echo "   VICTORY_RUN_*.md - Test results"
echo ""
echo "πŸ”₯ Features:"
echo "   β€’ 18 specialized expert models"
echo "   β€’ Premise-lock validator (zero logic drift)"
echo "   β€’ 91% quality score, 96% confidence"
echo "   β€’ Runs on potato hardware (4GB RAM)"
echo ""
echo "Mind it! 🎯"
echo "════════════════════════════════════════════════════════════════════"