Skip to content

Commit c72b89b

Browse files
authored
Merge pull request #86 from VectorInstitute/develop
Develop
2 parents 45ef380 + 9c3a166 commit c72b89b

40 files changed

+2105
-1008
lines changed

.github/workflows/code_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
version: "0.5.21"
3737
enable-cache: true
3838
- name: "Set up Python"
39-
uses: actions/setup-python@v5.4.0
39+
uses: actions/setup-python@v5.5.0
4040
with:
4141
python-version-file: ".python-version"
4242
- name: Install the project

.github/workflows/docs_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
enable-cache: true
3434

3535
- name: "Set up Python"
36-
uses: actions/setup-python@8039c45ed9a312fba91f3399cd0605ba2ebfe93c
36+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
3737
with:
3838
python-version-file: ".python-version"
3939

.github/workflows/docs_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
enable-cache: true
3939

4040
- name: "Set up Python"
41-
uses: actions/setup-python@8039c45ed9a312fba91f3399cd0605ba2ebfe93c
41+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
4242
with:
4343
python-version-file: ".python-version"
4444

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
version: "0.6.6"
2222
enable-cache: true
2323

24-
- uses: actions/setup-python@v5.4.0
24+
- uses: actions/setup-python@v5.5.0
2525
with:
2626
python-version: '3.10'
2727

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
enable-cache: true
5454

5555
- name: "Set up Python ${{ matrix.python-version }}"
56-
uses: actions/setup-python@v5.4.0
56+
uses: actions/setup-python@v5.5.0
5757
with:
5858
python-version: ${{ matrix.python-version }}
5959

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: check-toml
1717

1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: 'v0.11.0'
19+
rev: 'v0.11.2'
2020
hooks:
2121
- id: ruff
2222
args: [--fix, --exit-non-zero-on-fix]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![codecov](https://codecov.io/github/VectorInstitute/vector-inference/branch/develop/graph/badge.svg?token=NI88QSIGAC)](https://app.codecov.io/github/VectorInstitute/vector-inference/tree/develop)
99
![GitHub License](https://img.shields.io/github/license/VectorInstitute/vector-inference)
1010

11-
This repository provides an easy-to-use solution to run inference servers on [Slurm](https://slurm.schedmd.com/overview.html)-managed computing clusters using [vLLM](https://docs.vllm.ai/en/latest/). **All scripts in this repository runs natively on the Vector Institute cluster environment**. To adapt to other environments, update the environment variables in [`cli/_helper.py`](vec_inf/cli/_helper.py), [`cli/_config.py`](vec_inf/cli/_config.py), [`vllm.slurm`](vec_inf/vllm.slurm), [`multinode_vllm.slurm`](vec_inf/multinode_vllm.slurm) and [`models.yaml`](vec_inf/config/models.yaml) accordingly.
11+
This repository provides an easy-to-use solution to run inference servers on [Slurm](https://slurm.schedmd.com/overview.html)-managed computing clusters using [vLLM](https://docs.vllm.ai/en/latest/). **All scripts in this repository runs natively on the Vector Institute cluster environment**. To adapt to other environments, update the environment variables in [`shared/utils.py`](vec_inf/shared/utils.py), [`shared/config.py`](vec_inf/shared/config.py), [`vllm.slurm`](vec_inf/vllm.slurm), [`multinode_vllm.slurm`](vec_inf/multinode_vllm.slurm) and [`models.yaml`](vec_inf/config/models.yaml) accordingly.
1212

1313
## Installation
1414
If you are using the Vector cluster environment, and you don't need any customization to the inference server environment, run the following to install package:

docs/source/conf.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import os
99
import sys
10-
from typing import List
1110

1211

1312
sys.path.insert(0, os.path.abspath("../../vec_inf"))
@@ -51,8 +50,16 @@
5150
copybutton_prompt_text = r">>> |\.\.\. "
5251
copybutton_prompt_is_regexp = True
5352

53+
apidoc_module_dir = "../../vec_inf"
54+
apidoc_excluded_paths = ["tests", "cli", "shared"]
55+
exclude_patterns = ["reference/api/vec_inf.rst"]
56+
apidoc_output_dir = "reference/api"
57+
apidoc_separate_modules = True
58+
apidoc_extra_args = ["-f", "-M", "-T", "--implicit-namespaces"]
59+
suppress_warnings = ["ref.python"]
60+
5461
intersphinx_mapping = {
55-
"python": ("https://docs.python.org/3.9/", None),
62+
"python": ("https://docs.python.org/3.10/", None),
5663
}
5764

5865
# Add any paths that contain templates here, relative to this directory.
@@ -61,7 +68,7 @@
6168
# List of patterns, relative to source directory, that match files and
6269
# directories to ignore when looking for source files.
6370
# This pattern also affects html_static_path and html_extra_path.
64-
exclude_patterns: List[str] = []
71+
exclude_patterns = ["reference/api/vec_inf.rst"]
6572

6673
# -- Options for Markdown files ----------------------------------------------
6774
#

docs/source/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ hide-toc: true
88
:hidden:
99
1010
user_guide
11+
reference/api/index
1112
1213
```
1314

14-
This repository provides an easy-to-use solution to run inference servers on [Slurm](https://slurm.schedmd.com/overview.html)-managed computing clusters using [vLLM](https://docs.vllm.ai/en/latest/). **All scripts in this repository runs natively on the Vector Institute cluster environment**. To adapt to other environments, update the environment variables in [`cli/_helper.py`](https://github.com/VectorInstitute/vector-inference/blob/main/vec_inf/cli/_helper.py), [`cli/_config.py`](https://github.com/VectorInstitute/vector-inference/blob/main/vec_inf/cli/_config_.py), [`vllm.slurm`](https://github.com/VectorInstitute/vector-inference/blob/main/vec_inf/vllm.slurm), [`multinode_vllm.slurm`](https://github.com/VectorInstitute/vector-inference/blob/main/vec_inf/multinode_vllm.slurm), and model configurations in [`models.yaml`](https://github.com/VectorInstitute/vector-inference/blob/main/vec_inf/config/models.yaml) accordingly.
15+
This repository provides an easy-to-use solution to run inference servers on [Slurm](https://slurm.schedmd.com/overview.html)-managed computing clusters using [vLLM](https://docs.vllm.ai/en/latest/). **All scripts in this repository runs natively on the Vector Institute cluster environment**. To adapt to other environments, update the environment variables in [`shared/utils.py`](https://github.com/VectorInstitute/vector-inference/blob/main/vec_inf/shared/utils.py), [`shared/config.py`](https://github.com/VectorInstitute/vector-inference/blob/main/vec_inf/shared/config_.py), [`vllm.slurm`](https://github.com/VectorInstitute/vector-inference/blob/main/vec_inf/vllm.slurm), [`multinode_vllm.slurm`](https://github.com/VectorInstitute/vector-inference/blob/main/vec_inf/multinode_vllm.slurm), and model configurations in [`models.yaml`](https://github.com/VectorInstitute/vector-inference/blob/main/vec_inf/config/models.yaml) accordingly.
1516

1617
## Installation
1718

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Python API
2+
==========
3+
4+
This section documents the Python API for the `vec_inf` package.
5+
6+
.. toctree::
7+
:maxdepth: 4
8+
9+
vec_inf.api

0 commit comments

Comments
 (0)