Skip to content

Conversation

diego-morientez
Copy link
Contributor

Adding **kwargs to AutoFeatureExtractor.from_pretrained, in order to work with proxy configuration.

bert_embedding = TransformerWordEmbeddings('bert-base-multilingual-cased', proxies={"http": "...", "https": "..."})

This file is not dowloaded if **kwargs is not added.

requests.exceptions.SSLError: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /bert-base-multilingual-cased/resolve/main/model.safetensors (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')))"), '(Request ID: dd8502e8-072c-4735-89f6-0e13a81c4efd)')

https://huggingface.co/bert-base-multilingual-cased/resolve/main/model.safetensors

Adding  **kwargs, in order to work with proxy configuration.
@helpmefindaname
Copy link
Member

Thank you for your contribution!

@helpmefindaname helpmefindaname merged commit c674212 into flairNLP:master Aug 30, 2024
1 check passed
@diego-morientez diego-morientez deleted the patch-1 branch August 30, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants