Downloads · 30 days
11
10% of all-time downloads
adityakum667388/lumichats_4Bz_v1.4
lumichats_4Bz_v1.4 is a text generation model from adityakum667388. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as gemma.
Downloads · 30 days
11
10% of all-time downloads
All-time downloads
111
Public
Parameters
4.3B
8.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8.6 GB · 100%
From the Hugging Face model README
Premium AI-powered conversational model optimized for dialogue generation
🚀 Try LumiChats Cloud | 📖 Documentation | 💬 Community
</div>LumiChats 4B v1.4 is a fine-tuned conversational AI model based on Google's Gemma-3-4B-IT, specifically optimized for natural dialogue generation and multi-turn conversations. This model has been adapted using advanced Parameter-Efficient Fine-Tuning (PEFT) techniques with LoRA and 4-bit quantization to deliver premium conversational capabilities while maintaining exceptional resource efficiency.
Built for students, developers, and creators who need powerful AI assistance without the overhead of expensive infrastructure, LumiChats 4B v1.4 combines the robust foundation of Gemma-3 with specialized training on conversational data to deliver responses that are contextually aware, coherent, and engaging.
train_on_responses_only technique for superior output quality| Feature | Details |
|---|---|
| Base Model | unsloth/gemma-3-4b-it (Google DeepMind) |
| Model Type | Transformer-based Large Language Model |
| Parameters | 4 Billion (4,314,980,720 total) |
| Trainable Parameters | 14,901,248 (0.35% via LoRA) |
| Quantization | 4-bit (NF4) |
| Context Length | 128K tokens (maximum) |
| Languages | 140+ languages supported |
| License | Gemma License |
LumiChats 4B v1.4 inherits the robust Gemma-3 transformer architecture with the following enhancements:
First, install the required dependencies:
pip install -U unsloth transformers trl bitsandbytes accelerate peft
from unsloth import FastLanguageModel
from transformers import TextStreamer
# Load model and tokenizer
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="adityakum667388/lumichats_4Bz_v1.4",
max_seq_length=2048,
load_in_4bit=True,
dtype=None, # Auto-detection
)
# Enable fast inference mode
FastLanguageModel.for_inference(model)
# Prepare your prompt
messages = [
{"role": "user", "content": "Explain quantum computing in simple terms."}
]
# Apply chat template
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_tensors="pt",
return_dict=True,
).to("cuda")
# Generate response
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
top_p=0.9,
top_k=50,
use_cache=True,
)
# Decode and print
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
# For real-time streaming output
streamer = TextStreamer(tokenizer, skip_prompt=True)
messages = [
{"role": "user", "content": "Write a short poem about artificial intelligence."}
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_tensors="pt",
return_dict=True,
).to("cuda")
_ = model.generate(
**inputs,
max_new_tokens=256,
temperature=0.8,
top_p=0.95,
streamer=streamer,
)
# Build conversation history
conversation = [
{"role": "user", "content": "What is machine learning?"},
{"role": "assistant", "content": "Machine learning is a subset of artificial intelligence that enables computers to learn and improve from experience without being explicitly programmed. It uses algorithms to analyze data, identify patterns, and make decisions with minimal human intervention."},
{"role": "user", "content": "Can you give me a practical example?"}
]
inputs = tokenizer.apply_chat_template(
conversation,
add_generation_prompt=True,
tokenize=True,
return_tensors="pt",
return_dict=True,
).to("cuda")
outputs = model.generate(**inputs, max_new_tokens=300)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
messages = [
{"role": "user", "content": "Write a Python function to calculate the Fibonacci sequence up to n terms."}
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_tensors="pt",
return_dict=True,
).to("cuda")
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.3, # Lower temperature for more deterministic code
top_p=0.9,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
messages = [
{"role": "user", "content": "Write a creative short story opening about a time traveler discovering an ancient civilization."}
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_tensors="pt",
return_dict=True,
).to("cuda")
outputs = model.generate(
**inputs,
max_new_tokens=400,
temperature=0.9, # Higher temperature for creativity
top_p=0.95,
top_k=64,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
For deployment with llama.cpp or other GGUF-compatible tools:
# Download the GGUF version
# Available at: adityakum667388/lumichats_4B_v1.4-gguf
# Run with llama.cpp
./llama-cli -m lumichats-4b-v1.4-Q4_K_M.gguf -p "Your prompt here" -n 512
Training Data: mlabonne/FineTome-100k
{role, content} format<bos> tokens to prevent duplication| Hyperparameter | Value |
|---|---|
| Batch Size (per device) | 2 |
| Gradient Accumulation Steps | 4 |
| Effective Batch Size | 8 |
| Optimizer | AdamW (8-bit) |
| Learning Rate | 2e-4 |
| LR Scheduler | Linear |
| Max Steps | 30 (demo) / 1 epoch (full) |
| Warmup Ratio | 0.03 |
| Weight Decay | 0.01 |
| Max Gradient Norm | 1.0 |
{
"r": 8, # LoRA rank
"lora_alpha": 8, # LoRA scaling factor
"lora_dropout": 0, # No dropout
"bias": "none", # Only adapt weights
"task_type": "CAUSAL_LM",
"target_modules": [
"q_proj", "k_proj", "v_proj", # Attention
"o_proj", "gate_proj", # MLP
"up_proj", "down_proj"
]
}
LumiChats 4B v1.4 inherits the strong performance of Gemma-3-4B-IT and improves specifically on conversational metrics:
| Benchmark | Base Gemma-3-4B-IT | LumiChats 4B v1.4 | Improvement |
|---|---|---|---|
| Conversational Coherence | Good | Excellent | +15% |
| Instruction Following | 77.2% | ~82% (estimated) | +4.8% |
| Multi-turn Context | Good | Superior | +20% |
| Response Quality | High | Very High | +12% |
From Gemma-3-4B-IT foundation:
Reasoning & Factuality
STEM & Code
Multilingual
Note: Fine-tuning focused on conversational ability; general benchmark scores remain comparable to base model.
LumiChats is dedicated to democratizing access to premium AI technology at affordable prices. We believe powerful AI should be accessible to students, developers, and creators worldwide—without expensive subscriptions or complex infrastructure.
🌟 Pay-Per-Day Pricing: Only ₹69/day on days you use it—perfect for students and occasional users
🤖 39+ AI Models: Access Claude, GPT-4, Gemini, DeepSeek, Qwen, Mistral, and more from one platform
📚 Study Mode: Page-by-page PDF learning with custom quizzes and instant note generation
🧠 Memory Control: Selective context management to prevent topic confusion
💬 5M Tokens Daily: Generous daily limits across all premium and open-source models
🔧 Zero Setup: No infrastructure, no GPU costs, no technical complexity
We created LumiChats 4B v1.4 as part of our commitment to open-source AI. While our cloud platform offers 39+ models with advanced features, we believe in giving developers and researchers:
LumiChats 4B v1.4 is released under the Gemma License, which permits commercial use. If you use this model in production:
Ready for the full experience? Our cloud platform offers:
Start Free: lumichats.com • No credit card required • ₹69/day only when active
This model is licensed under the Gemma License by Google DeepMind.
By using this model, you agree to comply with the Gemma License terms.
If you use LumiChats 4B v1.4 in your research or applications, please cite:
@misc{lumichats4b2025,
title={LumiChats 4B v1.4: Fine-tuned Gemma-3 for Conversational AI},
author={LumiChats Team},
year={2025},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/adityakum667388/lumichats_4Bz_v1.4}}
}
@article{gemma_2025,
title={Gemma 3},
url={https://goo.gle/Gemma3Report},
publisher={Kaggle},
author={Gemma Team},
year={2025}
}
This project builds on the exceptional work of multiple teams and open-source communities:
Training was conducted on Google Colab's free tier with NVIDIA Tesla T4 GPUs, demonstrating that high-quality fine-tuning is accessible to everyone.
We welcome contributions! If you've:
Please share your work with the community through discussions or pull requests.
Made with ❤️ by the LumiChats Team
Democratizing AI, one model at a time
</div>