Instructions to use Firemedic15/Qwen2.5_Risk_1.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Firemedic15/Qwen2.5_Risk_1.5B with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Firemedic15/Qwen2.5_Risk_1.5B", filename="Qwen2.5_Risk_1.5B.gguf", )
llm.create_chat_completion( messages = "{\n \"question\": \"What is my name?\",\n \"context\": \"My name is Clara and I live in Berkeley.\"\n}" ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Firemedic15/Qwen2.5_Risk_1.5B 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 Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M # Run inference directly in the terminal: llama cli -hf Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M # Run inference directly in the terminal: llama cli -hf Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M
Use Docker
docker model run hf.co/Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Firemedic15/Qwen2.5_Risk_1.5B with Ollama:
ollama run hf.co/Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M
- Unsloth Studio
How to use Firemedic15/Qwen2.5_Risk_1.5B with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Firemedic15/Qwen2.5_Risk_1.5B to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Firemedic15/Qwen2.5_Risk_1.5B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Firemedic15/Qwen2.5_Risk_1.5B to start chatting
- Pi
How to use Firemedic15/Qwen2.5_Risk_1.5B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Firemedic15/Qwen2.5_Risk_1.5B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Firemedic15/Qwen2.5_Risk_1.5B: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:8080/v1 hermes config set model.default Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use Firemedic15/Qwen2.5_Risk_1.5B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Firemedic15/Qwen2.5_Risk_1.5B: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:8080/v1 \ --custom-model-id "Firemedic15/Qwen2.5_Risk_1.5B: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"
- Docker Model Runner
How to use Firemedic15/Qwen2.5_Risk_1.5B with Docker Model Runner:
docker model run hf.co/Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M
- Lemonade
How to use Firemedic15/Qwen2.5_Risk_1.5B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Firemedic15/Qwen2.5_Risk_1.5B:Q4_K_M
Run and chat with the model
lemonade run user.Qwen2.5_Risk_1.5B-Q4_K_M
List all available models
lemonade list
Qwen2.5_Risk_1.5B — GGUF
GGUF quantized version of Firemedic15/Qwen2.5_Risk_1.5B, a Qwen2.5-1.5B-Instruct model fine-tuned on the Firemedic15/Travel_Risk_Data dataset for geopolitical travel risk analysis and OSINT-style security question answering.
This GGUF variant is intended for local inference via llama.cpp, Ollama, LM Studio, and compatible runtimes — no GPU required for most quantization levels.
Model Summary
| Field | Value |
|---|---|
| Base model | Qwen2.5-1.5B-Instruct |
| Fine-tuned version | Firemedic15/Qwen2.5_Risk_1.5B |
| Format | GGUF (quantized) |
| Task | Travel risk Q&A, security threat assessment |
| Language | English |
| License | MIT |
Intended Use
This model is built for security practitioners, travel risk analysts, and OSINT researchers who need fast, structured responses to questions like:
- What is the current conflict situation in [country]?
- What travel advisory level applies to [region]?
- What are the primary security risks for a traveler with [passport country] visiting [destination]?
- Summarize recent armed conflict events in [area] over the last 30 days.
It is deployed as the inference backend for the Firemedic15/OSINTTool Gradio Space, which combines this model with live data from ACLED, State Department advisories, RSS feeds, and airspace sources via a smolagents agentic loop.
This model is not suitable for:
- Medical, legal, or financial decisions
- Operational security planning without human verification
- Any context requiring real-time situational awareness (the model has a training cutoff and no live data access on its own)
Available Files
| File | Quantization | Size (approx.) | Recommended For |
|---|---|---|---|
Qwen2.5_Risk_1.5B.gguf |
F16 (full precision) | ~3.0 GB | GPU inference, maximum accuracy |
Qwen2.5_Risk_1.5B-Q4_K_M.gguf |
Q4_K_M | ~0.9 GB | CPU inference, laptops, low RAM |
Which should you use?
- If you have a GPU or want the highest fidelity output — use the F16 file.
- If you're running on a CPU, a laptop, or have less than 4 GB of RAM to spare — use Q4_K_M. For a 1.5B model the quality difference is minimal in practice.
Quickstart
Ollama
Option A — Pull directly from HuggingFace (no download needed):
ollama run hf.co/Firemedic15/Qwen2.5_Risk_1.5B
Option B — Install a local GGUF file:
This is useful if you've already downloaded the file or want to control which quantization you run.
Step 1 — Download the GGUF file
# F16 (full precision)
wget https://huggingface.co/Firemedic15/Qwen2.5_Risk_1.5B/resolve/main/Qwen2.5_Risk_1.5B.gguf
# Q4_K_M (quantized, recommended for CPU)
wget https://huggingface.co/Firemedic15/Qwen2.5_Risk_1.5B/resolve/main/Qwen2.5_Risk_1.5B-Q4_K_M.gguf
Step 2 — Create a Modelfile
Create a file named Modelfile (no extension) in the same directory as your GGUF:
FROM ./Qwen2.5_Risk_1.5B-Q4_K_M.gguf
SYSTEM """You are a professional OSINT intelligence analyst specializing in geopolitical conflict and security threat assessment. Provide structured, factual risk assessments based on the information available to you."""
PARAMETER temperature 0.7
PARAMETER top_p 0.9
PARAMETER num_ctx 4096
Swap Qwen2.5_Risk_1.5B-Q4_K_M.gguf for the F16 filename if you downloaded that one instead.
Step 3 — Register the model with Ollama
ollama create qwen-risk -f Modelfile
Step 4 — Run it
ollama run qwen-risk
Once running, query it directly:
ollama run qwen-risk "What are the primary security risks for travelers in Sudan?"
Or use the OpenAI-compatible API that Ollama exposes:
import requests
response = requests.post(
"http://localhost:11434/api/chat",
json={
"model": "qwen-risk",
"messages": [
{"role": "user", "content": "Assess the travel risk for Ukraine right now."}
],
"stream": False,
}
)
print(response.json()["message"]["content"])
llama.cpp (CLI)
# macOS
brew install llama.cpp
llama-cli -hf Firemedic15/Qwen2.5_Risk_1.5B
# Windows
winget install llama.cpp
llama-cli -hf Firemedic15/Qwen2.5_Risk_1.5B
llama.cpp (OpenAI-compatible server)
llama-server -hf Firemedic15/Qwen2.5_Risk_1.5B
# Exposes http://localhost:8080/v1 — compatible with any OpenAI client
llama-cpp-python
from llama_cpp import Llama
# F16 — full precision, best for GPU
llm = Llama.from_pretrained(
repo_id="Firemedic15/Qwen2.5_Risk_1.5B",
filename="Qwen2.5_Risk_1.5B.gguf",
)
# Q4_K_M — quantized, best for CPU / low RAM
llm = Llama.from_pretrained(
repo_id="Firemedic15/Qwen2.5_Risk_1.5B",
filename="Qwen2.5_Risk_1.5B-Q4_K_M.gguf",
)
response = llm.create_chat_completion(
messages=[
{
"role": "system",
"content": "You are a professional OSINT analyst specializing in geopolitical travel risk assessment."
},
{
"role": "user",
"content": "What are the primary security risks for travelers in Sudan right now?"
}
],
max_tokens=512,
temperature=0.7,
)
print(response["choices"][0]["message"]["content"])
Docker
docker model run hf.co/Firemedic15/Qwen2.5_Risk_1.5B
LM Studio / Jan
Search for Firemedic15/Qwen2.5_Risk_1.5B in the model browser and download directly.
Prompt Format
This model uses the Qwen2.5 chat template. Structure your prompts as:
<|im_start|>system
You are a professional OSINT intelligence analyst specializing in geopolitical conflict and security threat assessment.
<|im_end|>
<|im_start|>user
[Your question here]
<|im_end|>
<|im_start|>assistant
For best results, include relevant context (country, timeframe, traveler profile) in the user turn rather than relying on the model's training data alone.
Training Details
- Base: Qwen2.5-1.5B-Instruct
- Method: Supervised fine-tuning (SFT) via HuggingFace TRL + PEFT
- Dataset: Firemedic15/Travel_Risk_Data
- Domain: Country-level risk assessments, conflict event summaries, advisory reasoning, embassy contact generation, airspace status interpretation
- Full precision version: Firemedic15/Qwen2.5_Risk_1.5B
Limitations
- No live data. The model has a training cutoff and does not fetch real-time conflict or advisory data on its own. For live analysis, use the OSINTTool Space which combines this model with live data pipelines.
- 1.5B scale. Tool-calling and structured JSON output are shallower than larger models. Outputs should be treated as analyst assistance, not authoritative assessments.
- English only. Fine-tuned on English-language data. Performance on non-English queries is not validated.
- Not for operational use without verification. AI-generated risk assessments from open sources are a starting point, not a finished product.
Related Resources
| Resource | Link |
|---|---|
| Full precision model | Firemedic15/Qwen2.5_Risk_1.5B |
| Merged model | Firemedic15/qwen25-1.5B-travel-risk-analysis-merged |
| Training dataset | Firemedic15/Travel_Risk_Data |
| Live demo (Gradio Space) | Firemedic15/OSINTTool |
| GitHub | de0015 |
License
MIT. See LICENSE for full terms.
Built by Firemedic15 — security architect, former rescue paramedic, builder not buyer.
- Downloads last month
- 476
4-bit
Model tree for Firemedic15/Qwen2.5_Risk_1.5B
Unable to build the model tree, the base model loops to the model itself. Learn more.