Views
No views yet
google/gemma-3-1b-it to write simple, conversational, twitter-like LinkedIn posts — short sentences, 1-2 line paragraphs, no cringe drama.Thrilled to announce, Humbled to share, Game changer, rocket spam 🚀🔥, 10 hashtags, or Let's dive in 👇.(like this), ends casual That's it. / Peace ✌🏻, sounds like talking to a friend.Built as a learning project for dataset curation → QLoRA → HF publish on a T4.
{"prompt": "Write a LinkedIn post about: Why readability beats drama", "response": "Readability beats drama. Always..."}text (<start_of_turn>user/model).google/gemma-3-1b-it via unsloth/gemma-3-1b-it-bnb-4bit (4-bit NF4 storage, float32 compute — Gemma3 doesn't support float16 on T4)q_proj,k_proj,v_proj,o_proj,gate_proj,up_proj,down_proj, 4-bit, gradient checkpointing unslothml-exp/notebooks/train_colab_self_contained.ipynb (self-contained, no GitHub needed)1<start_of_turn>user
2Write a LinkedIn post about: Why readability beats drama
3<end_of_turn>
4<start_of_turn>model<start_of_turn> will degrade style.1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base_id = "google/gemma-3-1b-it"
5adapter_id = "harsh-jos/gemma-3-1b-it-linkedin-natural"
6
7tokenizer = AutoTokenizer.from_pretrained(base_id)
8base = AutoModelForCausalLM.from_pretrained(base_id, device_map="auto")
9model = PeftModel.from_pretrained(base, adapter_id)
10
11prompt = "Write a LinkedIn post about: Why readability beats drama"
12template = "<start_of_turn>user\n{prompt}<end_of_turn>\n<start_of_turn>model\n"
13inputs = tokenizer(template.format(prompt=prompt), return_tensors="pt").to(model.device)
14out = model.generate(**inputs, max_new_tokens=200, temperature=0.7, top_p=0.9, repetition_penalty=1.05, do_sample=True)
15text = tokenizer.decode(out[0], skip_special_tokens=True).split("<start_of_turn>model")[-1].replace("<end_of_turn>", "").strip()
16print(text)1# After merging outside 4-bit:
2# model_fp16, tok = FastLanguageModel.from_pretrained("google/gemma-3-1b-it", load_in_4bit=False)
3# model_fp16 = PeftModel.from_pretrained(model_fp16, adapter_id).merge_and_unload()
4from transformers import AutoModelForCausalLM, AutoTokenizer
5model = AutoModelForCausalLM.from_pretrained(adapter_id, device_map="auto") # if merged repoBase Gemma (cringe): 🚀 Thrilled to announce... In today's fast-paced world, let's dive into the tapestry of readability! Unlock the power... #AI #Leadership 👇This adapter: Readability beats drama. Always.Dramatic posts get views. Readable posts get replies.I used to write long, emotional stories. People scrolled. Now I write short sentences. One idea. Line breaks where you need to breathe.Same story, but now people feel I'm talking to them, not performing.
My first draft is always 300 words. Final is 120.How I cut: first pass, delete every sentence that doesn't support the one idea. Second pass, shorten every remaining sentence by 30%. Third pass, read aloud — if I stumble, rewrite.Most posts have one good paragraph hidden in three okay ones. Find it, keep it, delete the rest.
Boring tech wins.Postgres, Next.js, Vercel. Nothing exciting. Everything works.Exciting tech is for conference talks. Boring tech is for shipping.
google/gemma-3-1b-it terms.1@misc{linkedin-natural-150,
2 title={LinkedIn Natural 150 — Twitter-like LinkedIn style tuning for Gemma 3 1B},
3 author={Harsh Joshi},
4 year={2026},
5 publisher={Hugging Face},
6 howpublished={\url{https://huggingface.co/datasets/harsh-jos/linkedin-natural-150}}
7}CLAUDE.md for agentic coding.