Skip to content

Commit

Permalink
Bump to v0.4.0 (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbalioglu authored Feb 8, 2025
1 parent acf9fb4 commit a10c194
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 36 deletions.
20 changes: 1 addition & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,4 @@ All notable changes to fairseq2 are documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## [0.2.1] - TBD
- Introduced `kv_dim` option to `StandardMultiheadAttention` (for different sizes of encoder and decoder)
- Added the `CheckpointManager.get_model_checkpoint_path` method
- Added the `target_twoway mode` in the NLLB tokenizer for formatting target sequences in NLLB or SONAR-like models

## [0.2.0] - 2023-11-29
- Introduced LLaMA and LLaMA 2
- Introduced Mistral 7B
- Introduced LoRA fine-tuning
- Revised the sequence generator API
- Introduced support for lazy padding and attention masks
- Many smaller improvements to existing APIs

## [0.1.1] - 2023-09-07
- Improvements to the build system and CI pipelines
- Improvements to the installation instructions and contribution guidelines

## [0.1.0] - 2023-08-23
- Initial release
## [0.5.0] - TBD
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.0.dev0
0.4.0
8 changes: 4 additions & 4 deletions native/python/requirements-build.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake~=3.26
cmake~=3.31
ninja~=1.11
pip~=23.2
setuptools~=67.8
pip~=25.0
setuptools~=75.8
tbb-devel==2021.8;platform_machine=='x86_64'
wheel~=0.40
wheel~=0.45
7 changes: 3 additions & 4 deletions native/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from __future__ import annotations

from os import path
from typing import Final

import torch
from setuptools import Command, find_packages, setup
Expand Down Expand Up @@ -47,9 +46,9 @@ class install_cmake(Command):
bundle_lib: bool
verbose: bool

description: Final = "install CMake artifacts"
description = "install CMake artifacts"

user_options: Final = [
user_options = [
("cmake-build-dir=", "b", "build directory (where to install from)"),
("install-dir=", "d", "directory to install to"),
]
Expand Down Expand Up @@ -137,7 +136,7 @@ def get_inputs(self) -> list[str]:
"install_cmake": install_cmake,
},
name="fairseq2n",
version="0.4.0.dev0",
version="0.4.0",
description="FAIR Sequence Modeling Toolkit (Native)",
long_description="https://github.com/facebookresearch/fairseq2",
long_description_content_type="text/plain",
Expand Down
2 changes: 1 addition & 1 deletion native/python/src/fairseq2n/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from __future__ import annotations

__version__ = "0.4.0.dev0"
__version__ = "0.4.0"

import platform
import site
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["packaging~=23.1", "setuptools~=67.8", "wheel~=0.40"]
requires = ["packaging~=24.2", "setuptools~=75.8", "wheel~=0.45"]
build-backend = "setuptools.build_meta"

[tool.black]
Expand Down
8 changes: 4 additions & 4 deletions requirements-devel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ black~=25.1
flake8~=7.1
flake8-pyi~=24.6
flake8-pyproject~=1.2
isort~=5.13
mypy~=1.10.0
isort~=6.0
mypy~=1.15.0
pyarrow-stubs~=10.0
pytest~=7.3
pytest~=8.3
shellcheck-py~=0.9
types-editdistance~=0.6
types-psutil~=5.9
types-PyYAML~=6.0
types-setuptools~=67.8
types-setuptools~=75.8
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from setuptools import find_namespace_packages, setup

version = "0.4.0.dev0"
version = "0.4.0"

# If this is a local development install, allow nightly fairseq2n builds to
# take precedence.
Expand Down
2 changes: 1 addition & 1 deletion src/fairseq2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from __future__ import annotations

__version__ = "0.4.0.dev0"
__version__ = "0.4.0"

import fairseq2n # Report any fairseq2n initialization error eagerly.

Expand Down

0 comments on commit a10c194

Please sign in to comment.