From 710a028e3a8e9dc506a0d0b1644f864ff413bb34 Mon Sep 17 00:00:00 2001 From: Abhay Kumar Date: Sat, 24 Oct 2026 02:24:05 +0530 Subject: [PATCH] Release 0.2.0 - Version 0.2.0 (was 0.2.0.dev0), so pip installs it by default. - Project links (repository, issues, docs, dataset) for the PyPI page. - README: pip install first; the picture uses an absolute URL so it also shows on PyPI. --- README.md | 16 +++++++--------- pyproject.toml | 9 ++++++++- src/decisionformer/__init__.py | 2 +- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 14767c8..20d000b 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 | diff --git a/pyproject.toml b/pyproject.toml index 0a4a9f4..d22f81b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -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"] diff --git a/src/decisionformer/__init__.py b/src/decisionformer/__init__.py index 0791f7e..c61dc29 100644 --- a/src/decisionformer/__init__.py +++ b/src/decisionformer/__init__.py @@ -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