Support for the new endpoint in Hugging Face Hub API - Sonatype Nexus Repository - Sonatype Community

Support for the new endpoint in Hugging Face Hub API

In Hugging Face Hub API, starting from version 0.20+, a new endpoint was introduced:

/api/models/{model}/tree/main.

Currently, the Nexus Repository proxy for Hugging Face does NOT support this new endpoint.

It returns a 400 error instead of the expected model file list.

When is the support for this endpoint expected to be added?


post by itperfecto on Apr 23

Dear developers, could you please tell me if there are any plans to update the version of the Hugging Face repositories?

This issue is not only affecting me; I have also seen similar posts about it on the internet.


post by mpiggott on May 21

Hi,

I passed the request along previously and raised it again last week but I don’t have an answer at the moment as to which release it would be added in.


post by itperfecto on Jun 26

I constantly see similar errors in the Nexus logs, really looking forward to getting the update soon:

WARN  [qtp228890511-700604]  *UNKNOWN org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Failure servicing: GET /repository/huggingface.co/api/models/sentence-transformers/all-MiniLM-L6-v2
java.lang.NullPointerException
        at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:902)
        at org.sonatype.nexus.repository.content.fluent.internal.FluentComponentBuilderImpl.version(FluentComponentBuilderImpl.java:90)
        at org.sonatype.nexus.repository.huggingface.datastore.internal.HuggingFaceContentFacetImpl.putRevision(HuggingFaceContentFacetImpl.java:240)
        at org.sonatype.nexus.repository.huggingface.datastore.internal.proxy.HuggingFaceProxyFacet.store(HuggingFaceProxyFacet.java:129)
        at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.doGet(ProxyFacetSupport.java:486)
        at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.lambda$1(ProxyFacetSupport.java:435)

post by mpiggott on Jun 29

I believe that error has a different cause and I believe a fix for that is part of 3.94.