Run this model with HF Jobs
Run Adnane10/AdsGeniusAI on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Adnane10/AdsGeniusAI. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Adnane10/AdsGeniusAI on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Adnane10/AdsGeniusAI. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Adnane10/AdsGeniusAI. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Adnane10/AdsGeniusAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Adnane10/AdsGeniusAI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Adnane10/AdsGeniusAI")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Adnane10/AdsGeniusAI", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Adnane10/AdsGeniusAI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Adnane10/AdsGeniusAI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Adnane10/AdsGeniusAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Adnane10/AdsGeniusAI
- SGLang
How to use Adnane10/AdsGeniusAI with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Adnane10/AdsGeniusAI" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Adnane10/AdsGeniusAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Adnane10/AdsGeniusAI" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Adnane10/AdsGeniusAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Adnane10/AdsGeniusAI with Docker Model Runner:
docker model run hf.co/Adnane10/AdsGeniusAI
Update README.md
Browse files123345678910116128131415161718192021162223181920212223242526272829303132333424252627282930313238394033414243443446353637384839405041424344524546544748564950515258535460555657625859646061626663646568666768697071707172737475767273747580767782787980818283848687888990919293949596979899100101102103104105106107108109110111112113114115858687888990911179293119949512196979899123124125126127128129130131132133134135136137138139140141100101102103104105147148149150151152153154155156157158159160161162163164165106107108109110167111112169113171114115116117173118119120121122123175176177178179180181182183184185124125126187127128189129130131132133134135136191137193138139195140141197142143199144---library_name: transformerstags: []tags: - text-generation - ad-generation - marketing - transformers - pytorch - beam-search---
# Model Card for Model ID
<!-- Provide a quick summary of what the model is/does. --># 🧃 Model Card: Ad Generator for Marketing Copy
This is a fine-tuned version of Microsoft's [`phi-2`](https://huggingface.co/microsoft/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.
## Model Details
### Model Description
<!-- Provide a longer summary of what this model is. -->A fine-tuned Causal Language Model (CLM) based on `microsoft/phi-2`, optimized to produce structured marketing text with consistent formatting and clarity.
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
- **Developed by:** [More Information Needed]- **Funded by [optional]:** [More Information Needed]- **Shared by [optional]:** [More Information Needed]- **Model type:** [More Information Needed]- **Language(s) (NLP):** [More Information Needed]- **License:** [More Information Needed]- **Finetuned from model [optional]:** [More Information Needed]
### Model Sources [optional]
<!-- Provide the basic links for the model. -->
- **Repository:** [More Information Needed]- **Paper [optional]:** [More Information Needed]- **Demo [optional]:** [More Information Needed]- **Developed by:** Adnane Touiyate- **Shared by :** [Adnane10](https://huggingface.co/Adnane10)- **Model type:** Causal Language Model (phi-2)- **Language(s):** English- **License:** MIT- **Finetuned from model:** microsoft/phi-2
## Uses
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
### Direct Use### ✅ Direct Use
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
[More Information Needed]
### Downstream Use [optional]Marketing teams can input a product name and short description to generate ad copyCopywriters seeking inspiration or quick content draftsStartup founders, product teams, or solopreneurs generating headlines and taglines
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->### 🚫 Out-of-Scope Use
[More Information Needed]Not intended for factual, academic, or scientific content generationNot suitable for generating personal, sensitive, or confidential informationMay not generalize well to domains outside of marketing or product promotion
### Out-of-Scope Use## ⚠️ Bias, Risks, and Limitations
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->While the model generates fluent and persuasive marketing text, it may:
[More Information Needed]Include overly generic, exaggerated, or unverifiable claimsMimic clichés or stereotypes from marketing-focused training dataLack fact-checking for health-related, numerical, or product safety statements
## Bias, Risks, and Limitations### 🔍 Recommendations
<!-- This section is meant to convey both technical and sociotechnical limitations. -->Use human review and editing before publishing outputsConsider further fine-tuning the model on your brand voice, domain, or regulatory constraints if needed
[More Information Needed]## 🚀 How to Get Started with the Model
### Recommendations```pythonfrom transformers import AutoTokenizer, AutoModelForCausalLM
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->tokenizer = AutoTokenizer.from_pretrained("Adnane10/AdsGeniusAI")model = AutoModelForCausalLM.from_pretrained("Adnane10/AdsGeniusAI")
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.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))```
## How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
## Training Details## 📊 Training Details
### Training Data
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->Fine-tuned on a dataset of curated product advertisements and promotional templates, covering sectors such as:
[More Information Needed]Food & BeverageTech & GadgetsBeauty & SkincareFitness & Wellness
### Training Procedure
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
#### Preprocessing [optional]
[More Information Needed]
#### Training Hyperparameters
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
#### Speeds, Sizes, Times [optional]
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
[More Information Needed]
## Evaluation
<!-- This section describes the evaluation protocols and provides the results. -->
### Testing Data, Factors & Metrics
#### Testing Data
<!-- This should link to a Dataset Card if possible. -->
[More Information Needed]
#### FactorsPrecision: fp16 mixed precisionQuantization: 4-bit (nf4) using BitsAndBytesOptimizer: AdamWScheduler: Linear warmup + cosine decayEpochs: 3–6 (early stopping used)Framework: Hugging Face transformers, peft, accelerate, and bitsandbytes
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->## 📈 Evaluation
[More Information Needed]Metrics
#### MetricsBLEU / ROUGE: For structural and surface evaluationHuman Evaluation: Based on fluency, creativity, and relevanceManual Checks: On repetition and prompt adherence
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
[More Information Needed]
### Results
[More Information Needed]
#### Summary
## Model Examination [optional]
<!-- Relevant interpretability work for the model goes here -->
[More Information Needed]
## Environmental Impact## 🌱 Environmental Impact
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** [More Information Needed]- **Hours used:** [More Information Needed]- **Cloud Provider:** [More Information Needed]- **Compute Region:** [More Information Needed]- **Carbon Emitted:** [More Information Needed]
## Technical Specifications [optional]
### Model Architecture and Objective
[More Information Needed]
### Compute Infrastructure
[More Information Needed]
#### Hardware
[More Information Needed]- **Hardware Type:** NVIDIA Tesla T4- **Hours used:** ~2 hours- **Cloud Provider:** Kaggle- **Estimated Carbon Emission:** < 0.5 kg CO₂
#### Software## 🔧 Technical Specifications
[More Information Needed]
## Citation [optional]- **Base Model:** `microsoft/phi-2` (~2.7B parameters) - **Tokenizer:** `AutoTokenizer` from `phi-2` - **Quantization:** 4-bit (NF4 with FP16 compute)
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->**Libraries Used:**- `transformers`- `peft`- `accelerate`- `bitsandbytes`
**BibTeX:**
[More Information Needed]
**APA:**
[More Information Needed]
## Glossary [optional]
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->### Model Architecture and ObjectiveThe 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.
[More Information Needed]## 📚 Citation [optional]
## More Information [optional]@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}}
[More Information Needed]
## Model Card Authors [optional]## ✍️ Model Card Authors
[More Information Needed]**Adnane Touiyate** ([@Adnane10](https://huggingface.co/Adnane10))
## Model Card Contact## 📬 Contact
[More Information Needed]For questions or collaborations, reach out via [LinkedIn](https://www.linkedin.com/in/adnanetouiyate/) or email: [adnanetouiayte11@gmail.com](mailto:adnanetouiayte11@gmail.com)README.md+87-142