Instructions to use Ephraimmm/customer-service with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ephraimmm/customer-service with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ephraimmm/customer-service") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Ephraimmm/customer-service") model = AutoModelForMultimodalLM.from_pretrained("Ephraimmm/customer-service") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ephraimmm/customer-service with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ephraimmm/customer-service" # 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/customer-service", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ephraimmm/customer-service
- SGLang
How to use Ephraimmm/customer-service 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/customer-service" \ --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/customer-service", "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/customer-service" \ --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/customer-service", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use Ephraimmm/customer-service 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/customer-service 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/customer-service to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Ephraimmm/customer-service to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Ephraimmm/customer-service", max_seq_length=2048, ) - Docker Model Runner
How to use Ephraimmm/customer-service with Docker Model Runner:
docker model run hf.co/Ephraimmm/customer-service
Nigerian Bank Customer Service Assistant
Overview
This is a Gemma-3-4B instruction-tuned model fine-tuned to handle customer service conversations for a Nigerian bank. The fine-tuning data reflects Nigerian customer-service interactions, so the model's responses are tuned to Nigerian tone and phrasing patterns as they appear in text (e.g. common Nigerian English expressions and code-switching seen in chat/support transcripts). It was trained with Unsloth and Hugging Face's TRL library using parameter-efficient (LoRA) fine-tuning.
Training Details
| Base model | unsloth/gemma-3-4b-it-unsloth-bnb-4bit (Gemma 3, 4B, 4-bit quantized) |
| Method | Supervised fine-tuning with LoRA (via Unsloth + Hugging Face TRL) |
| LoRA rank (r) | 8 |
| LoRA alpha | 8 |
| LoRA dropout | 0 |
| Target modules | Attention projections (q_proj, k_proj, v_proj, o_proj) and MLP projections (gate_proj, up_proj, down_proj) of the language model |
| Task type | Causal LM |
| Precision | float16 |
This repository hosts the full fine-tuned model weights (merged, fp16, split across two safetensors shards) as well as the standalone LoRA adapter (adapter_model.safetensors) used to produce them, so the adapter can also be applied on top of the base model directly if preferred.
Training data, dataset size, and number of training steps/epochs are not recorded in this repository's metadata and are not published here.
Intended Use
- Financial services customer support conversations
- Loan application assistance and status inquiries
- Chat-based customer interaction with Nigerian tone and accent patterns in text
This model is intended as a domain-specific assistant for Nigerian banking customer service scenarios rather than as a general-purpose chat model.
How to Use
The repository contains the full merged model, so it can be loaded directly with transformers (no separate adapter step required):
import torch
from transformers import AutoProcessor, Gemma3ForConditionalGeneration
model_id = "Ephraimmm/customer-service"
model = Gemma3ForConditionalGeneration.from_pretrained(
model_id,
device_map="auto",
torch_dtype=torch.float16,
)
processor = AutoProcessor.from_pretrained(model_id)
messages = [
{"role": "user", "content": [{"type": "text", "text": "Good day, please I want to check on my loan application status."}]}
]
inputs = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
with torch.no_grad():
output_ids = model.generate(**inputs, max_new_tokens=256)
response = processor.decode(
output_ids[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True
)
print(response)
Alternatively, load with Unsloth for faster inference:
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="Ephraimmm/customer-service",
max_seq_length=2048,
load_in_4bit=True,
)
FastModel.for_inference(model)
If you only want the LoRA weights, adapter_config.json / adapter_model.safetensors in this repo can be loaded on top of the base model unsloth/gemma-3-4b-it-unsloth-bnb-4bit with peft.
Limitations
- This is a domain-specific model tuned for a narrow use case (Nigerian bank customer service, loan-related queries); it has not been evaluated against standard NLP/LLM benchmarks.
- No formal evaluation metrics, accuracy figures, or benchmark scores are published for this model — do not assume performance figures not stated here.
- As with any fine-tuned LLM, outputs should be reviewed before use in a production financial-services context, particularly for compliance-sensitive communication.
- The base architecture (Gemma 3) supports multimodal (image+text) input, but this fine-tune was produced for text-based customer service interaction.
Author
Developed by Ephraimmm
This gemma3 model was trained 2x faster with Unsloth and Hugging Face's TRL library.
- Downloads last month
- 300
Model tree for Ephraimmm/customer-service
Base model
google/gemma-3-4b-pt