Skip to content

ModelCraft is an automated PowerShell script designed to simplify the installation and configuration of Ollama, Open WebUI, and pre-configured AI models. This tool is tailored for developers and AI enthusiasts to get their AI environments up and running quickly with minimal effort.

Notifications You must be signed in to change notification settings

iscloudready/ModelCraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🌟 ModelCraft - Automated AI Model Installation & Configuration

GitHub License PowerShell Docker


🚀 Overview

ModelCraft is an automated PowerShell script designed to simplify the installation and configuration of Ollama, Open WebUI, and pre-configured AI models. This tool is tailored for developers and AI enthusiasts to get their AI environments up and running quickly with minimal effort.

🔹 Key Highlights:

  • 🔹 One-Click Installation: Automates the setup of Ollama, Open WebUI, and required models.
  • 🔹 Pre-Configured Models: Installs models like DeepSeek-R1:8B and qwen2.5:7b.
  • 🔹 Docker Integration: Seamless setup of Open WebUI using Docker.
  • 🔹 Automatic Port Management: Dynamically finds available ports to avoid conflicts.

📉 Features

👉 Automated Ollama Installation: Checks for existing installation and installs if not present.

👉 Open WebUI Setup: Automatically pulls and configures Open WebUI in Docker.

👉 Model Pulling: Automatically pulls AI models like DeepSeek-R1:8B and qwen2.5:7b.

👉 Dynamic Port Allocation: Finds available ports to run services without conflicts.


📊 Prerequisites

  • PowerShell 5.0+ (Pre-installed on Windows 10 and later)
  • Docker Desktop (Ensure Docker is installed and running)

📅 Installation & Setup

1️⃣ Clone the Repository

git clone https://github.com/your-repo/modelcraft.git
cd modelcraft

2️⃣ Run the PowerShell Script

.\Initialize.ps1

This script will:

  1. Check and install Ollama if not already installed.
  2. Set up Open WebUI via Docker.
  3. Pull the specified AI models.

🚧 Script Details

Configuration

The script is pre-configured with default values:

$config = @{
    ollamaInstaller = "https://ollama.com/download/OllamaSetup.exe"
    ollamaPath = "C:\\Program Files\\Ollama\\ollama.exe"
    dockerImage = "ghcr.io/open-webui/open-webui:main"
    containerName = "open-webui"
    webUIPort = 8080
    dataVolume = "open-webui"
    models = @('DeepSeek-R1:8B', 'qwen2.5:7b')
}

Key Functions

  • Install-Ollama: Downloads and installs Ollama.
  • Install-OpenWebUI: Pulls the Open WebUI Docker image and runs the container.
  • Pull-Models: Pulls AI models using Ollama.
  • Get-AvailablePort: Finds an available port for running the WebUI.

🔢 Usage Guide

🔍 Access the Web UI

Once the script completes, access the Open WebUI via your browser:

http://localhost:8080

📊 Manage Models

You can interact with the pulled models via Ollama CLI:

ollama run DeepSeek-R1:8B
ollama run qwen2.5:7b

🔧 Troubleshooting

  • Docker Not Found: Ensure Docker Desktop is installed and running.
  • Port Conflicts: The script dynamically assigns ports. Check if any other application is using port 8080.
  • Manual Model Installation: If model pulling fails, manually run:
ollama pull DeepSeek-R1:8B
ollama pull qwen2.5:7b

👫 Contributing

We welcome contributions! Follow these steps:

  1. Fork the repository.
  2. Create a feature branch:
git checkout -b feature-new-model
  1. Commit your changes:
git commit -m "Add new model support"
  1. Push and submit a pull request:
git push origin feature-new-model

📝 License

This project is MIT Licensed. See the LICENSE file for more details.


📢 Connect with Us

📧 Email: support@modelcraft.ai


ModelCraft simplifies the process of AI model management. Get started now and streamline your AI workflows! 🚀

About

ModelCraft is an automated PowerShell script designed to simplify the installation and configuration of Ollama, Open WebUI, and pre-configured AI models. This tool is tailored for developers and AI enthusiasts to get their AI environments up and running quickly with minimal effort.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published