Skip to main content

End-to-end LLM model building, fine-tuning, and deployment toolkit

Project description


license: apache-2.0 base_model:

  • mistralai/Mistral-7B-Instruct-v0.3 pipeline_tag: translation tags:
  • llm
  • devops
  • development
  • polish
  • english
  • python
  • iac

🚀 WronAI - End-to-End LLM Toolkit

PyPI Version Python Version License Tests Code Style Documentation Docker Pulls

A comprehensive toolkit for creating, fine-tuning, and deploying large language models with support for both Polish and English.

🌟 Features

  • Ready-to-use WronAI package - All functionality available through the wronai package
  • Model Management - Easy installation and management of LLM models
  • Multiple Model Support - Works with various models via Ollama
  • Optimizations - 4-bit quantization, LoRA, FP16 support
  • CLI Tools - Command-line interface for all operations
  • Production Ready - Easy deployment with Docker
  • Web Interface - User-friendly Streamlit-based web UI

🚀 Quick Start

Prerequisites

  • Python 3.8+
  • Ollama installed and running
  • CUDA (optional, for GPU acceleration)

Installation

# Install the package
pip install wronai

# Start Ollama (if not already running)
ollama serve &

# Pull the required model (e.g., mistral:7b-instruct)
ollama pull mistral:7b-instruct

Basic Usage

Using Python Package

from wronai import WronAI

# Initialize with default settings
wron = WronAI()

# Chat with the model
response = wron.chat("Explain quantum computing in simple terms")
print(response)

Command Line Interface

# Start interactive chat
wronai chat

# Run a single query
wronai query "Explain quantum computing in simple terms"

Web Interface

# Start the web UI
wronai web

🔧 Model Management

List available models:

ollama list

Pull a model (if not already available):

ollama pull mistral:7b-instruct

🐳 Docker Support

Run with Docker:

docker run -p 8501:8501 wronai/wronai web

🛠️ Development

Installation from Source

# Clone the repository
git clone https://github.com/wronai/llm-demo.git
cd llm-demo

# Install in development mode
pip install -e ".[dev]"

# Install pre-commit hooks
pre-commit install

Running Tests

# Run all tests
pytest

# Run with coverage
pytest --cov=wronai --cov-report=term-missing

🤝 Contributing

Contributions are welcome! Please see our Contributing Guide for details.

📜 License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

📧 Contact

For questions or support, please open an issue on GitHub or contact us at [email protected]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wronai-0.1.4.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wronai-0.1.4-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file wronai-0.1.4.tar.gz.

File metadata

  • Download URL: wronai-0.1.4.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.4 Linux/6.14.9-300.fc42.x86_64

File hashes

Hashes for wronai-0.1.4.tar.gz
Algorithm Hash digest
SHA256 1f20d7f34bc8fe5cb30597c346748a54107255b41a2f2ce0133823a3bae391cd
MD5 6d82d4ae60a46f5e955079ee1c543977
BLAKE2b-256 ca9d4611611dec78c77007431911d0d75b297315256fef3c922d64da4b90d202

See more details on using hashes here.

File details

Details for the file wronai-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: wronai-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.4 Linux/6.14.9-300.fc42.x86_64

File hashes

Hashes for wronai-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 93e06f8af96cc5c98a932a8ce9188fcbbf0a6aa772f06c73692285c627741a0c
MD5 3c1e1da5b29a5015cdbc184efcca9c91
BLAKE2b-256 778d156ea9a50a36478976c970785494490008c7efc0d2a403146e9d5f2a1efa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page