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.3.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.3-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wronai-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 f289bd4646e5617f45dfbe1a4dd43b5fc5cd826a5b116f23c3deaf22fa4d25b8
MD5 b2fa38e9791a0c28874346611eb90b21
BLAKE2b-256 9d557bafe647f9f188862f83cc9b6766f2b52f3b86108bc165b5185df1471bd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wronai-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 76e85befb5634c335136d33ce32ef74ee4b67090cfa780209c99a4dff6ff1c55
MD5 d88cdcb50649cf8356a76c7a8ac06524
BLAKE2b-256 e29af16a104f7b38aa17d3a5675c07b0669f455cc00c003de211c66cea8f256c

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