File tree Expand file tree Collapse file tree 4 files changed +12
-16
lines changed
Expand file tree Collapse file tree 4 files changed +12
-16
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ edition = "2021"
55description = " Structured Generation"
66license = " Apache-2.0"
77repository = " https://github.com/dottxt-ai/outlines-core"
8- rust-version = " 1.71.1 "
8+ rust-version = " 1.85.0 "
99
1010[dependencies ]
1111once_cell = " 1.20"
@@ -15,7 +15,7 @@ regex = "1.10.6"
1515serde-pyobject = { version = " 0.5.0" , optional = true }
1616serde_json = { version = " 1.0" , features = [" preserve_order" ] }
1717serde = {version = " 1.0" , features = [" derive" ]}
18- bincode = " 2.0.0-rc.3 "
18+ bincode = " 2.0.1 "
1919rustc-hash = " 2.1.0"
2020regex-automata = " 0.4.9"
2121
@@ -26,10 +26,7 @@ features = ["ureq", "rustls-tls"]
2626default-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"
3330features = [" http" , " rustls-tls" ]
3431
3532[features ]
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments