Text Generation
PEFT
Safetensors
English
phi3
phi-3
fine-tuned
intent-classification
mobile-security
flutter
qlora
conversational
custom_code
Run this model with HF Jobs
Run MuhammadSanan99989/safescan-phi3-mini-intent-gemini 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 to fine-tune https://huggingface.co/MuhammadSanan99989/safescan-phi3-mini-intent-gemini. 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/MuhammadSanan99989/safescan-phi3-mini-intent-gemini 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/MuhammadSanan99989/safescan-phi3-mini-intent-gemini. 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/MuhammadSanan99989/safescan-phi3-mini-intent-gemini. 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 MuhammadSanan99989/safescan-phi3-mini-intent-gemini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use MuhammadSanan99989/safescan-phi3-mini-intent-gemini with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
SafeScan Phi-3 Mini β Intent Routing Model
Fine-tuned version of microsoft/Phi-3-mini-4k-instruct for the SafeScan mobile security utility app (Flutter).
What it does
Given a natural language security query, returns a structured JSON object routing the request to the correct SafeScan module.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
import torch
model = AutoModelForCausalLM.from_pretrained("MuhammadSanan99989/safescan-phi3-mini-intent-gemini", torch_dtype=torch.float16, device_map="auto", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("MuhammadSanan99989/safescan-phi3-mini-intent-gemini", trust_remote_code=True)
pipe = pipeline('text-generation', model=model, tokenizer=tokenizer)
prompt = "<|user|>\nCheck if my WiFi is secure<|end|>\n<|assistant|>"
result = pipe(prompt, max_new_tokens=128, do_sample=False)
print(result[0]['generated_text'][len(prompt):])
- Downloads last month
- -
Model tree for MuhammadSanan99989/safescan-phi3-mini-intent-gemini
Base model
microsoft/Phi-3-mini-4k-instruct