Text Generation
GGUF
English
medical-coding
healthcare-rcm
icd-10-cm
icd-10-pcs
hcpcs
ncci
hipaa-safe
local-inference
ollama
calera-bedrock
Eval Results (legacy)
conversational
Instructions to use CaleraLabs/medcodesec-12b-gguf 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 CaleraLabs/medcodesec-12b-gguf 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 CaleraLabs/medcodesec-12b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf CaleraLabs/medcodesec-12b-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf CaleraLabs/medcodesec-12b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf CaleraLabs/medcodesec-12b-gguf: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 CaleraLabs/medcodesec-12b-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf CaleraLabs/medcodesec-12b-gguf:Q4_K_M
Use Docker
docker model run hf.co/CaleraLabs/medcodesec-12b-gguf:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use CaleraLabs/medcodesec-12b-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CaleraLabs/medcodesec-12b-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CaleraLabs/medcodesec-12b-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CaleraLabs/medcodesec-12b-gguf:Q4_K_M
- Ollama
How to use CaleraLabs/medcodesec-12b-gguf with Ollama:
ollama run hf.co/CaleraLabs/medcodesec-12b-gguf:Q4_K_M
- Unsloth Desktop
- Pi
How to use CaleraLabs/medcodesec-12b-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf CaleraLabs/medcodesec-12b-gguf: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": "CaleraLabs/medcodesec-12b-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use CaleraLabs/medcodesec-12b-gguf with Docker Model Runner:
docker model run hf.co/CaleraLabs/medcodesec-12b-gguf:Q4_K_M
- Lemonade
How to use CaleraLabs/medcodesec-12b-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull CaleraLabs/medcodesec-12b-gguf:Q4_K_M
Run and chat with the model
lemonade run user.medcodesec-12b-gguf-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use CaleraLabs/medcodesec-12b-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf CaleraLabs/medcodesec-12b-gguf: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 CaleraLabs/medcodesec-12b-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use CaleraLabs/medcodesec-12b-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf CaleraLabs/medcodesec-12b-gguf: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 "CaleraLabs/medcodesec-12b-gguf: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"
Align Modelfile SYSTEM prompt with trained PROSE_SYSTEM_PROMPT (matching Arena Tier 1)
65e36b5 verified Download Modelfile from CaleraLabs/medcodesec-12b-gguf: direct link, hf CLI and curl.
- Browser
- Download file 873 Bytes
-
https://huggingface.co/CaleraLabs/medcodesec-12b-gguf/resolve/main/Modelfile
- Command line
-
hf download hf://CaleraLabs/medcodesec-12b-gguf/Modelfile
-
curl -L -o Modelfile https://huggingface.co/CaleraLabs/medcodesec-12b-gguf/resolve/main/Modelfile
873 Bytes
| # Ollama Modelfile for Calera MedCodeSec-12B (PROD-BEDROCK-002) | |
| # Theme: Built on Bedrock. Verified by ICX. | |
| FROM ./gemma-4-12b-medcode-bedrock.Q4_K_M.gguf | |
| PARAMETER temperature 0.1 | |
| PARAMETER top_p 0.9 | |
| PARAMETER num_ctx 4096 | |
| PARAMETER stop "<turn|>" | |
| PARAMETER stop "<eos>" | |
| SYSTEM """You are MedCodeSec-12B (Calera Bedrock Series PROD-BEDROCK-002), a certified HIPAA-safe clinical coding assistant. Answer clinical coding questions in clear, accurate medical prose grounded strictly in US Government public-domain CMS Official Guidelines (ICD-10-CM, ICD-10-PCS, CMS Table of Drugs & Chemicals, Table of Neoplasms, HCPCS Level II A-V, and Medicare NCCI policy). Cite exact CMS guidelines (e.g., I.C.1.d, I.C.2, I.C.4, I.C.9, I.C.19.e.5.a/b/c), never fabricate unregistered codes, and politely decline proprietary 5-digit AMA CPT codes while redirecting to CMS schedules.""" | |