Instructions to use developermate/phi4-phishing-url-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use developermate/phi4-phishing-url-detector with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/phi-4-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "developermate/phi4-phishing-url-detector") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use developermate/phi4-phishing-url-detector with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf developermate/phi4-phishing-url-detector:Q4_K_M # Run inference directly in the terminal: llama cli -hf developermate/phi4-phishing-url-detector:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf developermate/phi4-phishing-url-detector:Q4_K_M # Run inference directly in the terminal: llama cli -hf developermate/phi4-phishing-url-detector:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf developermate/phi4-phishing-url-detector:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf developermate/phi4-phishing-url-detector:Q4_K_M
Use Docker
docker model run hf.co/developermate/phi4-phishing-url-detector:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use developermate/phi4-phishing-url-detector with Ollama:
ollama run hf.co/developermate/phi4-phishing-url-detector:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use developermate/phi4-phishing-url-detector with Docker Model Runner:
docker model run hf.co/developermate/phi4-phishing-url-detector:Q4_K_M
- Lemonade
How to use developermate/phi4-phishing-url-detector with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull developermate/phi4-phishing-url-detector:Q4_K_M
Run and chat with the model
lemonade run user.phi4-phishing-url-detector-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Download checkpoint-30/trainer_state.json from developermate/phi4-phishing-url-detector: direct link, hf CLI and curl.
- Browser
- Download file 5.29 kB
-
https://huggingface.co/developermate/phi4-phishing-url-detector/resolve/main/checkpoint-30/trainer_state.json
- Command line
-
hf download hf://developermate/phi4-phishing-url-detector/checkpoint-30/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/developermate/phi4-phishing-url-detector/resolve/main/checkpoint-30/trainer_state.json
5.29 kB
| { | |
| "best_global_step": null, | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 0.03, | |
| "eval_steps": 500, | |
| "global_step": 30, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.001, | |
| "grad_norm": 0.48515477776527405, | |
| "learning_rate": 0.0, | |
| "loss": 0.9307, | |
| "step": 1 | |
| }, | |
| { | |
| "epoch": 0.002, | |
| "grad_norm": 0.5589320659637451, | |
| "learning_rate": 4e-05, | |
| "loss": 1.0411, | |
| "step": 2 | |
| }, | |
| { | |
| "epoch": 0.003, | |
| "grad_norm": 0.4466976225376129, | |
| "learning_rate": 8e-05, | |
| "loss": 0.8791, | |
| "step": 3 | |
| }, | |
| { | |
| "epoch": 0.004, | |
| "grad_norm": 0.39881905913352966, | |
| "learning_rate": 0.00012, | |
| "loss": 0.7788, | |
| "step": 4 | |
| }, | |
| { | |
| "epoch": 0.005, | |
| "grad_norm": 0.4025152623653412, | |
| "learning_rate": 0.00016, | |
| "loss": 0.5943, | |
| "step": 5 | |
| }, | |
| { | |
| "epoch": 0.006, | |
| "grad_norm": 0.7562857866287231, | |
| "learning_rate": 0.0002, | |
| "loss": 0.3937, | |
| "step": 6 | |
| }, | |
| { | |
| "epoch": 0.007, | |
| "grad_norm": 0.6124563217163086, | |
| "learning_rate": 0.000192, | |
| "loss": 0.4734, | |
| "step": 7 | |
| }, | |
| { | |
| "epoch": 0.008, | |
| "grad_norm": 0.3621676564216614, | |
| "learning_rate": 0.00018400000000000003, | |
| "loss": 0.3474, | |
| "step": 8 | |
| }, | |
| { | |
| "epoch": 0.009, | |
| "grad_norm": 0.3578920066356659, | |
| "learning_rate": 0.00017600000000000002, | |
| "loss": 0.254, | |
| "step": 9 | |
| }, | |
| { | |
| "epoch": 0.01, | |
| "grad_norm": 0.25570112466812134, | |
| "learning_rate": 0.000168, | |
| "loss": 0.1653, | |
| "step": 10 | |
| }, | |
| { | |
| "epoch": 0.011, | |
| "grad_norm": 0.2573506534099579, | |
| "learning_rate": 0.00016, | |
| "loss": 0.3121, | |
| "step": 11 | |
| }, | |
| { | |
| "epoch": 0.012, | |
| "grad_norm": 0.16991353034973145, | |
| "learning_rate": 0.000152, | |
| "loss": 0.163, | |
| "step": 12 | |
| }, | |
| { | |
| "epoch": 0.013, | |
| "grad_norm": 0.15896664559841156, | |
| "learning_rate": 0.000144, | |
| "loss": 0.183, | |
| "step": 13 | |
| }, | |
| { | |
| "epoch": 0.014, | |
| "grad_norm": 0.2081061154603958, | |
| "learning_rate": 0.00013600000000000003, | |
| "loss": 0.4264, | |
| "step": 14 | |
| }, | |
| { | |
| "epoch": 0.015, | |
| "grad_norm": 0.14398203790187836, | |
| "learning_rate": 0.00012800000000000002, | |
| "loss": 0.1073, | |
| "step": 15 | |
| }, | |
| { | |
| "epoch": 0.016, | |
| "grad_norm": 0.11203885078430176, | |
| "learning_rate": 0.00012, | |
| "loss": 0.1926, | |
| "step": 16 | |
| }, | |
| { | |
| "epoch": 0.017, | |
| "grad_norm": 0.096202053129673, | |
| "learning_rate": 0.00011200000000000001, | |
| "loss": 0.1808, | |
| "step": 17 | |
| }, | |
| { | |
| "epoch": 0.018, | |
| "grad_norm": 0.12249837070703506, | |
| "learning_rate": 0.00010400000000000001, | |
| "loss": 0.1507, | |
| "step": 18 | |
| }, | |
| { | |
| "epoch": 0.019, | |
| "grad_norm": 0.15897299349308014, | |
| "learning_rate": 9.6e-05, | |
| "loss": 0.2637, | |
| "step": 19 | |
| }, | |
| { | |
| "epoch": 0.02, | |
| "grad_norm": 0.17003057897090912, | |
| "learning_rate": 8.800000000000001e-05, | |
| "loss": 0.2461, | |
| "step": 20 | |
| }, | |
| { | |
| "epoch": 0.021, | |
| "grad_norm": 0.17421288788318634, | |
| "learning_rate": 8e-05, | |
| "loss": 0.1678, | |
| "step": 21 | |
| }, | |
| { | |
| "epoch": 0.022, | |
| "grad_norm": 0.11303619295358658, | |
| "learning_rate": 7.2e-05, | |
| "loss": 0.126, | |
| "step": 22 | |
| }, | |
| { | |
| "epoch": 0.023, | |
| "grad_norm": 0.18542885780334473, | |
| "learning_rate": 6.400000000000001e-05, | |
| "loss": 0.1072, | |
| "step": 23 | |
| }, | |
| { | |
| "epoch": 0.024, | |
| "grad_norm": 0.1088978499174118, | |
| "learning_rate": 5.6000000000000006e-05, | |
| "loss": 0.1454, | |
| "step": 24 | |
| }, | |
| { | |
| "epoch": 0.025, | |
| "grad_norm": 0.10158061981201172, | |
| "learning_rate": 4.8e-05, | |
| "loss": 0.1733, | |
| "step": 25 | |
| }, | |
| { | |
| "epoch": 0.026, | |
| "grad_norm": 0.1440214216709137, | |
| "learning_rate": 4e-05, | |
| "loss": 0.2901, | |
| "step": 26 | |
| }, | |
| { | |
| "epoch": 0.027, | |
| "grad_norm": 0.16783462464809418, | |
| "learning_rate": 3.2000000000000005e-05, | |
| "loss": 0.3499, | |
| "step": 27 | |
| }, | |
| { | |
| "epoch": 0.028, | |
| "grad_norm": 0.10659857839345932, | |
| "learning_rate": 2.4e-05, | |
| "loss": 0.2441, | |
| "step": 28 | |
| }, | |
| { | |
| "epoch": 0.029, | |
| "grad_norm": 0.08948837220668793, | |
| "learning_rate": 1.6000000000000003e-05, | |
| "loss": 0.1294, | |
| "step": 29 | |
| }, | |
| { | |
| "epoch": 0.03, | |
| "grad_norm": 0.09460123628377914, | |
| "learning_rate": 8.000000000000001e-06, | |
| "loss": 0.1951, | |
| "step": 30 | |
| } | |
| ], | |
| "logging_steps": 1, | |
| "max_steps": 30, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 1, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": true | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 1.437231715141632e+16, | |
| "train_batch_size": 2, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |