Skip to content

Error compiling: splintr::from_pretrained and splintr::eos_token_id_by_name doesn't exist.Β #2

@hndrbrm

Description

@hndrbrm

When i compile cargo build --release theres error:

error[E0425]: cannot find function `from_pretrained` in crate `splintr`
  --> src/tokenizer/mod.rs:71:30
   |
71 |         let inner = splintr::from_pretrained(name)
   |                              ^^^^^^^^^^^^^^^ not found in `splintr`

error[E0425]: cannot find function `eos_token_id_by_name` in crate `splintr`
  --> src/tokenizer/mod.rs:73:37
   |
73 |         let eos_token_id = splintr::eos_token_id_by_name(name);
   |

The problem lay on the splintr.
I think the implementation are not yet implemented 😁

I read theres some implementation on the python bindings.
I make a naive implementation based on that, and its seems worked.

Maybe you forgot to push the latest commit on splintr?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions