Instructions to use lp4bl0/ft-phone-format with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use lp4bl0/ft-phone-format with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/gemma-3-4b-it") model = PeftModel.from_pretrained(base_model, "lp4bl0/ft-phone-format") - Transformers
How to use lp4bl0/ft-phone-format with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="lp4bl0/ft-phone-format") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("lp4bl0/ft-phone-format", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use lp4bl0/ft-phone-format with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lp4bl0/ft-phone-format" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lp4bl0/ft-phone-format", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/lp4bl0/ft-phone-format
- SGLang
How to use lp4bl0/ft-phone-format 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 "lp4bl0/ft-phone-format" \ --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": "lp4bl0/ft-phone-format", "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 "lp4bl0/ft-phone-format" \ --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": "lp4bl0/ft-phone-format", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use lp4bl0/ft-phone-format with Docker Model Runner:
docker model run hf.co/lp4bl0/ft-phone-format
Gemma 3 4B โ Voice Call Style Adapter
A LoRA fine-tune of google/gemma-3-4b-it trained to adapt the model's response style for voice-based phone call interactions.
Proof of concept. This adapter is not intended for production use. It was developed as a personal research project to explore whether style fine-tuning is a viable alternative to heavily engineered system prompts for voice-call use cases.
Model Details
Model Description
Written text and spoken phone conversation follow fundamentally different conventions. Chat-style LLM responses tend to be structured, verbose, and visually formatted, none of which translates well to speech. This adapter teaches the base model to respond in a way that feels natural when spoken aloud during a phone call: shorter sentences, conversational rhythm, no markdown, and phrasing that mirrors how people actually talk on the phone. This approach enables style to be learned through fine-tuning rather than enforced through prompt engineering, reducing prompt complexity and improving consistency across interactions.
- Developed by: Lucas G. Abate
- Model type: Causal LM โ LoRA adapter (PEFT)
- Language(s): English
- License: CC-BY-NC-4.0 โ Non-commercial use only
- Finetuned from: google/gemma-3-4b-it
Uses
Direct Use
Load the adapter on top of google/gemma-3-4b-it to get responses styled for phone conversations. Suitable for prototyping voice-call assistants, or any speech-first interface where the LLM output will be passed to a TTS engine.
Out-of-Scope Use
- Production customer-facing systems without further evaluation and safety review.
- Languages other than English (the training data was English only).
- Tasks requiring factual accuracy โ this adapter targets style, not knowledge.
Bias, Risks, and Limitations
- The training data consists of real call transcripts, which may carry implicit biases in tone, vocabulary, or interaction patterns present in that specific call domain.
- Style transfer is imperfect: the model may occasionally revert to chat-like formatting, especially for complex or structured responses.
- The adapter was not evaluated against a formal benchmark; assessments were qualitative.
Recommendations
Use this adapter as a starting point for experimentation. Evaluate outputs with a TTS pipeline before drawing conclusions about naturalness. For any real deployment, conduct domain-specific testing and apply appropriate safety filters.
Training Details
Training Data
The adapter was trained on a curated dataset built from real phone call transcripts. Transcripts were processed to extract assistant-side responses and reformatted into instruction-following examples that demonstrate the target voice-call style (natural phrasing, no markdown, spoken-word rhythm).
Training Procedure
Fine-tuning was performed using LoRA (Low-Rank Adaptation) via the PEFT and TRL libraries, applied to the instruction-tuned variant of Gemma 3 4B.
Evaluation
Evaluation was qualitative. Generated responses were compared side-by-side between the base model and the adapter, assessing:
- Absence of markdown / bullet points
- Sentence length and rhythm suitable for speech
- Conversational naturalness when read aloud
Training Loss
|
Training converged in ~65 steps with training and validation loss tracking closely throughout, reaching a final loss of ~2.6, showing no signs of overfitting. The validation loss never diverged from training loss, which indicates the adapter generalized the target style rather than memorizing examples. It is worth noting that 65 steps reflects a small dataset (~2k examples). Training was intentionally stopped early given the dataset size, additional steps caused overfitting in preliminary runs. This is an expected constraint for a proof-of-concept built on a limited number of real call transcripts. |
![]() |
Technical Specifications
Model Architecture and Objective
- Base model:
google/gemma-3-4b-it(4B parameter causal LM) - Adaptation method: LoRA (PEFT)
- Training objective: Supervised fine-tuning (SFT) on style-transformed conversation examples
Framework versions
- PEFT 0.18.1
- TRL (latest at training time)
- Transformers (latest at training time)
- Downloads last month
- 8
