Views
No views yet
| Metric | Baseline | Qwen-Marketing-S1 |
|---|---|---|
| Aggregate score | 0.954 | 0.999 |
| Parses as JSON | 0.95 | 1.00 |
| Correct array shape | 0.95 | 1.00 |
| Post count 6–8 | 0.93 | 1.00 |
| Posts with all keys | 0.94 | 1.00 |
| Valid platforms | 0.95 | 1.00 |
| Valid content types | 0.95 | 1.00 |
| Hashtags 5–15 | 0.94 | 0.99 |
| Caption within platform limit | 0.94 | 1.00 |
1{
2 "platform": "instagram",
3 "content_type": "carousel",
4 "caption": "...",
5 "hashtags": ["...", "..."],
6 "media_prompt": "a prompt for an image model",
7 "reasoning": "why this post fits the brief"
8}platform: instagram, twitter/x, linkedin, facebook, tiktok.
Valid content_type: text, image, video, carousel, reel.1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model_id = "AbdulrahmanOmar/qwen-marketing-s1"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(
7 model_id, torch_dtype=torch.bfloat16, device_map="auto"
8)
9
10messages = [
11 {"role": "system", "content": "You are a senior content creator within an AI marketing platform. Output the deliverable immediately as one valid JSON array and nothing else."},
12 {"role": "user", "content": "Create a social media content calendar for a specialty coffee roaster launching a summer single-origin Ethiopian bean. Platforms: instagram, tiktok. Create 6-8 posts."},
13]
14inputs = tokenizer.apply_chat_template(
15 messages, add_generation_prompt=True, return_tensors="pt"
16).to(model.device)
17out = model.generate(inputs, max_new_tokens=2048, do_sample=False)
18print(tokenizer.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))enable_thinking=False; keep thinking mode off at inference.Qwen/Qwen2.5-14B-Instruct-AWQ) generated
content plans over 1,400 synthetic brand/campaign scenarios; only schema-valid
outputs were kept as training targets (1,321 pairs; 94.4% valid).| Setting | Value |
|---|---|
| LoRA rank / alpha / dropout | 16 / 32 / 0.05 |
| Epochs | 3 |
| Learning rate / schedule | 2e-4 / cosine, 3% warmup |
| Max sequence length | 2560 |
| Effective batch size | 16 |
| Optimizer | paged AdamW 8-bit |
| Training examples | 1,321 |
marketeam/Qwen-Marketing (Apache-2.0).