Instructions to use Kami574/AeroMind-Phi4-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Kami574/AeroMind-Phi4-mini with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Kami574/AeroMind-Phi4-mini", filename="Phi-4-mini-instruct.Q8_0.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Kami574/AeroMind-Phi4-mini 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 Kami574/AeroMind-Phi4-mini:Q8_0 # Run inference directly in the terminal: llama cli -hf Kami574/AeroMind-Phi4-mini:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Kami574/AeroMind-Phi4-mini:Q8_0 # Run inference directly in the terminal: llama cli -hf Kami574/AeroMind-Phi4-mini:Q8_0
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 Kami574/AeroMind-Phi4-mini:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf Kami574/AeroMind-Phi4-mini:Q8_0
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 Kami574/AeroMind-Phi4-mini:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Kami574/AeroMind-Phi4-mini:Q8_0
Use Docker
docker model run hf.co/Kami574/AeroMind-Phi4-mini:Q8_0
- LM Studio
- Jan
- Ollama
How to use Kami574/AeroMind-Phi4-mini with Ollama:
ollama run hf.co/Kami574/AeroMind-Phi4-mini:Q8_0
- Unsloth Studio
How to use Kami574/AeroMind-Phi4-mini 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 Kami574/AeroMind-Phi4-mini 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 Kami574/AeroMind-Phi4-mini to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Kami574/AeroMind-Phi4-mini to start chatting
- Pi
How to use Kami574/AeroMind-Phi4-mini with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Kami574/AeroMind-Phi4-mini:Q8_0
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": "Kami574/AeroMind-Phi4-mini:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Kami574/AeroMind-Phi4-mini with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Kami574/AeroMind-Phi4-mini:Q8_0
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 Kami574/AeroMind-Phi4-mini:Q8_0
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use Kami574/AeroMind-Phi4-mini with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Kami574/AeroMind-Phi4-mini:Q8_0
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 "Kami574/AeroMind-Phi4-mini:Q8_0" \ --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 Kami574/AeroMind-Phi4-mini with Docker Model Runner:
docker model run hf.co/Kami574/AeroMind-Phi4-mini:Q8_0
- Lemonade
How to use Kami574/AeroMind-Phi4-mini with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Kami574/AeroMind-Phi4-mini:Q8_0
Run and chat with the model
lemonade run user.AeroMind-Phi4-mini-Q8_0
List all available models
lemonade list
llm.create_chat_completion(
messages = "No input example has been defined for this model task."
)AeroMind-Phi4-mini : GGUF
This model was finetuned and converted to GGUF format using Unsloth.
Example usage:
- For text only LLMs:
llama-cli -hf Kami574/AeroMind-Phi4-mini --jinja - For multimodal models:
llama-mtmd-cli -hf Kami574/AeroMind-Phi4-mini --jinja
Available Model files:
Phi-4-mini-instruct.Q8_0.gguf
Ollama
An Ollama Modelfile is included for easy deployment.
This was trained 2x faster with Unsloth

license: apache-2.0 base_model: unsloth/Phi-4-mini-instruct tags: - aerospace - engineering - physics - phi-4-mini - slm - fine-tuned language: - en pipeline_tag: text-generation datasets: - aerospace-qna-v6
🚀 Phi-4 Mini Aerospace Engineering Q&A Engine (v6)
This model is a fine-tuned version of Phi-4 Mini optimized for high-fidelity aerospace engineering assistance. It was trained on a custom synthetic dataset generating multi-turn, physics-grounded, and mathematically rigorous engineering dialogues across 30 aerospace subdomains.
🛠 Model Overview
- Base Architecture:
microsoft/Phi-4-mini-instruct - Dataset Version: V6 (Production SLM Fine-Tuning Ready)
- Format: Multi-Turn JSONL / ChatML with System Prompt Injection
- Train / Val Split: 90% Training / 10% Validation
📊 Dataset Breakdown by Subdomain
The dataset generation engine executes 1,000 global production iterations distributed uniformly across all 30 aerospace subdomains, yielding ~33–34 multi-turn conversation instances per subdomain (each containing 1 to 3 turn-pairs per instance).
| # | Subdomain Name | Target Instances | Turns / Sample | Est. Total Q&A Pairs |
|---|---|---|---|---|
| 01 | Aerodynamics | 33–34 | 1–3 | ~65–100 |
| 02 | Hypersonic Aerodynamics | 33–34 | 1–3 | ~65–100 |
| 03 | Boundary Layer Transition | 33–34 | 1–3 | ~65–100 |
| 04 | Aeroelasticity | 33–34 | 1–3 | ~65–100 |
| 05 | Structural Health Monitoring | 33–34 | 1–3 | ~65–100 |
| 06 | Composite Materials Engineering | 33–34 | 1–3 | ~65–100 |
| 07 | Rocket Propulsion | 33–34 | 1–3 | ~65–100 |
| 08 | Rocket Nozzle Design | 33–34 | 1–3 | ~65–100 |
| 09 | Turbomachinery | 33–34 | 1–3 | ~65–100 |
| 10 | Spacecraft Thermal Engineering | 33–34 | 1–3 | ~65–100 |
| 11 | Thermal Protection Systems (TPS) | 33–34 | 1–3 | ~65–100 |
| 12 | Atmospheric Re-entry | 33–34 | 1–3 | ~65–100 |
| 13 | Orbital Mechanics | 33–34 | 1–3 | ~65–100 |
| 14 | Space Debris Management | 33–34 | 1–3 | ~65–100 |
| 15 | Satellite Power Systems | 33–34 | 1–3 | ~65–100 |
| 16 | Aircraft Maintenance | 33–34 | 1–3 | ~65–100 |
| 17 | Aircraft Fuel Efficiency | 33–34 | 1–3 | ~65–100 |
| 18 | Aircraft Icing | 33–34 | 1–3 | ~65–100 |
| 19 | Aircraft Design Optimization | 33–34 | 1–3 | ~65–100 |
| 20 | Flight Dynamics and Stability | 33–34 | 1–3 | ~65–100 |
| 21 | High-Temperature Materials Engineering | 33–34 | 1–3 | ~65–100 |
| 22 | Trajectory Optimization | 33–34 | 1–3 | ~65–100 |
| 23 | Space Mission Planning | 33–34 | 1–3 | ~65–100 |
| 24 | Planetary Entry, Descent, and Landing (EDL) | 33–34 | 1–3 | ~65–100 |
| 25 | Wind Tunnel Testing & Experimental Aerodynamics | 33–34 | 1–3 | ~65–100 |
| 26 | Unmanned Aerial Vehicle (UAV) Design | 33–34 | 1–3 | ~65–100 |
| 27 | Air Traffic Management | 33–34 | 1–3 | ~65–100 |
| 28 | Supersonic Inlet Design | 33–34 | 1–3 | ~65–100 |
| 29 | Avionics and Flight Control Systems | 33–34 | 1–3 | ~65–100 |
| 30 | Space Propulsion | 33–34 | 1–3 | ~65–100 |
| Total | All Subdomains Combined | ~1,000 Raw | 1–3 | ~2,000–2,500 Total Q&As |
Note: Exact final count depends on length-validation filtering and duplicate detection performed during post-generation cleaning.
⚙️ Key Dataset Features (V6 Engine)
- Mandatory System Prompts: Injected directly into every instance during training to reinforce role adherence.
- Adversarial Physics Traps: Integrates domain-matched variables (
beta_val,crack_length,combustion_instability, etc.) to evaluate physical reasoning. - Positive Code Auditor Paradigm: Outputs verified, fully operational Python code snippets with architectural explanations rather than exhibiting buggy inputs.
- Context Window Safety: Length-validation filtering applied to prevent high-token context OOM exceptions during fine-tuning.
💡 System Prompt
All training examples enforce the following system prompt:
You are a highly advanced aerospace engineering AI assistant. You provide mathematically rigorous, physics-grounded, and safety-critical responses across all aerospace subdomains.
- Downloads last month
- 91
8-bit
Model tree for Kami574/AeroMind-Phi4-mini
Base model
microsoft/Phi-4-mini-instruct
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Kami574/AeroMind-Phi4-mini", filename="Phi-4-mini-instruct.Q8_0.gguf", )