Downloads · 30 days
10
5% of all-time downloads
micic-mihajlo/diffusiongemma-social-writer-lora
diffusiongemma-social-writer-lora is a text generation model from micic-mihajlo. 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.
This repository contains a PEFT LoRA adapter for unsloth/diffusiongemma-26B-A4B-it, trained for concise founder-style social post rewrites.
Downloads · 30 days
10
5% of all-time downloads
All-time downloads
211
Public
Repo size
2.4 GB
Likes
0
Public
Click a slice to open those files.
.safetensors299 MB · 90%
From the Hugging Face model README
This repository contains a PEFT LoRA adapter for
unsloth/diffusiongemma-26B-A4B-it,
trained for concise founder-style social post rewrites.
It is not a merged base model. The adapter is intentionally small and separate from DiffusionGemma so the base model remains untouched.
The model is part of
the-shape-of-text, a
hackathon research project for style alignment. The core idea is to move beyond
generic instruction-following and train/evaluate against concrete writing
distribution features:
DiffusionGemma is a discrete text diffusion model, so it is trained through a diffusion-aware denoising objective rather than a standard causal-LM next-token objective.
Use this adapter for draft generation and rewriting of short founder/social posts from a rough brief.
Example target prompt shape:
Rewrite this rough post into one finished founder-style LinkedIn post.
Preserve the point, the concrete facts, and the human rhythm.
Rough draft:
The model finally loads in LM Studio, but the first answer still sounds like a
template. That is not a win. If the local model needs five retries and a perfect
prompt to write a normal post, we did not train it enough. The goal is Gemma
writing well on the first try.
Return only one finished post. No headings, options, hashtags, placeholders, or
analysis. Write 45-130 words in 3-7 short paragraphs with at least one short
standalone line. End cleanly.
This is a PEFT adapter for DiffusionGemma. Use a DiffusionGemma-capable Unsloth/Transformers stack and keep the base model separate:
import torch
from peft import PeftModel
from unsloth import FastModel
base_model, processor = FastModel.from_pretrained(
model_name="unsloth/diffusiongemma-26B-A4B-it",
dtype=torch.bfloat16,
load_in_4bit=False,
)
model = PeftModel.from_pretrained(
base_model,
"micic-mihajlo/diffusiongemma-social-writer-lora",
)
Do not load this with AutoModelForCausalLM: DiffusionGemma is not a normal
autoregressive causal language model.
Best live adapter snapshot:
micic-mihajlo/diffusiongemma-social-writer-loraunsloth/diffusiongemma-26B-A4B-ita100-large (NVIDIA A100-SXM4-80GB)7e-5Training data lives in the GitHub repository under
examples/founder_rewrite_instructions/ and
configs/founder_rewrite_eval_briefs.jsonl. It is synthetic/generic founder
rewrite data and is intentionally decoupled from any private company corpus,
brand voice, customer data, or protected identity.
The live adapter currently passes 6 of 10 held-out founder rewrite checks:
{
"passed": 6,
"failed": 4,
"failure_rate": 0.4,
"total": 10
}
The quality gate checks for:
The uploaded files in this repo include:
training_metadata.jsontrain_loss.jsonleval_generations.jsonleval_quality_report.jsonThere is also a separate remote DiffusionGemma GGUF smoke test in the GitHub repo that passed the same founder rewrite gate 10/10 with a prompt/runtime configuration. That smoke test is useful evidence for the runtime path, while this repository is the trained LoRA adapter artifact.
This is a hackathon adapter, not a production writing system.
For practical use, run generation behind a small validator that rejects outputs with missing anchors, repeated phrases, placeholders, or special-token leaks.
This adapter is not intended for impersonation, deceptive authorship claims, or automated posting without human review. It should be treated as a drafting tool for generic founder/social writing.
@misc{shape_of_text_diffusiongemma_lora_2026,
title = {DiffusionGemma Social Writer LoRA},
author = {Mihajlo Micic},
year = {2026},
howpublished = {\url{https://huggingface.co/micic-mihajlo/diffusiongemma-social-writer-lora}},
}