Downloads · 30 days
0
Adnane10/AdsGeniusAI
AdsGeniusAI is a text generation model from Adnane10. Use it when you need the model to write or continue text. It is set up for transformers.
This is a fine-tuned version of Microsoft's phi-2 language model, adapted for generating high-quality marketing content such as ad copy, slogans, and promotional text. It uses prompt-response training to structure out…
Downloads · 30 days
0
Access
Public
Updated Mar 10, 2025
Repo size
189 MB
Likes
3
Public
Click a slice to open those files.
.safetensors189 MB · 98%
From the Hugging Face model README
This is a fine-tuned version of Microsoft's phi-2 language model, adapted for generating high-quality marketing content such as ad copy, slogans, and promotional text. It uses prompt-response training to structure outputs fluently and persuasively.
A fine-tuned Causal Language Model (CLM) based on microsoft/phi-2, optimized to produce structured marketing text with consistent formatting and clarity.
Marketing teams can input a product name and short description to generate ad copy Copywriters seeking inspiration or quick content drafts Startup founders, product teams, or solopreneurs generating headlines and taglines
Not intended for factual, academic, or scientific content generation Not suitable for generating personal, sensitive, or confidential information May not generalize well to domains outside of marketing or product promotion
While the model generates fluent and persuasive marketing text, it may:
Include overly generic, exaggerated, or unverifiable claims Mimic clichés or stereotypes from marketing-focused training data Lack fact-checking for health-related, numerical, or product safety statements
Use human review and editing before publishing outputs Consider further fine-tuning the model on your brand voice, domain, or regulatory constraints if needed
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Adnane10/AdsGeniusAI")
model = AutoModelForCausalLM.from_pretrained("Adnane10/AdsGeniusAI")
prompt = "Create an ad for a vegan skincare brand that emphasizes natural ingredients and sustainability."
inputs = tokenizer(prompt, return_tensors='pt').to('cuda')
output = model.generate(**inputs, max_length=256, num_beams=5, temperature=0.7)
print(tokenizer.decode(output[0], skip_special_tokens=True))
Fine-tuned on a dataset of curated product advertisements and promotional templates, covering sectors such as:
Food & Beverage Tech & Gadgets Beauty & Skincare Fitness & Wellness
Precision: fp16 mixed precision Quantization: 4-bit (nf4) using BitsAndBytes Optimizer: AdamW Scheduler: Linear warmup + cosine decay Epochs: 3–6 (early stopping used) Framework: Hugging Face transformers, peft, accelerate, and bitsandbytes
Metrics
BLEU / ROUGE: For structural and surface evaluation Human Evaluation: Based on fluency, creativity, and relevance Manual Checks: On repetition and prompt adherence
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
microsoft/phi-2 (~2.7B parameters)AutoTokenizer from phi-2Libraries Used:
transformerspeftacceleratebitsandbytesThe model is based on Microsoft’s phi-2, a small-scale language model focused on reasoning and general-purpose NLP tasks. It was fine-tuned as a Causal Language Model (CLM) to generate high-quality, structured advertising copy using prompt-response style formatting. Quantized to 4-bit using bitsandbytes for efficiency.
@misc{freshpress-adgen, title={FreshPress Ad Generator}, author={Adnane Touiyate}, year={2025}, url={https://huggingface.co/Adnane10/phi2-marketing-generator}, note={Fine-tuned Phi-2 model for marketing and ad copy generation} }
Adnane Touiyate (@Adnane10)
For questions or collaborations, reach out via LinkedIn or email: [email protected]