-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_github.sh
More file actions
executable file
·112 lines (96 loc) · 1.78 KB
/
setup_github.sh
File metadata and controls
executable file
·112 lines (96 loc) · 1.78 KB
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
#!/bin/bash
# GitHub Repository Setup Script
echo "🚀 Setting up MLX Models GitHub Repository"
echo ""
# Navigate to the repo directory
cd /Users/gt/NLLB_Translation/mlx-models-github
# Initialize git if not already done
if [ ! -d ".git" ]; then
echo "📦 Initializing Git repository..."
git init
git branch -M main
else
echo "✅ Git repository already initialized"
fi
# Create .gitignore
echo "📝 Creating .gitignore..."
cat > .gitignore << 'EOF'
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
# Virtual environments
venv/
ENV/
env/
# IDEs
.vscode/
.idea/
*.swp
*.swo
*~
# OS
.DS_Store
Thumbs.db
# Model files (stored on Hugging Face)
*.safetensors
*.bin
*.gguf
*.npz
# Logs
*.log
# Jupyter
.ipynb_checkpoints/
*.ipynb
# Testing
.pytest_cache/
.coverage
htmlcov/
# Temporary files
tmp/
temp/
*.tmp
EOF
# Add all files
echo "➕ Adding files to git..."
git add .
# Create initial commit
echo "💾 Creating initial commit..."
git commit -m "Initial commit: MLX models for Apple Silicon
- PaddleOCR-VL-MLX examples and documentation
- Hunyuan-MT-MLX-Q8 examples and documentation
- Performance benchmarks
- FAQ and guides
"
echo ""
echo "✅ Repository setup complete!"
echo ""
echo "📋 Next steps:"
echo "1. Create a new repository on GitHub: https://github.com/new"
echo "2. Repository name: mlx-models"
echo "3. Description: Production-ready MLX implementations for Apple Silicon"
echo "4. Make it public"
echo "5. Don't initialize with README (we already have one)"
echo ""
echo "Then run these commands:"
echo " git remote add origin https://github.com/gamhtoi/mlx-models.git"
echo " git push -u origin main"
echo ""
echo "🎉 Happy coding!"