Run this model with HF Jobs
Run pawlaszc/DigitalForensicsText2SQLite 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/pawlaszc/DigitalForensicsText2SQLite. 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/pawlaszc/DigitalForensicsText2SQLite 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/pawlaszc/DigitalForensicsText2SQLite. 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.
Instructions to use pawlaszc/DigitalForensicsText2SQLite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pawlaszc/DigitalForensicsText2SQLite with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pawlaszc/DigitalForensicsText2SQLite") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pawlaszc/DigitalForensicsText2SQLite") model = AutoModelForCausalLM.from_pretrained("pawlaszc/DigitalForensicsText2SQLite", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use pawlaszc/DigitalForensicsText2SQLite 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 pawlaszc/DigitalForensicsText2SQLite:Q4_K_M # Run inference directly in the terminal: llama cli -hf pawlaszc/DigitalForensicsText2SQLite:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf pawlaszc/DigitalForensicsText2SQLite:Q4_K_M # Run inference directly in the terminal: llama cli -hf pawlaszc/DigitalForensicsText2SQLite: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 pawlaszc/DigitalForensicsText2SQLite:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf pawlaszc/DigitalForensicsText2SQLite:Q4_K_M
Use Docker
docker model run hf.co/pawlaszc/DigitalForensicsText2SQLite:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use pawlaszc/DigitalForensicsText2SQLite with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pawlaszc/DigitalForensicsText2SQLite" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pawlaszc/DigitalForensicsText2SQLite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/pawlaszc/DigitalForensicsText2SQLite:Q4_K_M
- SGLang
How to use pawlaszc/DigitalForensicsText2SQLite 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 "pawlaszc/DigitalForensicsText2SQLite" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pawlaszc/DigitalForensicsText2SQLite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "pawlaszc/DigitalForensicsText2SQLite" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pawlaszc/DigitalForensicsText2SQLite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use pawlaszc/DigitalForensicsText2SQLite with Ollama:
ollama run hf.co/pawlaszc/DigitalForensicsText2SQLite:Q4_K_M
- Unsloth Desktop
- Pi
How to use pawlaszc/DigitalForensicsText2SQLite with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf pawlaszc/DigitalForensicsText2SQLite:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "pawlaszc/DigitalForensicsText2SQLite:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use pawlaszc/DigitalForensicsText2SQLite with Docker Model Runner:
docker model run hf.co/pawlaszc/DigitalForensicsText2SQLite:Q4_K_M
- Lemonade
How to use pawlaszc/DigitalForensicsText2SQLite with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull pawlaszc/DigitalForensicsText2SQLite:Q4_K_M
Run and chat with the model
lemonade run user.DigitalForensicsText2SQLite-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use pawlaszc/DigitalForensicsText2SQLite with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf pawlaszc/DigitalForensicsText2SQLite:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default pawlaszc/DigitalForensicsText2SQLite:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use pawlaszc/DigitalForensicsText2SQLite with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf pawlaszc/DigitalForensicsText2SQLite:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "pawlaszc/DigitalForensicsText2SQLite:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Update MODEL_CARD.md
Browse files21 unmodified lines222324252627282930313212 unmodified lines454647484950511 unmodified line5354555657585916 unmodified lines767778798081828315 unmodified lines9910010110210310410510610710810911011111211311416 unmodified lines1311321331341351361371381391407 unmodified lines148149150151152153154155156157158159160164 unmodified lines32532632732832933033133233333433533633733833934034134234356 unmodified lines40040140240321 unmodified linesname: Text-to-SQL Generationdataset:type: mobile-forensicsname: SQLiteDS β Mobile Forensics SQL Dataset (corrected)metrics:- type: accuracyvalue: 91.0name: Overall Accuracy (without app name)- type: accuracyvalue: 95.1name: Easy Queries Accuracy12 unmodified lines**ForSQLiteLM** (ForensicSQL-Llama-3.2-3B) is a fine-tuned Llama 3.2-3B model specializedfor generating SQLite queries from natural language requests against mobile forensic databases.The model converts investigative questions into executable SQL queries across a wide range offorensic artifact databases β WhatsApp, Signal, iMessage, Android SMS, iOS Health, WeChat,Instagram, blockchain wallets, and many more.This model was developed as part of a research project and accompanying journal paper1 unmodified line[FQLite](https://github.com/pawlaszczyk/fqlite), an established open-source forensicanalysis tool.> **Key result:** 91.0% execution accuracy on a 100-example held-out test set β within> 4 percentage points of GPT-4o (95.0%) evaluated under identical conditions> (McNemar test: p β 0.39, not significant at Ξ± = 0.05), while running fully locally> with no internet connectivity required.16 unmodified lines| Metric | Value ||---|---|| **Overall Accuracy** | **91.0%** (91/100) || 95% CI (Wilson) | [83.8%, 95.2%] || Executable Queries | 92/100 || GPT-4o Accuracy | 95.0% (gap: 4 pp, p β 0.39) || Base Model (no fine-tuning) | 35.0% |15 unmodified lines| Domain | Accuracy | n | 95% CI ||---|---|---|---|| Messaging & Social | **100.0%** | 28/28 | [87.9%, 100.0%] || Android Artifacts | **94.4%** | 17/18 | [74.2%, 99.0%] || Productivity & Other | **88.9%** | 16/18 | [67.2%, 96.9%] || iOS CoreData | **84.0%** | 21/25 | [65.3%, 93.6%] || Finance & Crypto | **81.8%** | 9/11 | [52.3%, 94.9%] |### Prompt Configuration Ablation| Configuration | Overall | Easy | Medium | Hard | iOS ||---|---|---|---|---|---|| **WITHOUT App Name** β | **91.0%** | **95.1%** | 87.5% | **88.9%** | 84.0% || WITH App Name | 88.0% | 92.7% | 87.5% | 81.5% | **88.0%** |β Primary configuration β omitting the application name from the prompt yields16 unmodified lines| Base model (no fine-tuning) | β | 35.0% | β || Fine-tuned, no augmentation | β | 68.0% | +33 pp || + Data augmentation (3.4Γ) | β | 74.0% | +6 pp || + Extended training (7 epochs) | 0.3617 | 84.0% | +10 pp || + Post-processing pipeline | 0.3617 | 87.0% | +3 pp || + Execution feedback | 0.3617 | 90.0% | +3 pp || + Corrected training dataset (v5) | **0.3043** | **91.0%** | +1 pp |## Intended Use7 unmodified lines> **ForSQLiteLM is not a replacement for SQL expertise.** It generates candidate queries> that require review by a practitioner with sufficient SQL knowledge before any reliance> is placed on their results. The 91.0% accuracy means approximately **1 in 11 queries> contains an error**. In court-admissible or case-critical work, all outputs must be> independently validated.### Out-of-Scope Use- Autonomous forensic decision-making without human review- Production systems requiring >95% guaranteed accuracy- General-purpose SQL generation outside the forensic domain- Non-SQLite databases (PostgreSQL, MySQL, etc.)164 unmodified lines| Training time | ~17.6 hours || Best val loss | 0.3043 (epoch 7) |### Key Training Insight: Sequence LengthEarly training runs with `max_seq_length=512` truncated 92% of examples, causingthe model to learn schema generation (CREATE TABLE) instead of queries β resultingin only ~50% accuracy. Setting `max_seq_length=2048` eliminated truncation andimproved accuracy from 50% to 68% before augmentation, and to 91% after alltraining components were applied.## Limitations### Known Issues1. **iOS CoreData Schemas (84.0%):** The Z-prefix column naming convention(e.g., `ZISFROMME`, `ZTIMESTAMP`) provides no semantic signal from columnnames alone, making these schemas harder to reason about.2. **Hard Queries β 3.7 pp gap to GPT-4o:** Complex CTEs, recursive queries,56 unmodified lines**Disclaimer:** ForSQLiteLM is intended for research and forensic practitioner use.All generated SQL queries must be reviewed by a qualified practitioner beforeexecution in live forensic investigations. The authors accept no liability forincorrect conclusions drawn from unvalidated model outputs.21 unmodified lines222324252627282930313212 unmodified lines454647484950511 unmodified line5354555657585916 unmodified lines767778798081828315 unmodified lines9910010110210310410510610710810911011111211311416 unmodified lines1311321331341351361371381391407 unmodified lines148149150151152153154155156157158159164 unmodified lines32432532632732832933033133233333456 unmodified lines39139239339421 unmodified linesname: Text-to-SQL Generationdataset:type: mobile-forensicsname: Mobile Forensics SQL Datasetmetrics:- type: accuracyvalue: 91.0name: Overall Accuracy- type: accuracyvalue: 95.1name: Easy Queries Accuracy12 unmodified lines**ForSQLiteLM** (ForensicSQL-Llama-3.2-3B) is a fine-tuned Llama 3.2-3B model specializedfor generating SQLite queries from natural language requests against mobile forensic databases.The model converts investigative questions into executable SQL queries across a wide range offorensic artefact databases β WhatsApp, Signal, iMessage, Android SMS, iOS Health, WeChat,Instagram, blockchain wallets, and many more.This model was developed as part of a research project and accompanying journal paper1 unmodified line[FQLite](https://github.com/pawlaszczyk/fqlite), an established open-source forensicanalysis tool.> **Key result:** 93.0% execution accuracy on a 100-example held-out test set β within> 4 percentage points of GPT-4o (95.0%) evaluated under identical conditions> (McNemar test: p β 0.39, not significant at Ξ± = 0.05), while running fully locally> with no internet connectivity required.16 unmodified lines| Metric | Value ||---|---|| **Overall Accuracy** | **93.0%** (93/100) || 95% CI (Wilson) | [86.3%, 96.6%] || Executable Queries | 92/100 || GPT-4o Accuracy | 95.0% (gap: 4 pp, p β 0.39) || Base Model (no fine-tuning) | 35.0% |15 unmodified lines| Domain | Accuracy | n | 95% CI ||---|---|---|---|| Messaging & Social | **100.0%** | 28/28 | [87.9%, 100.0%] || Android Artifacts | **100.0%** | 17/18 | [74.2%, 99.0%] || Productivity & Other | **88.9%** | 16/18 | [67.2%, 96.9%] || iOS CoreData | **92.0%** | 21/25 | [65.3%, 93.6%] || Finance & Crypto | **81.8%** | 9/11 | [52.3%, 94.9%] |### Prompt Configuration Ablation| Configuration | Overall | Easy | Medium | Hard | iOS ||---|---|---|---|---|---|| **WITHOUT App Name** β | **93.0%** | **95.1%** | 87.5% | **88.9%** | 92.0% || WITH App Name | 88.0% | 92.7% | 87.5% | 81.5% | **88.0%** |β Primary configuration β omitting the application name from the prompt yields16 unmodified lines| Base model (no fine-tuning) | β | 35.0% | β || Fine-tuned, no augmentation | β | 68.0% | +33 pp || + Data augmentation (3.4Γ) | β | 74.0% | +6 pp || + Extended training (7 epochs) | 0.3617 | 92.0% | +10 pp || + Post-processing pipeline | 0.3617 | 87.0% | +3 pp || + Execution feedback | 0.3617 | 90.0% | +3 pp || + Corrected training dataset (v5) | **0.3043** | **93.0%** | +1 pp |## Intended Use7 unmodified lines> **ForSQLiteLM is not a replacement for SQL expertise.** It generates candidate queries> that require review by a practitioner with sufficient SQL knowledge before any reliance> is placed on their results. The 93.0% accuracy means approximately **1 in 14 queries> contains an error**. In court-admissible or case-critical work, all outputs must be> independently validated.### Out-of-Scope Use- Autonomous forensic decision-making without human review- General-purpose SQL generation outside the forensic domain- Non-SQLite databases (PostgreSQL, MySQL, etc.)164 unmodified lines| Training time | ~17.6 hours || Best val loss | 0.3043 (epoch 7) |## Limitations### Known Issues1. **iOS CoreData Schemas (92.0%):** The Z-prefix column naming convention(e.g., `ZISFROMME`, `ZTIMESTAMP`) provides no semantic signal from columnnames alone, making these schemas harder to reason about.2. **Hard Queries β 3.7 pp gap to GPT-4o:** Complex CTEs, recursive queries,56 unmodified lines**Disclaimer:** ForSQLiteLM is intended for research and forensic practitioner use.All generated SQL queries must be reviewed by a qualified practitioner beforeexecution in live forensic investigations. The authors accept no liability forincorrect conclusions drawn from unvalidated model outputs.