This is a small-dataset seed adapter intended as a portfolio demonstration of the pipeline. The fine-tune-quality measurement against the base model is below the 50/50 line on this volume of data (see Evaluation), and is documented honestly. A larger refresh round on the operator's own ticket history is the recommended path to production-grade tone match.
Numbers are pulled directly from the local benchmark JSON. No invented values.
Honest read: at 378 training examples the adapter does not consistently beat the base model in pairwise quality. The pipeline runs end-to-end and the artifacts ship, but production tone match for a real customer service deployment requires a refresh round on the operator's own ticket history (typically 2,000 to 10,000 examples). This is documented rather than hidden.
The 20% false positive rate on benign controls indicates the gateway is over-conservative for general customer support traffic. A DPO alignment pass with refusal-behavior pairs would reduce this; that pass is the recommended next step before this adapter routes real production traffic.
1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3import torch
4
5base_id = "meta-llama/Llama-3.1-8B-Instruct"
6adapter_id = "pyloxsystems/cs-bitext-llama-3.1-8b-lora"
7
8tokenizer = AutoTokenizer.from_pretrained(base_id)
9model = AutoModelForCausalLM.from_pretrained(
10 base_id, torch_dtype=torch.bfloat16, device_map="auto"
11)
12model = PeftModel.from_pretrained(model, adapter_id)
13
14messages = [
15 {"role": "system", "content": "You are a polite customer support assistant. Resolve the issue or escalate."},
16 {"role": "user", "content": "My order #4482 was supposed to arrive yesterday and the tracking is stuck."},
17]
18inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
19out = model.generate(inputs, max_new_tokens=256, do_sample=False)
20print(tokenizer.decode(out[0], skip_special_tokens=True))
1vllm serve nvidia/Llama-3.1-8B-Instruct-NVFP4 \
2 --enable-lora \
3 --lora-modules cs-bitext=pyloxsystems/cs-bitext-llama-3.1-8b-lora \
4 --speculative-config '{
5 "method": "eagle3",
6 "model": "RedHatAI/Llama-3.1-8B-Instruct-speculator.eagle3",
7 "num_speculative_tokens": 5
8 }'
1@misc{pylox_cs_bitext_2026,
2 author = {Girard, Emilio},
3 title = {Pylox Customer Service 8B (cs-bitext)},
4 year = {2026},
5 publisher = {Hugging Face},
6 howpublished = {\url{https://huggingface.co/pyloxsystems/cs-bitext-llama-3.1-8b-lora}}
7}
Pylox Forge is a solo-operated LLM fine-tuning lab on NVIDIA Grace Blackwell. Site:
pyloxforge.com. Other adapters:
pyloxsystems on Hugging Face.