How to use from
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 OscarFeMa/ExpertiaMath-Q4:F16
# Run inference directly in the terminal:
llama cli -hf OscarFeMa/ExpertiaMath-Q4:F16
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf OscarFeMa/ExpertiaMath-Q4:F16
# Run inference directly in the terminal:
llama cli -hf OscarFeMa/ExpertiaMath-Q4:F16
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 OscarFeMa/ExpertiaMath-Q4:F16
# Run inference directly in the terminal:
./llama-cli -hf OscarFeMa/ExpertiaMath-Q4:F16
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 OscarFeMa/ExpertiaMath-Q4:F16
# Run inference directly in the terminal:
./build/bin/llama-cli -hf OscarFeMa/ExpertiaMath-Q4:F16
Use Docker
docker model run hf.co/OscarFeMa/ExpertiaMath-Q4:F16
Quick Links

ExpertiaMath (Q4_K_M)

Spanish-first mathematics specialist: formal definitions + formulae, no web opinion. Fine-tuned from microsoft/Phi-4-mini-reasoning (MIT) with QLoRA r16 on 45k Wikidata-derived definition/formula pairs (+5k validation), 3 epochs on RTX 3070.

Evaluation (500 held-out samples)

Perplexity
Base 827.1
+ adapter 63.8 (-92.3%)

Production: 0.89 quality, 100% cycle success, ~310 pkgs/cycle in the Expertia pipeline.

Variants in this repo

File Size Needs Use
expertia-math-q4_k_m.gguf 2.5GB 6GB VRAM Daily inference (Ollama)
expertia-math-f16.gguf 7.7GB 16GB VRAM Max quality inference
fp16/ 7.2GB โ€” Base for further fine-tuning

Usage (Ollama)

ollama create ExpertiaMath -f Modelfile-ExpertiaMath-Q4

Note: GGUF uses gpt-2 pre-tokenizer (Ollama โ‰ค0.33.3 does not know phi-3); set num_ctx 8192 (Qwen-family 256K default loads 43GB otherwise).

Limitations

Narrow domain specialist (mathematics). Not a general assistant. Adapter weights: CC-BY-NC-4.0. Base model: MIT (Microsoft).

Downloads last month
71
GGUF
Model size
4B params
Architecture
phi3
Hardware compatibility
Log In to add your hardware

4-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for OscarFeMa/ExpertiaMath-Q4

Quantized
(44)
this model