ctranslate2-rs

Rust bindings for OpenNMT/CTranslate2

MIT License

Downloads
10.4K
Stars
9
Committers
4

Bot releases are visible (Hide)

ctranslate2-rs - v0.8.3 Latest Release

Published by jkawamoto 5 months ago

Detect CUDA root directory automatically #55

ctranslate2-rs - v0.8.2

Published by jkawamoto 5 months ago

Upgrade CTranslate2 to v4.3.0

ctranslate2-rs - v0.8.1

Published by jkawamoto 5 months ago

  • Fix: add Sync + Send to auto::Tokenizer
ctranslate2-rs - v0.8.0

Published by jkawamoto 5 months ago

Auto tokenizer #49

Inspired by Hugging Face's Transformers' Auto Classes, this feature simplifies the tokenizer selection process by automatically choosing the correct tokenizer for a given model.

Stream API #52

Added a callback-based streaming API.

The following example demonstrates how to translate source and print results step-by-step:

let _ = translator.translate_batch(
    &vec![source],
    &TranslationOptions {
        // beam_size must be 1 to use the stream API.
        beam_size: 1,
        ..Default::default()
    },
    // Each time a new token is generated, the following callback closure is called.
    // In this example, it writes to the standard output sequentially.
    Some(&mut |r: GenerationStepResult| -> Result<()> {
        write!(out, "{}", r.text)?;
        out.flush()?;
        Ok(())
    }),
)?;

See the whole example code for more information.

ctranslate2-rs - v0.7.3

Published by jkawamoto 6 months ago

Add config functions #47

ctranslate2-rs - v0.7.2

Published by jkawamoto 6 months ago

Add Sent+Sync to Translator and Generator #45
Allow multiple backends #46

ctranslate2-rs - v0.7.1

Published by jkawamoto 6 months ago

Translator and Generator support callback #44

ctranslate2-rs - v0.7.0

Published by jkawamoto 6 months ago

Add support for Sentencepiece tokenizer #41

ctranslate2-rs - v0.6.0

Published by jkawamoto 6 months ago

Add support for CUDA and cuDNN #37

ctranslate2-rs - v0.5.1

Published by jkawamoto 6 months ago

Upgrade CTranslate2 to v4.2.1 #36

ctranslate2-rs - v0.5.0

Published by jkawamoto 6 months ago

Windows support #35

ctranslate2-rs - v0.4.7

Published by jkawamoto 6 months ago

Add support for Ruy #32

ctranslate2-rs -

Published by jkawamoto 6 months ago

Add support for Intel MKL #30

ctranslate2-rs -

Published by jkawamoto 6 months ago

Upgrade CTranslate2 to v4.2.0 #28

ctranslate2-rs -

Published by jkawamoto 6 months ago

  • fix build with Apple Silicon #26
ctranslate2-rs -

Published by jkawamoto 6 months ago

Upgrade CTranslate2 to v3.24.0

ctranslate2-rs - v0.4.1

Published by jkawamoto about 1 year ago

Updates

  • Upgrade CTranslate2 to v3.17.1
ctranslate2-rs - v0.4.0

Published by jkawamoto over 1 year ago

Updates

  • Implement generator #12
  • Add a generator example #13
ctranslate2-rs - v0.3.0

Published by jkawamoto over 1 year ago

  • Translator::new takes device and config #9
  • Translator::translate_batch takes options #10
ctranslate2-rs - v0.2.1

Published by jkawamoto over 1 year ago

  • bump openssl from 0.10.54 to 0.10.55 #8