Instructions to use dream-only/lg-decision-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dream-only/lg-decision-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dream-only/lg-decision-27B")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("dream-only/lg-decision-27B") model = AutoModelForMultimodalLM.from_pretrained("dream-only/lg-decision-27B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
lg-decision-27B
lg-decision-27B is a 27B-parameter text model fine-tuned from Qwen/Qwen3.8-27B for decision-style tasks: classification, multiple choice, retrieval reranking and tool selection. A request carries a state (text or JSON) and one or more named, typed questions. For each question the server returns:
- choice: a probability for every named option, the most probable option (
choice) and its probability (confidence); - noul (yes/no): the probability that the answer is yes (
noul); - score: a probability for every level of an ordered scale (levels are numbered from 0;
legendmaps them to the given labels), the expected level (score) and the probability of the most probable level (confidence).
The model is served by the bundled simple-jev server (transformers), which exposes the /v1/systemone endpoint used by the Decision Index kit.
Model description
| Property | Value |
|---|---|
| Base model | Qwen/Qwen3.8-27B |
| Architecture | Qwen3_5ForConditionalGeneration; text model with 64 layers (16 full-attention, 48 linear-attention) |
| Weights | two safetensors shards, 54,713,457,120 bytes of tensors, bf16 |
| Serving | simple-jev/hf-server/hf_server.py (transformers). Each question is scored as one branch that shares the whole request as a prefix. |
| Prompt | fixed baseline prompt policy (PROMPT_POLICY=baseline) |
| Capacity | 32,768 tokens per branch with the default settings of start_server.sh; longer requests are rejected with HTTP 422, not truncated |
| Modalities | text and JSON only (see Limitations) |
| Tested runtime | Python 3.12.13, PyTorch 2.10.0+cu129, transformers 5.20.2, 1ร NVIDIA H200 |
Decision Index 0.3 (public suite)
Our own run of the public Decision Index 0.3 suite with the kit's own scorer. This is not a leaderboard result.
| Headline | Value |
|---|---|
| Public index | 82.83 |
| Balanced raw | 86.37 |
| Breadth | 82.60 |
| Requests | 140,620: 140,209 ok, 411 error |
| Scored rows | 140,178 (complete: true) |
| Area | Skill | Raw | Coverage | Benchmarks |
|---|---|---|---|---|
| Knowledge & Reasoning | 0.7454 | 0.7856 | 1.0000 | 11 |
| Language Understanding | 0.8776 | 0.9113 | 1.0000 | 9 |
| Retrieval & Classification | 0.8057 | 0.8389 | 0.9967 | 6 |
| Tools & Automation | 0.9196 | 0.9304 | 0.9976 | 5 |
| Arts & Human Taste | 0.7932 | 0.8708 | 1.0000 | 6 |
Area values are as reported in the kit's index.json.
- The 411 errors are HTTP 422 rejections of requests in which a single branch exceeds 32,768 tokens (ToolRet 320, BRIGHT 91). They are recorded as errors in the results and were not rerun.
- Per-request results and the kit's score files: SunZhengda/lg-decision-27B-decision-index.
Latency on 1ร H200 (100-row stratified sample of the public suite, warm, one server process, default settings of start_server.sh):
| Weighting | Median | Mean | p80 |
|---|---|---|---|
| Suite-weighted | 204 ms | 481 ms | 522 ms |
Quick start
Install PyTorch 2.10.0 for your CUDA version (tested with 2.10.0+cu129), then exactly the tested versions of the other dependencies (in particular transformers 5.20.2 and accelerate 1.15.0), and download the model:
pip install "transformers==5.20.2" "accelerate==1.15.0" "pydantic==2.12.3" \
"fastapi==0.135.1" "uvicorn==0.41.0" "numpy==1.26.4"
hf download SunZhengda/lg-decision-27B --local-dir lg-decision-27B
cd lg-decision-27B
start_server.sh sets PYTHONPATH to the bundled simple-jev/ sources, so the server package does not need to be installed. Start the server (the defaults are the settings used for the Decision Index run):
ENV_SERVER_PORT=30000 bash simple-jev/start_server.sh
The default model path is the repository root; set ENV_MODEL_PATH to load the weights from another directory.
Example request:
curl -s http://127.0.0.1:30000/v1/systemone -H 'Content-Type: application/json' -d '{
"model": "lg-decision-27B",
"state": "Order 1042 arrived with a cracked screen. The customer asks for a replacement before Friday.",
"questions": {
"action": {"type": "choice", "instructions": "What should support do next?",
"criteria": {"replace": "Send a replacement", "refund": "Issue a refund", "repair": "Arrange a repair"}},
"damaged": {"type": "noul", "instructions": "Did the item arrive damaged?"},
"urgency": {"type": "score", "instructions": "How urgent is this request?", "criteria": ["low", "medium", "high"]}
}
}'
Response (from our server; probabilities rounded to 4 decimals here):
{
"model": "lg-decision-27B",
"answers": {
"action": {
"type": "choice",
"confidence": 0.9953,
"probabilities": {"replace": 0.9953, "refund": 0.0019, "repair": 0.0028},
"choice": "replace"
},
"damaged": {"type": "noul", "noul": 0.9899},
"urgency": {
"type": "score",
"confidence": 0.9618,
"probabilities": {"0": 0.0009, "1": 0.0373, "2": 0.9618},
"score": 1.9610,
"legend": {"0": "low", "1": "medium", "2": "high"}
}
},
"usage": {"input_tokens": 811, "output_tokens": 0}
}
In-process smoke test without HTTP:
python simple-jev/smoke_decide.py
What is in this repository
| File | Content |
|---|---|
model-00001-of-00002.safetensors, model-00002-of-00002.safetensors, model.safetensors.index.json |
weights (bf16) |
config.json, generation_config.json |
model configuration |
tokenizer.json, tokenizer_config.json, chat_template.jinja |
tokenizer and chat template |
simple-jev/start_server.sh |
launcher; its defaults are the Decision Index settings |
simple-jev/hf-server/ |
HTTP server (hf_server.py), prompt policies, pyproject.toml |
simple-jev/common/ |
request schema, prompt builder, response scoring |
simple-jev/smoke_decide.py |
in-process smoke test |
LICENSE |
Apache License 2.0 |
Limitations
- Text only. The config keeps the base model's vision tower, but its weights are stored under
model.language_model.visual.*, which transformers does not map, so the vision tower is randomly initialized on load and a missing-weights warning is printed. Text inference is not affected. Do not send images. - A request in which one branch exceeds 32,768 tokens is rejected with HTTP 422; it is not truncated.
- The bundled server answers typed questions only; it does not generate free text.
- The results above are our own run of the public suite. They do not establish performance on the Decision Index private sets or on other data.
License
Apache-2.0, for both the weights and the serving code in simple-jev/. Built on Qwen/Qwen3.8-27B by the Qwen team (Alibaba Cloud), Apache-2.0.
- Downloads last month
- 8