Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DecisionFormer

![DecisionFormer](assets/decisionformer.svg)
![DecisionFormer](https://raw.githubusercontent.com/FrontiersMindAI/decisionformer/main/assets/decisionformer.svg)

The simplest way to fine-tune and serve decision models on any Hugging Face model. Give it a *state* and typed
*questions*; it returns a calibrated probability for every option in a single forward pass, with no text
Expand All @@ -10,23 +10,21 @@ generation. Three lines to decide, one command to train, one command to serve.

Python 3.10 or newer, with PyTorch 2.6+ and transformers 5.20+.

**From GitHub**
```bash
pip install decisionformer # the library and CLI
pip install "decisionformer[serve]" # with the API server
```

The latest code, or a development install:

```bash
pip install "decisionformer[serve] @ git+https://github.com/FrontiersMindAI/decisionformer.git"

# or, to develop
git clone https://github.com/FrontiersMindAI/decisionformer.git
cd decisionformer
pip install -e ".[dev]"
```

**With pip**, once v0.2.0 is published on PyPI (the name currently holds an empty placeholder):

```bash
pip install "decisionformer[serve]"
```

Optional extras, combined as `pip install "decisionformer[serve,qlora]"`:

| extra | adds |
Expand Down
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "decisionformer"
version = "0.2.0.dev0"
version = "0.2.0"
description = "Train, load, serve and benchmark one-pass decision models on any Hugging Face backbone."
readme = "README.md"
license = "Apache-2.0"
Expand Down Expand Up @@ -28,6 +28,13 @@ dependencies = [
"protobuf>=4",
]

[project.urls]
Homepage = "https://github.com/FrontiersMindAI/decisionformer"
Repository = "https://github.com/FrontiersMindAI/decisionformer"
Issues = "https://github.com/FrontiersMindAI/decisionformer/issues"
Documentation = "https://github.com/FrontiersMindAI/decisionformer#readme"
Dataset = "https://huggingface.co/datasets/FrontiersMind/deciformer-15k"

[project.optional-dependencies]
qlora = ["bitsandbytes>=0.45"]
serve = ["fastapi>=0.110", "uvicorn>=0.29"]
Expand Down
2 changes: 1 addition & 1 deletion src/decisionformer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
decisionformer.train("deciformer15k_qwen3") # fine-tune from a bundled recipe, a YAML file or a dict
"""

__version__ = "0.2.0.dev0"
__version__ = "0.2.0"

from decisionformer.api import AutoDecisionModel, Decider, UnsupportedInput # noqa: E402
from decisionformer.config import RunConfig, list_recipes, load_config # noqa: E402
Expand Down
Loading