Downloads · 30 days
0
AOZ2025/AOZGPT-LoRA-Adapters
AOZGPT-LoRA-Adapters is a machine learning model from AOZ2025. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama2.
AOZGPT is a helpful AI assistant created by fine-tuning LLaMA-2 7B using QLoRA (Quantized Low-Rank Adaptation) on the Dolly-15k instruction dataset. This model maintains the strong capabilities of LLaMA-2 while being…
Downloads · 30 days
0
Access
Public
Updated Oct 29, 2025
Repo size
80.1 MB
Likes
0
Public
Click a slice to open those files.
.pt80.1 MB · 100%
From the Hugging Face model README
AOZGPT is a helpful AI assistant created by fine-tuning LLaMA-2 7B using QLoRA (Quantized Low-Rank Adaptation) on the Dolly-15k instruction dataset. This model maintains the strong capabilities of LLaMA-2 while being optimized for helpful, truthful, and harmless interactions.
AOZGPT is designed for:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Load base model
model = AutoModelForCausalLM.from_pretrained(
"meta-llama/Llama-2-7b-hf",
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Load AOZGPT LoRA adapters
# (Implementation depends on your LoRA loading setup)
pip install transformers torch accelerate bitsandbytes
from AOZGPT import ChatBot
# Initialize the chatbot
chatbot = ChatBot(
model_name="meta-llama/Llama-2-7b-hf",
adapter_path="./lora_adapters_final.pt"
)
# Single query
response = chatbot.chat("Explain quantum computing in simple terms.")
print(response)
# Interactive session
chatbot.interactive_chat()
response = chatbot.chat(
"Your prompt here",
max_new_tokens=256, # Response length
temperature=0.7, Creativity (0.1-1.0)
top_p=0.9, # Diversity control
top_k=50, # Vocabulary restriction
do_sample=True # Enable sampling
)
| Parameter | Value |
|---|---|
| LoRA Rank | 8 |
| LoRA Alpha | 16.0 |
| LoRA Dropout | 0.05 |
| Learning Rate | 2e-4 |
| Batch Size | 8 |
| Gradient Accumulation | 4 |
| Warmup Steps | 100 |
| Max Sequence Length | 512 |
The model expects conversations in this format:
system: You are AOZGPT, a helpful AI assistant...
user: [Your question or instruction]
assistant: [Model's response]
For context-aware responses:
system: You are AOZGPT...
context: [Additional context]
user: [Your question]
assistant: [Model's response]
✅ Instruction Following - Accurately follows user instructions
✅ Knowledgeable - Maintains LLaMA-2's broad knowledge base
✅ Helpful - Provides detailed, useful responses
✅ Truthful - Admits limitations and uncertainties
✅ Code Generation - Writes and explains code
✅ Creative Writing - Brainstorms and creates content
✅ Technical Explanations - Simplifies complex topics
User: "Write a Python function to calculate Fibonacci numbers"
AOZGPT: "Here's a Python function to calculate Fibonacci numbers recursively..."
User: "Explain neural networks like I'm 10 years old"
AOZGPT: "Imagine a neural network like a team of tiny brain cells working together..."
User: "What are the benefits of renewable energy?"
AOZGPT: "Renewable energy has several key benefits including environmental sustainability..."
AOZGPT inherits the limitations and potential biases of the base LLaMA-2 model. Users should be aware that:
❌ Medical or legal advice
❌ Critical decision-making without verification
❌ Generating harmful or malicious content
❌ Real-time information beyond 2023
Estimates based on ML CO2 Impact Calculator
This model is built on top of LLaMA-2, which is licensed for research and commercial use. Please refer to Meta's LLaMA-2 license for specific terms and conditions.
Note: The fine-tuned AOZGPT model inherits the license terms of the base LLaMA-2 model.
For questions, issues, or contributions:
Disclaimer: This model is intended for research and educational purposes. Users are responsible for ensuring their use complies with applicable laws and regulations.