About 1,340,000 results
Open links in new tab
  1. Load a pre-trained model from disk with Huggingface Transformers

    Sep 22, 2020 · Load a pre-trained model from disk with Huggingface Transformers Asked 4 years, 9 months ago Modified 2 years, 1 month ago Viewed 281k times

  2. huggingface hub - ImportError: cannot import name …

    Jan 21, 2025 · ImportError: cannot import name 'cached_download' from 'huggingface_hub' Asked 5 months ago Modified 3 months ago Viewed 16k times

  3. How to do Tokenizer Batch processing? - HuggingFace

    Jun 7, 2023 · 9 in the Tokenizer documentation from huggingface, the call fuction accepts List [List [str]] and says: text (str, List [str], List [List [str]], optional) — The sequence or batch of …

  4. How to download a model from huggingface? - Stack Overflow

    May 19, 2021 · How about using hf_hub_download from huggingface_hub library? hf_hub_download returns the local path where the model was downloaded so you could hook …

  5. How can I download a HuggingFace dataset via HuggingFace CLI …

    Apr 5, 2024 · 1 I downloaded a dataset hosted on HuggingFace via the HuggingFace CLI as follows: pip install huggingface_hub[hf_transfer] huggingface-cli download …

  6. How to add new tokens to an existing Huggingface tokenizer?

    May 8, 2023 · Thanks for this very comprehensive response. Two comments : 1/ for two examples above "Extending existing AutoTokenizer with new bpe-tokenized tokens" and …

  7. Facing SSL Error with Huggingface pretrained models

    Mar 31, 2022 · huggingface.co now has a bad SSL certificate, your lib internally tries to verify it and fails. By adding the env variable, you basically disabled the SSL verification.

  8. Offline using cached models from huggingface pretrained

    Nov 9, 2023 · HuggingFace includes a caching mechanism. Whenever you load a model, a tokenizer, or a dataset, the files are downloaded and kept in a local cache for further utilization.

  9. Huggingface: How do I find the max length of a model?

    Jun 24, 2023 · Given a transformer model on huggingface, how do I find the maximum input sequence length? For example, here I want to truncate to the max_length of the model: …

  10. How does one use accelerate with the hugging face (HF) trainer?

    Jul 12, 2023 · What are the code changes one has to do to run accelerate with a trianer? I keep seeing: from accelerate import Accelerator accelerator = Accelerator() model, optimizer, …