Bol-AI is a custom conversational AI assistant developed and fine-tuned by Vivek Vijay Dalvi under MAHAVEER AI. This project focuses on delivering a highly optimized, lightweight, and intelligent conversational experience that can run on standard hardware, including mobile devices.
The model has been engineered with a custom identity, enhanced with multilingual datasets (English, Marathi, Hindi), and fine-tuned for superior instruction-following and coding assistance.
Custom AI Personality System: Unique identity and behavior engineered by Vivek Dalvi.
Multilingual Understanding: Natively supports English, Marathi, and Hindi.
Expert Coding Assistance: Optimized for instruction-following in various programming languages.
Ultra-Lightweight & Fast: At just 2.5 GB, it is designed for efficient local deployment on standard hardware.
Privacy-Focused: Runs 100% offline, ensuring user data remains secure.
Mobile Ready: Optimized to run on high-end mobile devices with sufficient RAM.
🧠 Full Model Information
Property
Details
Model Name
Bol-AI
AI Category
Conversational AI Assistant
Developer
Vivek Vijay Dalvi
Organization
MAHAVEER AI
Base Model
MiniCPM-V-4.6 (Heavily Fine-Tuned)
Base Model Developer
OpenBMB
Architecture
Transformer
Parameter Count
~1.7 Billion
Context Length
32,000 Tokens
Model Size
2.42 GB
Quantization
4-bit Optimized (NF4)
Model Format
SafeTensors
Primary Language
English
Supported Languages
English, Marathi, Hindi
License
Apache-2.0
🛠️ Training & Customization
Bol-AI's superior performance is the result of extensive fine-tuning and engineering, including:
Conversational Fine-Tuning: Trained on over 65,000 high-quality instruction rows.
Identity Engineering: Deeply baked identity ensures the model recognizes its creator and purpose.
Response Optimization: Tuned for accuracy, relevance, and consistency.
Multilingual Data Integration: Enhanced with custom datasets for Indian languages.
Behavioral Tuning: Personality and interaction style refined for a professional assistant experience.
💻 System Requirements
Bol-AI is highly optimized to run on a wide range of devices.
Desktop / Laptop
Component
Minimum (CPU-Only)
Recommended (GPU for Speed)
System RAM
8GB
16GB+
GPU VRAM
Not Required
4GB+ (NVIDIA CUDA Recommended)
Storage
5GB+
5GB+ (SSD Recommended)
OS
Windows 10/11, Linux, macOS
Windows 10/11, Linux
Mobile (via Termux or similar apps)
Component
Minimum
Device RAM
8GB
Storage
5GB+ Free Space
OS
Android 10+
Processor
Modern 8-core CPU (e.g., Snapdragon 7xx+)
Note: Performance on mobile devices will be slower than on a desktop with a dedicated GPU.
🚀 Example Usage
python
1# ==============================================================================2# BOL-AI v1.0 PRO - OFFICIAL EXECUTION SCRIPT3# Developer: Vivek Vijay Dalvi | Company: MAHAVEER AI4# ==============================================================================56# INSTALLATION:78# Force update transformers and dependencies910# !pip install -U transformers accelerate bitsandbytes sentencepiece1112# pip install torch transformers accelerate bitsandbytes sentencepiece1314import torch
15import torch.nn.functional as F
16import os
17import json
18from transformers import AutoTokenizer, AutoModel
1920# Ensure UTF-8 support for Windows21os.environ["PYTHONUTF8"]="1"2223# Repository ID or Local Path24MODEL_ID ="mahaveerai/bol-ai"2526# Generation Settings27TEMPERATURE =0.128MAX_NEW_TOKENS =3002930defload_bol_ai():31"""Load model with a temporary mask to bypass custom architecture errors"""32print("Initializing Bol-AI v1.0 Pro Engine...")3334# Load tokenizer35 tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, trust_remote_code=True)3637# Handle custom model_type 'bol_ai_v1' by using a temporary memory fix38from transformers import AutoConfig
39try:40# Try loading directly41 model = AutoModel.from_pretrained(42 MODEL_ID,43 torch_dtype=torch.bfloat16,44 device_map="auto",45 trust_remote_code=True46)47except KeyError:48# If 'bol_ai_v1' causes a KeyError, load using the base architecture blueprint49print("Applying architecture mapping...")50 config = AutoConfig.from_pretrained("openbmb/MiniCPM-V-4.6", trust_remote_code=True)51 model = AutoModel.from_pretrained(52 MODEL_ID,53 config=config,54 torch_dtype=torch.bfloat16,55 device_map="auto",56 trust_remote_code=True57)5859 model.eval()60return tokenizer, model
6162defcustom_generate(tokenizer, model, user_input):63"""Manual generation loop to bypass missing .chat() or .generate() methods"""64# Format the prompt to trigger the trained identity65 prompt =f"User: {user_input}\nBol-AI:"66 input_ids = tokenizer(prompt, return_tensors="pt").input_ids.to(model.device)6768# Dynamically find the Language Model Head (the 'voice box')69 lm_head =None70with torch.no_grad():71 out = model(input_ids)72# Get hidden state dimension73 h = out.last_hidden_state ifhasattr(out,"last_hidden_state")else out[0]74 dim = h.shape[-1]7576# Search for the correct linear layer or embedding weight77for name, module in model.named_modules():78ifisinstance(module, torch.nn.Linear)and module.in_features == dim and module.out_features >20000:79 lm_head =lambda x: module(x.to(module.weight.dtype))80break81ifnot lm_head:82for module in model.modules():83ifisinstance(module, torch.nn.Embedding)and module.embedding_dim == dim and module.num_embeddings >20000:84 lm_head =lambda x: torch.matmul(x.to(module.weight.dtype), module.weight.T)85break8687ifnot lm_head:88return"Error: Language head not found."8990 generated_ids = input_ids[0].tolist()91 start_len =len(generated_ids)9293# Generate tokens one by one94for _ inrange(MAX_NEW_TOKENS):95 curr_tensor = torch.tensor([generated_ids]).to(model.device)96with torch.no_grad():97 out = model(curr_tensor)98 h = out.last_hidden_state ifhasattr(out,"last_hidden_state")else out[0]99 logits = lm_head(h[:,-1,:])100101# Greedy search for maximum accuracy at low temperature102 token = torch.argmax(logits, dim=-1).item()103104 generated_ids.append(token)105# Stop if the model generates the End of String token106if token == tokenizer.eos_token_id:107break108109return tokenizer.decode(generated_ids[start_len:], skip_special_tokens=True)110111defstart_chat():112"""Main terminal interface"""113 tokenizer, model = load_bol_ai()114115print("\n"+"="*40)116print("BOL-AI v1.0 PRO IS ONLINE")117print("Developer: Vivek Vijay Dalvi")118print("Company: MAHAVEER AI")119print("="*40)120print("Type 'exit' to quit.\n")121122whileTrue:123 query =input("You: ")124if query.lower()in["exit","quit"]:125break126127print("Bol-AI: Thinking...", end="\r")128 response = custom_generate(tokenizer, model, query)129130# Clean the output to remove any trailing 'User:' tags131 final_text = response.split("User:")[0].strip()132print(f"Bol-AI: {final_text}\n")133134if __name__ =="__main__":135 start_chat()
🔥 Why Bol-AI?
Bol-AI was designed to provide:
Better conversational intelligence
Smart assistant interaction
Enhanced communication quality
Human-like AI responses
Optimized assistant behavior
Lightweight AI deployment
Personalized AI interaction
Fast and intelligent responses
The project combines conversational optimization, assistant engineering, and AI response tuning into a single intelligent assistant system.
🧾 Additional Information
Information
Details
AI Project
Bol-AI
Developer Alias
MAHAVEER AI
Model Format
SafeTensors
Response Style
Conversational
Deployment Support
Local / Cloud
AI Category
Assistant AI
Optimization
Fine-tuned
Main Purpose
Intelligent Conversations
Assistant Type
Conversational Assistant
AI Identity
Bol-AI
AI Communication
Optimized
🔒 License
Bol-AI includes custom conversational tuning, assistant optimization, response engineering, and fine-tuning developed by Vivek Vijay Dalvi.
Base Model Credit:
MiniCPM-V-4.6 by OpenBMB — Apache-2.0 License.
👨💻 Developer
Vivek Vijay Dalvi
Founder & Developer of MAHAVEER AI
Bol-AI is a custom conversational AI assistant developed, engineered, optimized, and enhanced by Vivek Vijay Dalvi.