Text Generation
Transformers
Safetensors
GGUF
PEFT
English
muse_glimmer
image-text-to-text
lora
qlora
sft
trl
merged
triton
gpu-kernels
code-generation
ollama
conversational
Instructions to use SASVAAI/muse-glimmer-30b-kernelgen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SASVAAI/muse-glimmer-30b-kernelgen with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SASVAAI/muse-glimmer-30b-kernelgen") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("SASVAAI/muse-glimmer-30b-kernelgen") model = AutoModelForMultimodalLM.from_pretrained("SASVAAI/muse-glimmer-30b-kernelgen", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - PEFT
How to use SASVAAI/muse-glimmer-30b-kernelgen with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use SASVAAI/muse-glimmer-30b-kernelgen 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 SASVAAI/muse-glimmer-30b-kernelgen:Q4_K_M # Run inference directly in the terminal: llama cli -hf SASVAAI/muse-glimmer-30b-kernelgen:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf SASVAAI/muse-glimmer-30b-kernelgen:Q4_K_M # Run inference directly in the terminal: llama cli -hf SASVAAI/muse-glimmer-30b-kernelgen: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 SASVAAI/muse-glimmer-30b-kernelgen:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf SASVAAI/muse-glimmer-30b-kernelgen:Q4_K_M
Use Docker
docker model run hf.co/SASVAAI/muse-glimmer-30b-kernelgen:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use SASVAAI/muse-glimmer-30b-kernelgen with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SASVAAI/muse-glimmer-30b-kernelgen" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SASVAAI/muse-glimmer-30b-kernelgen", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SASVAAI/muse-glimmer-30b-kernelgen:Q4_K_M
- SGLang
How to use SASVAAI/muse-glimmer-30b-kernelgen with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "SASVAAI/muse-glimmer-30b-kernelgen" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SASVAAI/muse-glimmer-30b-kernelgen", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "SASVAAI/muse-glimmer-30b-kernelgen" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SASVAAI/muse-glimmer-30b-kernelgen", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use SASVAAI/muse-glimmer-30b-kernelgen with Ollama:
ollama run hf.co/SASVAAI/muse-glimmer-30b-kernelgen:Q4_K_M
- Unsloth Desktop
- Pi
How to use SASVAAI/muse-glimmer-30b-kernelgen with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SASVAAI/muse-glimmer-30b-kernelgen: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": "SASVAAI/muse-glimmer-30b-kernelgen:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use SASVAAI/muse-glimmer-30b-kernelgen with Docker Model Runner:
docker model run hf.co/SASVAAI/muse-glimmer-30b-kernelgen:Q4_K_M
- Lemonade
How to use SASVAAI/muse-glimmer-30b-kernelgen with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SASVAAI/muse-glimmer-30b-kernelgen:Q4_K_M
Run and chat with the model
lemonade run user.muse-glimmer-30b-kernelgen-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use SASVAAI/muse-glimmer-30b-kernelgen with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SASVAAI/muse-glimmer-30b-kernelgen: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 SASVAAI/muse-glimmer-30b-kernelgen:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use SASVAAI/muse-glimmer-30b-kernelgen with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SASVAAI/muse-glimmer-30b-kernelgen: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 "SASVAAI/muse-glimmer-30b-kernelgen: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"
Download Modelfile from SASVAAI/muse-glimmer-30b-kernelgen: direct link, hf CLI and curl.
- Browser
- Download file 3.12 kB
-
https://huggingface.co/SASVAAI/muse-glimmer-30b-kernelgen/resolve/main/Modelfile
- Command line
-
hf download hf://SASVAAI/muse-glimmer-30b-kernelgen/Modelfile
-
curl -L -o Modelfile https://huggingface.co/SASVAAI/muse-glimmer-30b-kernelgen/resolve/main/Modelfile
3.12 kB
| # Ollama Modelfile for SASVAAI/muse-glimmer-30b-kernelgen | |
| # | |
| # The Q4_K_M GGUF ships in this repo, so this file works as-is: | |
| # | |
| # hf download SASVAAI/muse-glimmer-30b-kernelgen \ | |
| # --include "*Q4_K_M.gguf" "Modelfile" --local-dir . | |
| # ollama create muse-glimmer-kernelgen -f Modelfile | |
| # | |
| # You do not need this file to use `ollama run hf.co/SASVAAI/...` — that path | |
| # reads the repo's `params` and `system` files instead (Ollama never fetches a | |
| # Modelfile). Both are kept in sync with the values below, and that equivalence | |
| # was checked by content address: `ollama create` deduplicated the `system` file | |
| # against the layer built from the SYSTEM block below (sha256:7b242b2c...). | |
| # The chat template comes from the GGUF either way — Ollama v0.34.0 renders the | |
| # embedded Jinja and ignores any Go TEMPLATE, measured 2026-09-15. | |
| # | |
| # Point FROM at a different quantisation if you build your own. | |
| FROM ./muse-glimmer-30b-kernelgen-Q4_K_M.gguf | |
| # --- Decoding ------------------------------------------------------------- | |
| # Greedy. The base repo's generation_config.json ships sampling defaults | |
| # (temperature 1.0 / top_k 64 / top_p 0.95) inherited from the base model; | |
| # those are wrong for this task, which has one correct answer shape. Ollama | |
| # treats temperature 0 as greedy. | |
| PARAMETER temperature 0 | |
| PARAMETER top_k 1 | |
| PARAMETER num_predict 2048 | |
| # Training used MAX_SEQ_LEN=8192; 99.3% of train and 98.9% of val rows fit it. | |
| # Load-bearing: without it Ollama picks the base model's default_num_ctx of | |
| # 262144 and allocates a KV cache to match. | |
| PARAMETER num_ctx 8192 | |
| # --- CPU threads (uncomment if you run on CPU) ---------------------------- | |
| # Ollama defaults to every logical core. On a many-core shared host that is | |
| # much slower than using a subset: measured 2026-09-14 on a 192-core box under | |
| # contention, the default took >17 min for one 469-token reply (~0.45 tok/s) | |
| # where 48 threads took 66 s (9.52 tok/s). Set this to roughly your physical | |
| # core count, or the cores you actually have to yourself. Irrelevant on GPU. | |
| # PARAMETER num_thread 48 | |
| # --- Stop tokens ---------------------------------------------------------- | |
| # The merged model's generation_config.json lists eos_token_id [200001, 200008] | |
| # = <|end_of_text|> and <|eot|>. The ATEM chat template ends assistant turns | |
| # with <|eot|>. | |
| PARAMETER stop "<|eot|>" | |
| PARAMETER stop "<|end_of_text|>" | |
| # --- System prompt -------------------------------------------------------- | |
| # Verbatim the prompt this adapter was trained under, recovered from the | |
| # torchrun launch command logged for checkpoint exp_20260912_001239. Changing | |
| # it moves the model off its trained contract. | |
| SYSTEM """You are a GPU kernel engineer. Given a specification (either a PyTorch nn.Module to port or a custom_kernel signature with reference implementation), write a complete, correct, and fast Python source file using Triton @triton.jit kernels with appropriate host-side launcher code, preserving the exact public class name and forward signature or custom_kernel entry point as specified. Output only raw Python source code with no explanation or markdown.""" | |