Skip to content

How to set the cache_dir in the Rust implementation? #1868

@sambaPython24

Description

@sambaPython24

Hey, thank you for your great work with these tokenizers.

When I use the tokenizers through the Python API via transformers, I can set a specific cache_dir like this

from transformers import AutoTokenizer
self.tokenizer = AutoTokenizer.from_pretrained(self.tokenizer_name,cache_dir = self.cache_dir)

How can I do that in Rust? How can I print the default cache dir (in Rust)?

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