Thanks for sharing the link but I would like to use the model hosted on Hugging face using HF API token, Any leads on that? @j-amit04 you might be able to use this https://python.langchain.com/en/latest/modules/models/llms/integrations/huggingface_hub.html The load the LLM from the...
1. Get your Hugging Face API token: ```python >>> from huggingface_hub import HfFolder >>> token = HfFolder().get_token() ``` 2. Use `create_repo` to create your repository: ```python >>> from huggingface_hub import HfApi >>> api = HfApi() >>> api.create_repo(token=toke...
src/huggingface_hub/hf_api.py Outdated Comment on lines 591 to 596 def _is_valid_token(self, token: str): try: self.whoami(token=token) return True except HTTPError: return False Member LysandreJik Oct 4, 2021 Nice helper, would it be possible to add a bit of documentat...