Text Generation
GGUF
English
materials-science
condensed-matter-physics
device-engineering
qlora
qwen2
chat
conversational
Instructions to use DeviceAlchemy/devicealchemy-mira-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use DeviceAlchemy/devicealchemy-mira-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 DeviceAlchemy/devicealchemy-mira-mini:Q4_K_M # Run inference directly in the terminal: llama cli -hf DeviceAlchemy/devicealchemy-mira-mini:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf DeviceAlchemy/devicealchemy-mira-mini:Q4_K_M # Run inference directly in the terminal: llama cli -hf DeviceAlchemy/devicealchemy-mira-mini: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 DeviceAlchemy/devicealchemy-mira-mini:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf DeviceAlchemy/devicealchemy-mira-mini:Q4_K_M
Use Docker
docker model run hf.co/DeviceAlchemy/devicealchemy-mira-mini:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use DeviceAlchemy/devicealchemy-mira-mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DeviceAlchemy/devicealchemy-mira-mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DeviceAlchemy/devicealchemy-mira-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DeviceAlchemy/devicealchemy-mira-mini:Q4_K_M
- Ollama
How to use DeviceAlchemy/devicealchemy-mira-mini with Ollama:
ollama run hf.co/DeviceAlchemy/devicealchemy-mira-mini:Q4_K_M
- Unsloth Desktop
- Pi
How to use DeviceAlchemy/devicealchemy-mira-mini with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf DeviceAlchemy/devicealchemy-mira-mini: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": "DeviceAlchemy/devicealchemy-mira-mini:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use DeviceAlchemy/devicealchemy-mira-mini with Docker Model Runner:
docker model run hf.co/DeviceAlchemy/devicealchemy-mira-mini:Q4_K_M
- Lemonade
How to use DeviceAlchemy/devicealchemy-mira-mini with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull DeviceAlchemy/devicealchemy-mira-mini:Q4_K_M
Run and chat with the model
lemonade run user.devicealchemy-mira-mini-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use DeviceAlchemy/devicealchemy-mira-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 DeviceAlchemy/devicealchemy-mira-mini: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 DeviceAlchemy/devicealchemy-mira-mini:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use DeviceAlchemy/devicealchemy-mira-mini with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf DeviceAlchemy/devicealchemy-mira-mini: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 "DeviceAlchemy/devicealchemy-mira-mini: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 README.md
Browse files
README.md
CHANGED
|
@@ -33,7 +33,7 @@ Training code: **[github.com/DeviceAlchemy/devicealchemy-mira-mini](https://gith
|
|
| 33 |
- **Fine-tuning method:** QLoRA — continued pre-training on raw abstracts, followed by
|
| 34 |
instruction tuning on synthetically generated Q&A pairs derived from those abstracts
|
| 35 |
- **Quantization:** Q4_K_M (~940 MB)
|
| 36 |
-
- **Training data:**
|
| 37 |
- **Context length:** 4096 tokens (inference); trained on 384-token blocks
|
| 38 |
|
| 39 |
## Intended use
|
|
@@ -42,7 +42,7 @@ MIRA-mini is designed to:
|
|
| 42 |
- Explain why specific material stacks are predicted to exhibit a given phenomenon
|
| 43 |
- Describe physical mechanisms at material interfaces (spin-orbit coupling, exchange
|
| 44 |
interactions, band hybridization, etc.)
|
| 45 |
-
- Answer domain questions in condensed matter physics, materials science, and device
|
| 46 |
engineering
|
| 47 |
|
| 48 |
It is **not** a substitute for primary literature, peer review, or experimental
|
|
@@ -70,10 +70,10 @@ TEMPLATE """<|im_start|>system
|
|
| 70 |
|
| 71 |
SYSTEM """You are MIRA, Materials Intelligence and Reasoning Agent. You have been trained on a large corpus of scientific abstracts on condensed matter physics, device engineering, and materials science. You explain material stack predictions, physical mechanisms, and correlations between material properties and phenomena. Be precise, scientific, and concise."""
|
| 72 |
|
| 73 |
-
PARAMETER temperature 0.
|
| 74 |
PARAMETER top_p 0.9
|
| 75 |
PARAMETER top_k 40
|
| 76 |
-
PARAMETER repeat_penalty 1.
|
| 77 |
PARAMETER num_ctx 4096
|
| 78 |
PARAMETER stop "<|im_end|>"
|
| 79 |
PARAMETER stop "<|im_start|>"
|
|
@@ -93,7 +93,7 @@ fine-tuning → GGUF export) is available at:
|
|
| 93 |
## Limitations
|
| 94 |
|
| 95 |
- This is a 1.5B parameter model — it has narrower general-purpose reasoning ability
|
| 96 |
-
than larger models, and is specifically tuned toward the materials science domain.
|
| 97 |
- Training data consists of abstracts only (not full papers), so depth on any single
|
| 98 |
topic is bounded by what's typically conveyed in an abstract.
|
| 99 |
- Q4_K_M quantization trades a small amount of precision for a ~3x smaller file size
|
|
|
|
| 33 |
- **Fine-tuning method:** QLoRA — continued pre-training on raw abstracts, followed by
|
| 34 |
instruction tuning on synthetically generated Q&A pairs derived from those abstracts
|
| 35 |
- **Quantization:** Q4_K_M (~940 MB)
|
| 36 |
+
- **Training data:** Openly licensed (CC BY) scientific text dataset containing 120 million words.
|
| 37 |
- **Context length:** 4096 tokens (inference); trained on 384-token blocks
|
| 38 |
|
| 39 |
## Intended use
|
|
|
|
| 42 |
- Explain why specific material stacks are predicted to exhibit a given phenomenon
|
| 43 |
- Describe physical mechanisms at material interfaces (spin-orbit coupling, exchange
|
| 44 |
interactions, band hybridization, etc.)
|
| 45 |
+
- Answer domain questions in condensed matter physics, materials science, and device & circuit
|
| 46 |
engineering
|
| 47 |
|
| 48 |
It is **not** a substitute for primary literature, peer review, or experimental
|
|
|
|
| 70 |
|
| 71 |
SYSTEM """You are MIRA, Materials Intelligence and Reasoning Agent. You have been trained on a large corpus of scientific abstracts on condensed matter physics, device engineering, and materials science. You explain material stack predictions, physical mechanisms, and correlations between material properties and phenomena. Be precise, scientific, and concise."""
|
| 72 |
|
| 73 |
+
PARAMETER temperature 0.8
|
| 74 |
PARAMETER top_p 0.9
|
| 75 |
PARAMETER top_k 40
|
| 76 |
+
PARAMETER repeat_penalty 1.5
|
| 77 |
PARAMETER num_ctx 4096
|
| 78 |
PARAMETER stop "<|im_end|>"
|
| 79 |
PARAMETER stop "<|im_start|>"
|
|
|
|
| 93 |
## Limitations
|
| 94 |
|
| 95 |
- This is a 1.5B parameter model — it has narrower general-purpose reasoning ability
|
| 96 |
+
than larger models, and is specifically tuned toward the materials science and device engineering domain.
|
| 97 |
- Training data consists of abstracts only (not full papers), so depth on any single
|
| 98 |
topic is bounded by what's typically conveyed in an abstract.
|
| 99 |
- Q4_K_M quantization trades a small amount of precision for a ~3x smaller file size
|