Hi @Sam, The warnings youโre encountering are related to urllib3, which is a Python library for handling HTTP connections.
Letโs break down the issue and explore potential solutions:
-
Connection Pool Warnings:
- The warning message indicates that the connection pool (used for managing reusable connections) is full, and a new connection is being discarded.
- This can happen when your code is making multiple HTTP requests (such as downloading model files) concurrently, and the pool reaches its maximum capacity.
- The pool size is set to 10 in your case.
-
Possible Causes:
- Concurrency: If youโre loading multiple models or making other HTTP requests simultaneously, it can lead to connection pool exhaustion.
- Resource Limitations: Insufficient system resources (such as memory or file descriptors) can also cause this issue.
-
Solutions:
-
Impact on Model Load Time:
- While connection pool warnings themselves donโt directly impact model loading speed, they can indirectly affect it.
- If connections are being discarded and re-established frequently, it may slow down the overall process.
- Addressing the warnings should improve the overall efficiency of your model loading.
Remember to adapt the solutions based on your specific use case and system configuration. If you continue to experience issues, consider seeking help from the Hugging Face community or check...12.