Skip to content

Commit ab5609c

Browse files
committed
Update to new released versions
1 parent 1e75d2f commit ab5609c

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

Diff for: .github/workflows/build_wheels.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ jobs:
1616
strategy:
1717
matrix:
1818
platform:
19-
# older ubuntu to avoid messing with glibc version
19+
# Older ubuntu to avoid messing with glibc version since glibc is forward compatible,
20+
# but not backwards compatible (since about glibc 2.2 or 2.4)
21+
# All programs built against an older glibc work on a system with a newer glibc than
22+
# it was built with. The reverse is not true.
2023
- runner: ubuntu-22.04
2124
target: x86_64
2225
manylinux: auto

Diff for: Cargo.toml

+3-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55
description = "Structured Generation"
66
license = "Apache-2.0"
77
repository = "https://github.com/dottxt-ai/outlines-core"
8-
rust-version = "1.71.1"
8+
rust-version = "1.85.0"
99

1010
[dependencies]
1111
once_cell = "1.20"
@@ -15,7 +15,7 @@ regex = "1.10.6"
1515
serde-pyobject = { version = "0.5.0", optional = true }
1616
serde_json = { version = "1.0", features = ["preserve_order"] }
1717
serde = {version = "1.0", features = ["derive"]}
18-
bincode = "2.0.0-rc.3"
18+
bincode = "2.0.1"
1919
rustc-hash = "2.1.0"
2020
regex-automata = "0.4.9"
2121

@@ -26,10 +26,7 @@ features = ["ureq", "rustls-tls"]
2626
default-features = false
2727

2828
[dependencies.tokenizers]
29-
git = "https://github.com/huggingface/tokenizers.git"
30-
# This is a version > 0.21.0 before 0.21.1, we're looking for rustls-tls feature
31-
# Once released could be pinned to 0.21.1+
32-
rev = "4f1a810aa258d287e6936315e63fbf58bde2a980"
29+
version = "=0.21.1"
3330
features = ["http", "rustls-tls"]
3431

3532
[features]

Diff for: README.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@
22

33
<img src="./docs/assets/images/logo.png" alt="Outlines-core Logo" width=500></img>
44

5-
[![Latest Version]][crates.io] [![License]][github] ![MSRV]
5+
[![Latest Version]][crates.io] [![License]][github] ![MSRV][version]
66

77
[Latest Version]: https://img.shields.io/crates/v/outlines-core.svg
88
[crates.io]: https://crates.io/crates/outlines-core
99
[License]: https://img.shields.io/github/license/dottxt-ai/outlines-core.svg?color=blue&cachedrop
1010
[github]: https://github.com/dottxt-ai/outlines-core/blob/main/LICENSE
11-
[MSRV]: https://img.shields.io/badge/MSRV-1.71.1-brightgreen
12-
13-
<!---
14-
Once it uploaded to crates.io badge could be generated like:
15-
[version]: https://img.shields.io/crates/msrv/outlines-core.svg?label=msrv&color=lightgrayy
16-
-->
11+
[MSRV]: MSRV
12+
[version]: https://img.shields.io/crates/msrv/outlines-core.svg?label=msrv&color=lightgrayy
1713

1814
*Structured generation (in Rust).*
1915

Diff for: src/vocabulary/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl Vocabulary {
160160
NormalizerWrapper::Sequence(normalization_sequence) => {
161161
let new_sequence = Sequence::new(
162162
normalization_sequence
163-
.as_ref()
163+
.get_normalizers()
164164
.iter()
165165
.filter_map(|normalizer| match normalizer {
166166
NormalizerWrapper::Prepend(_) => None,
@@ -465,7 +465,7 @@ mod tests {
465465
if let Some(n) = normalized_t.get_normalizer() {
466466
match n {
467467
NormalizerWrapper::Sequence(seq) => {
468-
for n in seq.as_ref() {
468+
for n in seq.get_normalizers() {
469469
if let NormalizerWrapper::Prepend(_) = n {
470470
unreachable!()
471471
}

0 commit comments

Comments
 (0)