CoolFace
Modelpublic

saleen/Syntaxa_Final_full

sourceHugging Facemitupdated 5mo agoView on Hugging Face
0likes11downloads
Model Card

Syntaxa-Prompt-Gen (Phi-3.5-mini-Instruct Fine-Tuned)

Syntaxa is a specialized fine-tuned version of Microsoft's Phi-3.5-mini-instruct. It is designed to act as a "Prompt Generator," turning simple persona descriptions into detailed, high-quality system prompts for other LLMs.

๐Ÿš€ Model Details

  • โ€”Developed by: Saleh (saleen)
  • โ€”Model type: Causal Language Model (Transformer-based)
  • โ€”Base Model: microsoft/Phi-3.5-mini-instruct
  • โ€”Finetuning Technique: LoRA (Low-Rank Adaptation)
  • โ€”Training Focus: Instruction following for Persona-based prompt generation.

๐ŸŽฏ Intended Use

Syntaxa is intended to help users bridge the gap between a simple idea and a professional prompt.

  • โ€”Input Format: ### Instruction: Act as a [Persona]. Write a prompt for yourself.\n\n### Response:
  • โ€”Output: A comprehensive, structured system prompt including variables and specific constraints.

๐Ÿ› ๏ธ Training Procedure

The model was fine-tuned using the following configuration:

  • โ€”Epochs: 3
  • โ€”Batch Size: 2 (with Gradient Accumulation Steps: 4)
  • โ€”Learning Rate: 2e-4
  • โ€”Scheduler: Cosine
  • โ€”Precision: FP16
  • โ€”Dataset: Custom instruction-set focusing on the "Awesome ChatGPT Prompts" structure.

๐Ÿ’ป How to Use

python
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline

model_id = "saleen/Syntaxa_Final_Full"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", trust_remote_code=False)

pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)

prompt = "### Instruction: Act as a Senior Web Developer. Write a prompt for yourself.\n\n### Response:"
print(pipe(prompt, max_new_tokens=256)[0]['generated_text'])