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.

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
-
Safetensors
Model size
4B params
Tensor type
F16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for MuhammadSanan99989/safescan-phi3-mini-intent-gemini

Adapter
(871)
this model