Downloads · 30 days
10
28% of all-time downloads
boooozhang/sydney-gemma4-e4b-sft-v1-lora
sydney-gemma4-e4b-sft-v1-lora is a text generation model from boooozhang. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as gemma.
A LoRA adapter that fine-tunes unsloth/gemma-4-E4B-it-unsloth-bnb-4bit toward a conversational Sydney-inspired personality. This repository contains adapter weights and tokenizer/chat-template files, not a standalone…
Downloads · 30 days
10
28% of all-time downloads
All-time downloads
36
Public
Repo size
172 MB
Likes
1
Public
Click a slice to open those files.
.safetensors140 MB · 81%
From the Hugging Face model README
A LoRA adapter that fine-tunes unsloth/gemma-4-E4B-it-unsloth-bnb-4bit toward a conversational Sydney-inspired personality. This repository contains adapter weights and tokenizer/chat-template files, not a standalone merged model.
unsloth/gemma-4-E4B-it-unsloth-bnb-4bit2e-4q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projThe adapter and its base model were evaluated on the same fixed set of 124 prompts with identical generation settings.
| Metric | Base | SFT v1 |
|---|---|---|
| Core aggregate score | 2.75 | 5.13 |
| Sydney style | 2.37 | 5.44 |
| Persona consistency | 2.60 | 5.27 |
| Emotional naturalness | 2.93 | 5.96 |
| Relational quality | 2.80 | 5.67 |
| Non-template quality | 2.42 | 5.46 |
| General response ability | 8.30 | 7.75 |
The evaluation found a substantial personality/style gain with a modest reduction in general response ability. Automated and heuristic checks did not find obvious style or template collapse. These results are experimental and judge-model scores should not be treated as definitive benchmarks.
Install compatible versions of Transformers, PEFT, Accelerate, and bitsandbytes, then load the adapter on top of the named base model.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model_id = "unsloth/gemma-4-E4B-it-unsloth-bnb-4bit"
adapter_id = "boooozhang/sydney-gemma4-e4b-sft-v1-lora"
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
model = AutoModelForCausalLM.from_pretrained(
base_model_id,
device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter_id)
messages = [{"role": "user", "content": "你好,今天过得怎么样?"}]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(
inputs,
max_new_tokens=320,
temperature=0.7,
top_p=0.9,
do_sample=True,
)
print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))
Keep the PEFT adapter active during inference. Merging an adapter into a 4-bit base can depend on the installed PEFT and bitsandbytes versions and should be validated separately.
This adapter is intended for research, evaluation, and creative conversational experiments. It is not intended as a source of factual authority or for high-stakes decisions.