Skip to content

Commit dd0edd3

Browse files
author
Philip Sampaio
committed
Release v0.3.0
1 parent d567820 commit dd0edd3

File tree

4 files changed

+34
-6
lines changed

4 files changed

+34
-6
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
nif: ["2.15", "2.16", "2.14"]
22+
nif: ["2.15", "2.16"]
2323
job:
2424
- { target: aarch64-apple-darwin, os: macos-11 }
2525
- { target: aarch64-unknown-linux-gnu, os: ubuntu-20.04, use-cross: true }

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,32 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
## [v0.3.0] - 2023-03-04
11+
12+
### Added
13+
14+
- Add option to use cache when downloading pretrained files. We check the ETAG of
15+
the file before trying to download it. This introduces the `:use_cache` and `:cache_dir`
16+
options to the `Tokenizers.from_pretrained/2` function.
17+
18+
- Support adding special tokens when creating a tokenizer. This allows a pretrained
19+
tokenizer to be loaded with additional special tokens.
20+
21+
This change adds the `:additional_special_tokens` option to the `Tokenizers.from_pretrained/2`
22+
function.
23+
24+
- Add support for the `riscv64gc-unknown-linux-gnu` target, which is useful for Nerves
25+
projects running on 64 bits RISC-V computers.
26+
This means that we are precompiling the project to run on those machines.
27+
28+
### Changed
29+
30+
- Change minimum required version of Rustler Precompiled to `~> 0.6`. With this, we have
31+
the `aarch64-unknown-linux-musl` and `riscv64gc-unknown-linux-gnu` as default targets.
32+
But we also drop support for the NIF version 2.14.
33+
834
## [v0.2.0] - 2022-12-07
935

1036
### Added
@@ -15,3 +41,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1541
## [v0.1.0] - 2022-08-25
1642

1743
First release.
44+
45+
[Unreleased]: https://github.com/elixir-nx/tokenizers/compare/v0.3.0...HEAD
46+
[v0.3.0]: https://github.com/elixir-nx/tokenizers/compare/v0.2.0...v0.3.0
47+
[v0.2.0]: https://github.com/elixir-nx/tokenizers/compare/v0.1.0...v0.2.0
48+
[v0.1.0]: https://github.com/elixir-nx/tokenizers/releases/tag/v0.1.0

lib/tokenizers/native.ex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ defmodule Tokenizers.Native do
88
crate: "ex_tokenizers",
99
version: version,
1010
base_url: "#{github_url}/releases/download/v#{version}",
11-
force_build: System.get_env("TOKENIZERS_BUILD") in ["1", "true"],
12-
targets:
13-
RustlerPrecompiled.Config.default_targets() ++
14-
["aarch64-unknown-linux-musl", "riscv64gc-unknown-linux-gnu"]
11+
force_build: System.get_env("TOKENIZERS_BUILD") in ["1", "true"]
1512

1613
def decode(_tokenizer, _ids, _skip_special_tokens), do: err()
1714
def decode_batch(_tokenizer, _ids, _skip_special_tokens), do: err()

native/ex_tokenizers/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)