Text Generation
GGUF
English
supermongo
astronomy
code-generation
scientific-plotting
conversational
Instructions to use xpol555/sm-coder-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 xpol555/sm-coder-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 xpol555/sm-coder-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf xpol555/sm-coder-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 xpol555/sm-coder-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf xpol555/sm-coder-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 xpol555/sm-coder-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf xpol555/sm-coder-gguf:Q4_K_M
Use Docker
docker model run hf.co/xpol555/sm-coder-gguf:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use xpol555/sm-coder-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "xpol555/sm-coder-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": "xpol555/sm-coder-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/xpol555/sm-coder-gguf:Q4_K_M
- Ollama
How to use xpol555/sm-coder-gguf with Ollama:
ollama run hf.co/xpol555/sm-coder-gguf:Q4_K_M
- Unsloth Desktop
- Pi
How to use xpol555/sm-coder-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf xpol555/sm-coder-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": "xpol555/sm-coder-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use xpol555/sm-coder-gguf with Docker Model Runner:
docker model run hf.co/xpol555/sm-coder-gguf:Q4_K_M
- Lemonade
How to use xpol555/sm-coder-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull xpol555/sm-coder-gguf:Q4_K_M
Run and chat with the model
lemonade run user.sm-coder-gguf-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use xpol555/sm-coder-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 xpol555/sm-coder-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 xpol555/sm-coder-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use xpol555/sm-coder-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf xpol555/sm-coder-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 "xpol555/sm-coder-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"
Upload model README
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081# SM Coder 1.5BSM Coder is a fine-tuned coding assistant focused on SuperMongo (SM) macro development for scientific plotting workflows.This README is intended as the public model card for Hugging Face uploads.## Model Repositories- GGUF (Ollama / llama.cpp): https://huggingface.co/xpol555/sm-coder-gguf- MLC (WebLLM / browser deployment): https://huggingface.co/xpol555/sm-coder-mlc## What Is SuperMongoSuperMongo is a plotting and data-analysis environment widely used in astronomy and scientific workflows.Reference:- https://www.astro.princeton.edu/~rhl/sm/## Dataset and ScopeThis model was developed on a curated dataset of SM macros and related examples collected and evolved over about 20 years of real usage.The training data emphasizes:- reusable plotting macros- parameterized workflow helpers- practical data visualization patterns used in long-running scientific analysis## Intended Use- writing and refactoring SuperMongo macros- translating plotting requests into SM macro skeletons- helping document and modernize legacy macro collections## Not Intended As- a general-purpose chatbot- an authoritative source on non-SM domains- a replacement for validation/testing of scientific plots## Example Prompts- "Write an SM macro to draw concentric circles with configurable center and step."- "Create an SM macro that computes min/max from two vectors and sets plotting limits."- "Refactor this old SM macro into smaller parameterized helpers."## Example Macro IdeasThe model can propose macro structures like these (adapt names and details to your local SM setup):```smdefine draw_circle (xc,yc,r,npt) {set _th = 2*3.14159265*indgen(npt)/nptset _x = xc + r*cos(_th)set _y = yc + r*sin(_th)connect _x _y}define draw_concentric (xc,yc,r0,dr,nr,npt) {do i = 0, nr-1 {set _r = r0 + i*drdraw_circle(xc,yc,_r,npt)}}``````smdefine autoscale_xy (xv,yv,pad) {set _xmin = min(xv)set _xmax = max(xv)set _ymin = min(yv)set _ymax = max(yv)limits (_xmin-pad) (_xmax+pad) (_ymin-pad) (_ymax+pad)box}```## Notes- Validate generated macros against your SM version and local macro library.- For browser usage, prefer the MLC repository.- For local inference with Ollama/llama.cpp, prefer the GGUF repository.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104---language:- enlicense: apache-2.0base_model: Qwen/Qwen2.5-Coder-1.5B-Instructbase_model_relation: finetunetags:- supermongo- astronomy- code-generation- scientific-plottingpipeline_tag: text-generationlibrary_name: gguf---# SM Coder 1.5B — GGUFA fine-tuned coding assistant for **SuperMongo (SM)** macro development,packaged as a quantized GGUF file for use with [Ollama](https://ollama.com)or [llama.cpp](https://github.com/ggerganov/llama.cpp).| File | Quant | Size ||------|-------|------|| `sm-coder-1.5b-q4_k_m.gguf` | Q4_K_M | ~1 GB |## Quick Start (Ollama)```bash# create the model from the bundled Modelfileollama create sm-coder -f Modelfile.finetuned# chatollama run sm-coder "Write an SM macro to overplot error bars"```## Base Model[Qwen/Qwen2.5-Coder-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-1.5B-Instruct),fine-tuned on a curated dataset of SM macros and related examples collectedover ~20 years of real scientific usage.## What Is SuperMongoSuperMongo is a plotting and data-analysis environment widely used inastronomy and scientific workflows.Reference: <https://www.astro.princeton.edu/~rhl/sm/>## Intended Use- Writing and refactoring SuperMongo macros.- Translating plotting requests into SM macro skeletons.- Helping document and modernize legacy macro collections.## Limitations- Not a general-purpose chatbot.- Not an authoritative source on non-SM domains.- Always validate generated macros against your SM version and local macrolibrary before use.## Example Prompts- *"Write an SM macro that draws concentric circles given a center, startingradius, step, and count."*- *"Write an SM macro that reads two columns from a file and plots them withauto-scaled limits."*- *"Refactor this SM macro into smaller reusable helpers."*## Example OutputThe model produces macros in standard SM syntax (positional `$1 $2 …`parameters, `set` for vectors, `define` for scalars):```draw_circle 4 ## draw a circle centred at ($1,$2) radius $3 with $4 pointsset _th = 2*PI*indgen($4)/$4set _cx = $1 + $3*COS(_th)set _cy = $2 + $3*SIN(_th)connect _cx _cy``````quickplot 1 ## read two-column file $1, auto-scale, and plotdata $1read {x 1 y 2}limits x yeraseboxconnect x yxlabel Column 1ylabel Column 2``````oploterr 4 ## overplot error bars on current axes for x=$1 y=$2 ey=$3set _ylo = $2 - $3set _yhi = $2 + $3error_y $1 $2 _ylo _yhi```## Other Formats- **MLC (WebLLM / browser):** <https://huggingface.co/xpol555/sm-coder-mlc>
README.md+81-58