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
6 changes: 6 additions & 0 deletions README_Extended.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ To begin using the GLiNER model, you can install the GLiNER Python library throu
!pip install gliner
```

If you intend to use the GPU-backed ONNX runtime, install GLiNER with the GPU feature. This also installs the `onnxruntime-gpu` dependency.

```bash
!pip install gliner[gpu]
```

### Install via Conda

```bash
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ dependencies = [
"transformers>=4.38.2",
"huggingface_hub>=0.21.4",
"tqdm",
"onnxruntime-gpu",
"onnxruntime",
"sentencepiece",
]

dynamic = ["version"]

[project.optional-dependencies]
gpu = ["onnxruntime-gpu"]


[project.urls]
Homepage = "https://github.com/urchade/GLiNER"