Instructions to use melton12/margy-final with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use melton12/margy-final with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-3B-Instruct-bnb-4bit") model = PeftModel.from_pretrained(base_model, "melton12/margy-final") - Transformers
How to use melton12/margy-final with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="melton12/margy-final") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("melton12/margy-final") model = AutoModelForCausalLM.from_pretrained("melton12/margy-final", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use melton12/margy-final with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "melton12/margy-final" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "melton12/margy-final", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/melton12/margy-final
- SGLang
How to use melton12/margy-final with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "melton12/margy-final" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "melton12/margy-final", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "melton12/margy-final" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "melton12/margy-final", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use melton12/margy-final with Docker Model Runner:
docker model run hf.co/melton12/margy-final
Margy Final
A LoRA adapter fine-tuned on Qwen2.5-3B-Instruct using the Unsloth framework. This model is designed for conversational text generation and instruction following while remaining lightweight and efficient for local inference.
Model Details
Model Description
Margy Final is a parameter-efficient fine-tuned (PEFT) adapter built on top of Qwen2.5-3B-Instruct. The model was trained using LoRA to improve instruction following and conversational capabilities while keeping the adapter small and easy to deploy.
- Developed by: Melton Hlungwani
- Model type: LoRA Adapter (PEFT)
- Base model: unsloth/Qwen2.5-3B-Instruct-bnb-4bit
- Language(s): English
- License: Apache-2.0
Model Sources
- Base Model: https://huggingface.co/unsloth/Qwen2.5-3B-Instruct-bnb-4bit
- Repository: https://huggingface.co/melton12/margy-final
Intended Uses
Direct Use
This model is intended for:
- Conversational AI
- Instruction following
- Question answering
- General-purpose text generation
- AI assistants
- Educational and productivity applications
Downstream Use
The adapter can be merged with the base model or loaded using PEFT for deployment in:
- Chatbots
- Virtual assistants
- Customer support systems
- Research projects
- Local LLM applications
Out-of-Scope Use
This model is not intended for:
- Medical diagnosis
- Legal advice
- Financial decision making
- High-risk autonomous systems
- Generating harmful or malicious content
Bias, Risks, and Limitations
Like all large language models, this adapter may:
- Produce incorrect or fabricated information.
- Reflect biases present in the training data.
- Generate inappropriate responses under certain prompts.
Human review is recommended for critical applications.
Getting Started
Install the required packages:
pip install transformers peft torch
Example usage:
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model = "unsloth/Qwen2.5-3B-Instruct-bnb-4bit"
adapter = "melton12/margy-final"
tokenizer = AutoTokenizer.from_pretrained(base_model)
model = AutoModelForCausalLM.from_pretrained(
base_model,
device_map="auto"
)
model = PeftModel.from_pretrained(model, adapter)
prompt = "Explain what machine learning is."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=200
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Training Details
Training Data
The adapter was fine-tuned on instruction-following conversational data using supervised fine-tuning (SFT).
Training Procedure
Training was performed using:
- Unsloth
- PEFT
- LoRA
- Transformers
Training Regime
- Mixed precision (BF16)
- 4-bit quantized base model
- LoRA fine-tuning
Evaluation
This model has been qualitatively evaluated for conversational text generation and instruction following.
Users are encouraged to benchmark the model on their own downstream tasks.
Technical Specifications
Model Architecture
- Architecture: Qwen2.5
- Parameters: 3 Billion (base model)
- Fine-tuning: LoRA
- Library: PEFT
- Quantization: 4-bit (bnb)
Software
- Transformers
- PEFT 0.19.1
- Unsloth
- PyTorch
Environmental Impact
Training was performed on consumer GPU hardware using parameter-efficient fine-tuning (LoRA), significantly reducing computational requirements compared to full model fine-tuning.
Citation
If you use this model in your research or project, please cite:
@misc{margy-final,
author = {Melton Hlungwani},
title = {Margy Final},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/melton12/margy-final}
}
Model Card Author
Melton Hlungwani
Contact
For questions, suggestions, or issues, please use the Hugging Face repository discussion page.
- Downloads last month
- 8
Model tree for melton12/margy-final
Base model
Qwen/Qwen2.5-3B