File tree 4 files changed +12
-16
lines changed
4 files changed +12
-16
lines changed Original file line number Diff line number Diff line change 16
16
strategy :
17
17
matrix :
18
18
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.
20
23
- runner : ubuntu-22.04
21
24
target : x86_64
22
25
manylinux : auto
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ edition = "2021"
5
5
description = " Structured Generation"
6
6
license = " Apache-2.0"
7
7
repository = " https://github.com/dottxt-ai/outlines-core"
8
- rust-version = " 1.71.1 "
8
+ rust-version = " 1.85.0 "
9
9
10
10
[dependencies ]
11
11
once_cell = " 1.20"
@@ -15,7 +15,7 @@ regex = "1.10.6"
15
15
serde-pyobject = { version = " 0.5.0" , optional = true }
16
16
serde_json = { version = " 1.0" , features = [" preserve_order" ] }
17
17
serde = {version = " 1.0" , features = [" derive" ]}
18
- bincode = " 2.0.0-rc.3 "
18
+ bincode = " 2.0.1 "
19
19
rustc-hash = " 2.1.0"
20
20
regex-automata = " 0.4.9"
21
21
@@ -26,10 +26,7 @@ features = ["ureq", "rustls-tls"]
26
26
default-features = false
27
27
28
28
[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"
33
30
features = [" http" , " rustls-tls" ]
34
31
35
32
[features ]
Original file line number Diff line number Diff line change 2
2
3
3
<img src =" ./docs/assets/images/logo.png " alt =" Outlines-core Logo " width =500 ></img >
4
4
5
- [ ![ Latest Version]] [ crates.io ] [ ![ License]] [ github ] ![ MSRV]
5
+ [ ![ Latest Version]] [ crates.io ] [ ![ License]] [ github ] ![ MSRV] [ version ]
6
6
7
7
[ Latest Version ] : https://img.shields.io/crates/v/outlines-core.svg
8
8
[ crates.io ] : https://crates.io/crates/outlines-core
9
9
[ License ] : https://img.shields.io/github/license/dottxt-ai/outlines-core.svg?color=blue&cachedrop
10
10
[ 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
17
13
18
14
* Structured generation (in Rust).*
19
15
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ impl Vocabulary {
160
160
NormalizerWrapper :: Sequence ( normalization_sequence) => {
161
161
let new_sequence = Sequence :: new (
162
162
normalization_sequence
163
- . as_ref ( )
163
+ . get_normalizers ( )
164
164
. iter ( )
165
165
. filter_map ( |normalizer| match normalizer {
166
166
NormalizerWrapper :: Prepend ( _) => None ,
@@ -465,7 +465,7 @@ mod tests {
465
465
if let Some ( n) = normalized_t. get_normalizer ( ) {
466
466
match n {
467
467
NormalizerWrapper :: Sequence ( seq) => {
468
- for n in seq. as_ref ( ) {
468
+ for n in seq. get_normalizers ( ) {
469
469
if let NormalizerWrapper :: Prepend ( _) = n {
470
470
unreachable ! ( )
471
471
}
You can’t perform that action at this time.
0 commit comments