Instructions to use PNPM244/linne-sprout-1-0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PNPM244/linne-sprout-1-0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="PNPM244/linne-sprout-1-0") 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("PNPM244/linne-sprout-1-0") model = AutoModelForMultimodalLM.from_pretrained("PNPM244/linne-sprout-1-0", 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 PNPM244/linne-sprout-1-0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PNPM244/linne-sprout-1-0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PNPM244/linne-sprout-1-0", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/PNPM244/linne-sprout-1-0
- SGLang
How to use PNPM244/linne-sprout-1-0 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 "PNPM244/linne-sprout-1-0" \ --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": "PNPM244/linne-sprout-1-0", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "PNPM244/linne-sprout-1-0" \ --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": "PNPM244/linne-sprout-1-0", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use PNPM244/linne-sprout-1-0 with Docker Model Runner:
docker model run hf.co/PNPM244/linne-sprout-1-0
linne-sprout-1.0
linne-sprout-1.0 is a small decision model built on Gemma 4 E4B (4B effective parameters). Give it a state (text, a document, JSON, a conversation or an agent trajectory) and a question with a set of options, and it returns one option together with a probability for every option, in a single forward pass.
It is the smallest member of the linne family: linne-oak-1.0 (31B) and linne-fern-1.0 (27B).
Highlights
- Decision Index public score 48.88, measured with the official kit (edition 0.3, all public benchmarks, 140,620 requests, complete).
- Reads the whole prompt at once: the full-attention layers attend in both directions over the prompt (sliding-window layers keep their native behavior), so the decision sees the state, the question and every option together.
- Strongest on tools and automation (70.3) and a step-level guard for agents with a low false-block rate.
- Small and fast: one forward pass per decision; median 80 ms per request in the official run.
linne-sprout-1.0 is a decision-only model. Because its full-attention layers are bidirectional, it does not generate text: use it to pick options and read probabilities, not as a chat model.
Decision Index (public part, edition 0.3)
Chance-corrected skill, higher is better. linne rows measured by us with the official kit.
| Model | Overall | Knowledge | Language | Retrieval | Tools | Arts |
|---|---|---|---|---|---|---|
| linne-oak-1.0 (31B) | 63.94 | 54.3 | 66.6 | 69.1 | 78.5 | 45.1 |
| linne-fern-1.0 (27B) | 58.92 | 44.9 | 62.8 | 62.4 | 79.0 | 41.5 |
| linne-sprout-1.0 (E4B) | 48.88 | 29.2 | 54.9 | 55.5 | 70.3 | 31.8 |
Only the public part (20% of the full leaderboard score) can be measured outside the leaderboard.
Usage
The prompt is one user message (chat template, thinking off): the state (compact JSON when not a string), a blank line,
Question: <instructions>, one line <label>: <name> - <description> per option, and
Answer with the letter of one option only. The answer is the softmax over the next-token logits of the option letters
(with the model's final logit soft-capping), read at the last prompt position, with the full-attention layers bidirectional.
linne_engine.py (with nc_hook.py) in this repository implements exactly this, as a Decision Index engine and as a library:
import sys
from huggingface_hub import snapshot_download
path = snapshot_download("MISA-core/linne-sprout-1-0")
sys.path.insert(0, path)
from linne_engine import LinneEngine
model = LinneEngine(model=path, device="cuda:0", noncausal=True)
result, _ = model(
"My Stripe integration keeps failing. Please help ASAP.",
{"team": {"type": "choice", "instructions": "Which team should handle this request?",
"criteria": {"billing": "Charges and refunds", "technical_support": "Integration errors",
"sales": "Questions about buying a product"}}},
)
print(result["answers"]["team"]) # chosen option and a probability for every option
Run the Decision Index public suite:
PYTHONPATH=<path> python -m decision_index pipeline --engine linne_engine:LinneEngine \
--option model=<path> --option device=cuda:0 --option noncausal=1 --out runs/linne-sprout-1-0
BF16 weights are about 16 GB and fit one 24 GB GPU.
License
Apache 2.0, following the base model's license.
- Downloads last month
- 41