Instructions to use Ephraimmm/Qween_lora_weights with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Ephraimmm/Qween_lora_weights with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/qwen3-14b-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "Ephraimmm/Qween_lora_weights") - Transformers
How to use Ephraimmm/Qween_lora_weights with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ephraimmm/Qween_lora_weights") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Ephraimmm/Qween_lora_weights", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ephraimmm/Qween_lora_weights with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ephraimmm/Qween_lora_weights" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ephraimmm/Qween_lora_weights", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ephraimmm/Qween_lora_weights
- SGLang
How to use Ephraimmm/Qween_lora_weights 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 "Ephraimmm/Qween_lora_weights" \ --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": "Ephraimmm/Qween_lora_weights", "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 "Ephraimmm/Qween_lora_weights" \ --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": "Ephraimmm/Qween_lora_weights", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use Ephraimmm/Qween_lora_weights with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Ephraimmm/Qween_lora_weights to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Ephraimmm/Qween_lora_weights to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Ephraimmm/Qween_lora_weights to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Ephraimmm/Qween_lora_weights", max_seq_length=2048, ) - Docker Model Runner
How to use Ephraimmm/Qween_lora_weights with Docker Model Runner:
docker model run hf.co/Ephraimmm/Qween_lora_weights
Qween LoRA Weights
Overview
This repository contains a LoRA (Low-Rank Adaptation) adapter for the Qwen3-14B causal language model, fine-tuned by Ephraimmm on a dataset of 10,000+ examples of Nigerian/West African Pidgin English. The adapter was trained using Unsloth for accelerated, memory-efficient fine-tuning together with Hugging Face's TRL library. It adapts the base Qwen3 model's conversational ability toward understanding and generating text in Pidgin English.
Training Details
| Detail | Value |
|---|---|
| Base model | unsloth/qwen3-14b-unsloth-bnb-4bit (Qwen3-14B, 4-bit quantized) |
| Adapter type | LoRA (PEFT) |
LoRA rank (r) |
32 |
| LoRA alpha | 32 |
| LoRA dropout | 0 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Bias | none |
| Task type | Causal LM |
| Training framework | Unsloth + Hugging Face TRL/PEFT |
| Training data | 10,000+ Pidgin English examples |
Note: exact training step/epoch counts and loss curves are not included in this repository (no trainer_state.json was published), so they are omitted here rather than estimated.
Intended Use
This adapter is intended for:
- Experimentation with instruction-following / chat generation in Nigerian Pidgin English.
- Research into low-resource / under-represented African language adaptation of large language models.
- As a base for further fine-tuning or evaluation on Pidgin English NLP tasks.
It is not intended for high-stakes decision-making, medical, legal, or safety-critical applications.
How to Use
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_id = "unsloth/qwen3-14b-unsloth-bnb-4bit"
adapter_id = "Ephraimmm/Qween_lora_weights"
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_id,
device_map="auto",
)
model = PeftModel.from_pretrained(base_model, adapter_id)
messages = [{"role": "user", "content": "How you dey today?"}]
inputs = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_tensors="pt"
).to(model.device)
outputs = model.generate(inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Alternatively, load with Unsloth for faster inference:
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="Ephraimmm/Qween_lora_weights",
max_seq_length=4096,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
Limitations
- This is a LoRA adapter, not a standalone model — it requires the base
unsloth/qwen3-14b-unsloth-bnb-4bitweights to run. - No quantitative evaluation metrics (e.g., perplexity, benchmark scores) are published for this adapter; performance claims beyond what is documented here should not be assumed.
- As with the base Qwen3 model, outputs may contain inaccuracies, bias, or culturally inappropriate content, particularly given the informal/low-resource nature of Pidgin English training data.
- Training data composition and licensing details beyond "10,000+ Pidgin English examples" are not publicly documented in this repository.
Author
Developed by Ephraimmm.
- Downloads last month
- 14