Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.4.0 #52

Merged
merged 1 commit into from
Aug 9, 2023
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
26 changes: 24 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,29 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [v0.4.0] - 2023-08-09

### Added

- Support for training a tokenizer from scratch. See `Tokenizers.Tokenizer.train_from_files/3`
and `Tokenizers.Model` for available models.

- Support for changing tokenizer configuration, such as `Tokenizers.Tokenizer.set_padding/2`
and `Tokenizers.Tokenizer.set_truncation/2`. See the "Configuration" functions group in
`Tokenizers.Tokenizer`.

- Support for apply multiple encoding transformations without additional data copies,
see `Tokenizers.Encoding.Transformation`. Transformations can be passed to
`Tokenizers.Tokenizer.encode/3` via `:encoding_transformations` or applied via
`Tokenizers.Encoding.transform/2`.

### Changed

- **(Breaking)** `Tokenizers.Tokenizer.encode/3` no longer accepts a batch of inputs,
to encode a batch use `Tokenizers.Tokenizer.encode_batch/3` instead

- **(Breaking)** `Tokenizers.Tokenizer.decode/3` no longer accepts a batch of inputs,
to encode a batch use `Tokenizers.Tokenizer.decode_batch/3` instead

## [v0.3.2] - 2023-04-19

Expand Down Expand Up @@ -61,7 +83,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

First release.

[Unreleased]: https://github.com/elixir-nx/tokenizers/compare/v0.3.2...HEAD
[v0.4.0]: https://github.com/elixir-nx/tokenizers/compare/v0.3.2...v0.4.0
[v0.3.2]: https://github.com/elixir-nx/tokenizers/compare/v0.3.1...v0.3.2
[v0.3.1]: https://github.com/elixir-nx/tokenizers/compare/v0.3.0...v0.3.1
[v0.3.0]: https://github.com/elixir-nx/tokenizers/compare/v0.2.0...v0.3.0
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Tokenizers.MixProject do
use Mix.Project

@source_url "https://github.com/elixir-nx/tokenizers"
@version "0.4.0-dev"
@version "0.4.0"

def project do
[
Expand Down
4 changes: 2 additions & 2 deletions notebooks/pretrained.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

```elixir
Mix.install([
{:kino, "~> 0.5.2"},
{:kino, "~> 0.10.0"},
{:scidata, "~> 0.1.5"},
{:tokenizers, "~> 0.4.0"},
{:nx, "~> 0.3"}
{:nx, "~> 0.5"}
])
```

Expand Down