Instructions to use komrxn/LegAI_beta_v0.2_Q8_0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use komrxn/LegAI_beta_v0.2_Q8_0 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf komrxn/LegAI_beta_v0.2_Q8_0 # Run inference directly in the terminal: llama cli -hf komrxn/LegAI_beta_v0.2_Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf komrxn/LegAI_beta_v0.2_Q8_0 # Run inference directly in the terminal: llama cli -hf komrxn/LegAI_beta_v0.2_Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf komrxn/LegAI_beta_v0.2_Q8_0 # Run inference directly in the terminal: ./llama-cli -hf komrxn/LegAI_beta_v0.2_Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf komrxn/LegAI_beta_v0.2_Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf komrxn/LegAI_beta_v0.2_Q8_0
Use Docker
docker model run hf.co/komrxn/LegAI_beta_v0.2_Q8_0
- LM Studio
- Jan
- Ollama
How to use komrxn/LegAI_beta_v0.2_Q8_0 with Ollama:
ollama run hf.co/komrxn/LegAI_beta_v0.2_Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use komrxn/LegAI_beta_v0.2_Q8_0 with Docker Model Runner:
docker model run hf.co/komrxn/LegAI_beta_v0.2_Q8_0
- Lemonade
How to use komrxn/LegAI_beta_v0.2_Q8_0 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull komrxn/LegAI_beta_v0.2_Q8_0
Run and chat with the model
lemonade run user.LegAI_beta_v0.2_Q8_0-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
license: other library_name: transformers
📝 LegAI: Legal Agreement Analyzer | Анализатор Юридических Договоров
LegAI is an AI-powered model tailored to analyze legal contracts and verify their compliance with the Civil Code of the Republic of Uzbekistan (Гражданский кодекс Республики Узбекистан - ГК РУз). The model identifies missing sections, detects formatting issues, and provides references to relevant articles of the Civil Code.
LegAI — это ИИ-модель, предназначенная для анализа юридических договоров на соответствие Гражданскому кодексу Республики Узбекистан (ГК РУз). Модель выявляет отсутствующие разделы, ошибки в оформлении и предоставляет ссылки на соответствующие статьи ГК РУз.
🚀 Features | Возможности
- ✅ Automated Contract Analysis | Автоматический анализ договоров: Detects missing or incorrectly formatted sections.
- 📄 Compliance Checking | Проверка соответствия: Provides references to GК RUz articles.
- 🌍 Multi-language Support | Поддержка нескольких языков: Russian, English, and Uzbek.
- 🧠 Built-in System Prompt | Встроенный системный промпт: Ensures consistent and accurate analysis.
- 📝 Placeholder Handling | Обработка плейсхолдеров: Recognizes fields like
___and evaluates accordingly.
📝 Embedded System Prompt | Встроенный системный промпт
"Ты – LegAI, эксперт в области анализа юридических договоров. Твоя задача – определить корректность договора и указать на возможные нарушения с ссылками на соответствующие статьи Гражданского кодекса Республики Узбекистан (ГК РУз). Анализ должен учитывать обязательные элементы договора в соответствии с нормативными документами по договорам купли-продажи и поставки товаров."
"You are LegAI, an expert in analyzing legal agreements. Your task is to assess the contract’s correctness and highlight potential violations with references to the Civil Code of the Republic of Uzbekistan (ГК РУз). The analysis must consider all essential contract elements as defined by sales and supply agreements regulations."
📂 Repository Structure | Структура репозитория
├── config.json # Model configuration | Конфигурация модели
├── tokenizer.json # Tokenizer with embedded chat template | Токенизатор с шаблоном чата
├── generation_config.json # Generation parameters | Параметры генерации
├── tokenizer_config.json # Tokenizer settings | Настройки токенизатора
├── DeepSeek-R1-Distill-Qwen-14B-Q8_0.gguf # Quantized model file | Квантованная модель
├── README.md # Documentation | Документация
└── .gitattributes # LFS tracking | Отслеживание больших файлов
🔒 License | Лицензия
License: Proprietary — This model is provided for commercial use under proprietary terms. Redistribution or modification without explicit permission is prohibited.
Лицензия: Proprietary — Эта модель предоставляется для коммерческого использования на правах собственности. Распространение или модификация без разрешения запрещены.
📝 Notes | Примечания
⚠️ Ensure you have git-lfs installed for handling large files.
🧩 The model is optimized for contracts under Uzbekistani jurisdiction.
📄 Placeholder fields (e.g., ___) are evaluated based on the embedded prompt.
🏆 Citation | Цитирование
If you use LegAI in your research or project, please cite:
Если вы используете LegAI в своих проектах или исследованиях, пожалуйста, укажите ссылку:
bibtex
Копировать
Редактировать
@misc{LegAI2025,
title={LegAI: Legal Agreement Analyzer},
author={Khakimov Komron},
year={2025},
url={https://huggingface.co/komrxn/LegAI_beta_v0.12}
}
📬 Contact | Контакты
Developed by Komron Khakimov | Разработано Хакимов Комрон
📧 komronkhakimov17@gmail.com
🌐 Hugging Face Profile
- Downloads last month
- 9
We're not able to determine the quantization variants.