Instructions to use coronerai/coroner-31b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use coronerai/coroner-31b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="coronerai/coroner-31b") 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("coronerai/coroner-31b") model = AutoModelForMultimodalLM.from_pretrained("coronerai/coroner-31b", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use coronerai/coroner-31b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "coronerai/coroner-31b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "coronerai/coroner-31b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/coronerai/coroner-31b
- SGLang
How to use coronerai/coroner-31b 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 "coronerai/coroner-31b" \ --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": "coronerai/coroner-31b", "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 "coronerai/coroner-31b" \ --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": "coronerai/coroner-31b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use coronerai/coroner-31b with Docker Model Runner:
docker model run hf.co/coronerai/coroner-31b
Coroner 31B
Token: $CORONER, contract 0x48af9fe69e45b1ba7a1bbb42d9944d09cffb2f31. Other tokens also use the ticker CORONER; only this contract is ours.
An open model that reads a fact sheet about a token on Robinhood Chain and replies with one JSON verdict: flags that cite the facts behind them, the evidence, a risk class and a cause pattern.
Risk classification from public on-chain data. Not financial advice. Labels describe patterns consistent with the numbers. They are not accusations about anyone.
What it does
Three modes, one answer format (schema/verdict.schema.json in the repository):
live: a deployed token (contract facts, market facts, holders when available).draft: a launch draft before it ships (pre-mortem), with fixes.autopsy: a pool watched for at least 24 hours (first sighting versus re-check).
The model never fetches data. Open-source code builds the fact sheet from the chain; the model only reads it. Every number in a reply should appear in the fact sheet.
Training
- Base: Gemma 4 31B-it (Apache 2.0). Method: LoRA (rank 16) on 4-bit weights, then merged to 16-bit.
- Data: 4,000 (one pass, 250 steps of 16) rows. Real rows come from tokens our public collector watched (from 14 Oct 2026); synthetic rows cover rare flags (mint with a live owner, large holders, unusual drafts) and are tagged as synthetic.
- Targets come from the rule engine that runs on the website, not from human labels. The first version therefore learns to reproduce those rules. It is as good as the rules plus whatever it generalises.
- Answers put the flags and evidence before the risk class, so the decision follows the reasoning.
Evaluation
Held-out set of 80 rows (35 live real, 35 autopsy real, 10 synthetic drafts), greedy decoding, scored by code against the rule-engine targets.
| Mode | Source | n | JSON valid | Risk class | Cause | Flag F1 | Evidence cited correctly |
|---|---|---|---|---|---|---|---|
| live | real | 35 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 |
| autopsy | real | 35 | 1.00 | 0.97 | 0.74 | 0.74 | 0.995 |
| draft | synthetic | 10 | 1.00 | 1.00 | 1.00 | 0.94 | 1.00 |
Baseline (no model):
| Mode | Source | Risk class | Cause | Flag F1 |
|---|---|---|---|---|
| live | real | 0.86 | 1.00 | 0.60 |
| autopsy | real | 0.94 | 0.31 | 0.06 |
| draft | synthetic | 1.00 | 0.40 | 0.00 |
Where it is weakest: autopsy cause and flags (about a quarter wrong). On live rows the cause was always the baseline value, so only the flags and risk class show learning there.
The baseline is "always answer the most common value and never raise a flag". Numbers on real rows come from a small held-out set; treat them as indicative. A daily accuracy ledger against real outcomes will be published.
Limits
- Holder data is missing from most real training rows (the free RPC tiers cannot reconstruct it), so holder reasoning is learned mostly from synthetic cases.
- "Dead" means under $50 of 24h volume and two swaps or fewer at the re-check. It is a blunt rule.
- Not tested on other chains. Not a price predictor. Do not use it to accuse people.
Run it
Any OpenAI-compatible server with the chat template in this repository. Send the system prompt from the training data and the fact sheet as JSON. A 4-bit GGUF build for local use is planned, not released.
Source, data and the rule engine: https://github.com/coroner-hash/ai
surplus-launcher: 0xf99e1cB8DAFE3F3842daf5909648c7A1fB90EA28
- Downloads last month
- 43
Model tree for coronerai/coroner-31b
Base model
google/gemma-4-31B