Skip to content

Commit

Permalink
Fill changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
gsarti committed Feb 16, 2024
1 parent 2addec0 commit 136c05c
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 64 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Changelog

*This file contains a high-level description of changes that were merged into the Inseq main branch since the last release. Refer to the [releases page](https://github.com/inseq-team/inseq/releases) for an exhaustive overview of changes introduced at each release.*

## 🚀 Features

- Support for multi-GPU attribution ([#238](https://github.com/inseq-team/inseq/pull/238))
- Added `inseq attribute-context` CLI command to support the [PECoRe framework] for detecting and attributing context reliance in generative LMs ([#237](https://github.com/inseq-team/inseq/pull/237))

## 🔧 Fixes & Refactoring

- Fix `ContiguousSpanAggregator` and `SubwordAggregator` edge case of single-step generation ([#247](https://github.com/inseq-team/inseq/pull/247))
- Move tensors to CPU right away in the forward pass to avoid OOM when cloning ([#245](https://github.com/inseq-team/inseq/pull/245))
- Fix `remap_from_filtered` behavior on sequence_scores tensors. ([#245](https://github.com/inseq-team/inseq/pull/245))
- Use torch-native padding when converting lists of `FeatureAttributionStepOutput` to `FeatureAttributionSequenceOutput` in `get_sequences_from_batched_steps`. ([#245](https://github.com/inseq-team/inseq/pull/245))
- Bump `ruff` version ([#245](https://github.com/inseq-team/inseq/pull/245))
- Drop `poetry` in favor of [`uv`](https://github.com/astral-sh/uv) to accelerate package installation and simplify config in `pyproject.toml`. ([#249](https://github.com/inseq-team/inseq/pull/249))
- Drop `darglint` in favor of `pydoclint`. ([#249](https://github.com/inseq-team/inseq/pull/249))
- Replace Arxiv with ACL Anthology badge in `README`. ([#249](https://github.com/inseq-team/inseq/pull/249))
- Add first version of `CHANGELOG.md` ([#249](https://github.com/inseq-team/inseq/pull/249))

## 📝 Documentation and Tutorials

*No changes*

## 💥 Breaking Changes

*No changes*
118 changes: 54 additions & 64 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ omit = [

[tool.coverage.report]
exclude_lines = [
"pragma: no-cover",
"pass",
"raise",
"except",
"raise NotImplementedError",
"pragma: no-cover",
"pass",
"raise",
"except",
"raise NotImplementedError",
]


Expand All @@ -157,73 +157,63 @@ packages = ["inseq"]
[tool.ruff]
target-version = "py39"
exclude = [
".git",
".vscode",
".github",
"__pycache__",
"docs/source/conf.py",
"old",
"build",
"htmlcov",
"dev_examples",
"dist",
".tox",
"temp",
"*.egg",
"venv",
".venv",
".git",
".vscode",
".github",
"__pycache__",
"docs/source/conf.py",
"old",
"build",
"htmlcov",
"dev_examples",
"dist",
".tox",
"temp",
"*.egg",
"venv",
".venv",
]
fix = true
ignore = [
"B006", # mutable default argument
"C901", # function too complex
"E501", # line too long (handled by format)
"E731", # do not assign a lambda expression, use a def
"E741", # ambiguous variable name
"F722", # syntax error in forward annotation (as used by jaxtyping)
"F821", # undefined name
"PLR2004", # unnamed numerical constants used
"PLR0913", # too many arguments
"PLR0915", # too many statements
"W191", # indentation contains tabs (handled by format)
]
line-length = 119
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"C", # flake8-comprehensions
#"D", # flake8-docstrings
"B", # flake8-bugbear
"I", # isort
"UP", # flake8-pyupgrade
"PLC", # flake8-pylint
"PLE", # flake8-pylint
"PLR", # flake8-pylint
"PLW", # flake8-pylint
]
src = ["inseq", "examples", "tests"]
extend-include = ["*.ipynb"]

[tool.ruff.lint]
external = [
"DOC", # pydoclint
]

[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
"**/examples/*" = ["B018", "E402"]

[tool.ruff.isort]
known-first-party = ["inseq"]
order-by-type = true

[tool.ruff.pylint]
max-branches = 22

[tool.ruff.pyupgrade]
keep-runtime-typing = true

[tool.ruff.pydocstyle]
convention = "google"
ignore = [
"B006", # mutable default argument
"C901", # function too complex
"E501", # line too long (handled by format)
"E731", # do not assign a lambda expression, use a def
"E741", # ambiguous variable name
"F722", # syntax error in forward annotation (as used by jaxtyping)
"F821", # undefined name
"PLR2004", # unnamed numerical constants used
"PLR0913", # too many arguments
"PLR0915", # too many statements
"W191", # indentation contains tabs (handled by format)
]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"C", # flake8-comprehensions
#"D", # flake8-docstrings
"B", # flake8-bugbear
"I", # isort
"UP", # flake8-pyupgrade
"PLC", # flake8-pylint
"PLE", # flake8-pylint
"PLR", # flake8-pylint
"PLW", # flake8-pylint
]
per-file-ignores = { "__init__.py" = ["F401"], "**/examples/*" = ["B018", "E402"] }
isort = { known-first-party = ["inseq"], order-by-type = true}
pylint = { max-branches = 22 }
pyupgrade = { keep-runtime-typing = true }
pydocstyle = { convention = "google" }


[tool.pydoclint]
Expand Down

0 comments on commit 136c05c

Please sign in to comment.