LinWeizheDragon / FLMR

The huggingface implementation of Fine-grained Late-interaction Multi-modal Retriever.
71 stars 4 forks source link

load FLMR Retrieval Model Wrong! #6

Closed bitccty closed 8 months ago

bitccty commented 8 months ago

code

flmr_model = FLMRModelForRetrieval.from_pretrained(
        "LinWeizheDragon/FLMR",
        query_tokenizer=query_tokenizer,
        context_tokenizer=context_tokenizer,
    )

error

TypeError: Object of type FLMRTextConfig is not JSON serializable.
LinWeizheDragon commented 8 months ago

Hi, this is an internal huggingface error, which we don't know why it happens. Simply upgrade your huggingface library to a more recent version to resolve this error.