Are huggingface models downloaded on my machine?
Hi there,While reading the documentation for the huggingface transformers, i came across a statement which says that the models are downloaded locally and cached on my computer. And although i have found the files that the documentation points to, i don’t entirely understand how an entire transformer model can be cached on my laptop without taking up significant space on my harddrive…the files i have found are less then 1mb…huggingface.coInstallationWe’re on a journey to advance and democratize artificial intelligence through open source and open science.can someone please point to further documentation or help me clarify whether the pipeline function acts as an API between my computer and huggingface hub to process the inputs?
2023-05-15T14:39:16Z
Hi!transformersuseshuggingface_hubto structure the cache. You can find detailed docs on ithere(it’s also possible to scan it).can someone please point to further documentation or help me clarify whether the pipeline function acts as an API between my computer and huggingface hub to process the inputs?pipelinedownloads the specifiedmodelfrom the Hub and runs inference on it locally. To run inference on a model hosted on the Hub, you can use theInference API.